-
Notifications
You must be signed in to change notification settings - Fork 9.4k
REST API unable to make requests with slash (/) in SKU #8615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for reporting - internal issue number is MAGETWO-60899. |
It appears that this is an issue with Apache rather than Magento. You might have noticed that the 404 response codes are Apache generated instead of the usual Magento 404 pages. This is because, by default, forward slashes cannot be encoded in URLs without getting rejected. Add the option "AllowEncodedSlashes On" in either your global or virtual host config (or maybe in the Magento .htaccess, though this could be a security risk for users who would never make requests with encoded forward slashes). This worked for me. Good luck. |
@mplccp, thank you for your report. |
@AirmanAJK can you share your .htaccess or apache config? I'm trying to set |
For those who can't wait to fix it I suggest temporary solution here: |
It seems to be resolved somehow or version 2.1.9 is not affected. I've been able to successfully create and update a product with slashes in the sku. Encode the slash using '%2f' For the update I used the following example API call: PUT: /rest/all/V1/products/article%2fwith%2fslash%2fin%2fsku |
Working on this. |
Hi @mplccp |
Has their been progress on this as still getting this issue in 2.2.3 |
We are still experiencing this issue in 2.3.3. |
@stephenbori @JaredAllen1
Ref: #13343 (comment) |
Inside the REST API, it is impossible to access a resource that requires an SKU if the SKU contains a forward slash.
Preconditions
Steps to reproduce
Expected result
Actual result
{ "message": "Requested product doesn't exist" }
The text was updated successfully, but these errors were encountered: