Closed
Description
Inside the REST API, it is impossible to access a resource that requires an SKU if the SKU contains a forward slash.
Preconditions
- Tested in CE 2.1.2 and CE 2.1.3. No indication of fix in 2.1.4 release notes
Steps to reproduce
- Fresh install
- Create product (of any type) with SKU containing /, e.g. "CLE-056621/6"
- Make REST request with encoded SKU (as Swagger does) e.g. "V1/products/CLE-056621%2F6", "/V1/products/CLE-056621%2F6/media"
Expected result
- Should be possible to make a request with encoded SKU, or by product ID
Actual result
- A request with a slash ("CLE-056621/6") returns "Not found" 404
- A request with encoded SKU ("CLE-056621%2F6") returns
{ "message": "Requested product doesn't exist" }
Metadata
Metadata
Assignees
Labels
USE ONLY for FRAMEWORK RELATED BUG! E.g If bug related to Catalog WEB API use just CatalogThe issue has been fixed in 2.2 release lineGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release