Skip to content

ProductRepository fails to load product with camelcase SKU #12073

@maximgubar

Description

@maximgubar

Preconditions

  1. Magento 2.1 | 2.2 | 2.3.0-dev
  2. PHP 7.1.9
  3. MySQL 5.7.19

Steps to reproduce

  1. Create a simple product with the camel case sku (for example "Test")
  2. Use get() method of \Magento\Catalog\Model\ProductRepository to get this product by sku, and specify the sku in lower case.

Expected result

  1. NoSuchEntityException is returned

Actual result

  1. Notice: Undefined index: test in /www/magento2/app/code/Magento/Catalog/Model/ProductRepository.php on line 254

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions