-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
REST API unable to make requests with slash (/) in SKU again #13343
Comments
@manhao-chen, thank you for your report. |
To be honest, the problem is not with code but with server config. Servers by default block possibility to send even encoded slash as part of url (but not in case of param). Solution for Apache might be AllowEncodedSlashes |
@Arhimenrius Thanks ;) |
@magento-engcom-team @engcom-backlog-nazar I think its not a issue. Can you please review and close? |
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
HI @manhao-chen Hi @irajneeshgupta the issue was retested, and we can confirm that this is non issue. |
Hi. I've same issue with DELETE CURL. Encoding the sku returns the payload but the product is not deleted. Magento 2.3 |
as reported with #8615
Preconditions
Steps to reproduce
Fresh install
Create product (of any type) with SKU containing /, e.g. "ELEVATOR_HEADS-5/0 1oz-Orange"
searching for the product with
GET : /rest/v1/products?searchCriteria[filter_groups][0][filters][0][field]=sku&searchCriteria[filter_groups][0][filters][0][value]=ELEVATOR_HEADS-5%2F0%201oz-Orange
returns results as expected
but when getting the stockItems with the following
GET : /rest/V1/stockItems/ELEVATOR_HEADS-5%2F0+1oz-Orange
result 404 status - BUT the actual data is returned?
when trying to update the stockItem
PUT : /rest/V1/products/ELEVATOR_HEADS-5%2F0+1oz-Orange/stockItems/100
result : 404 status - message=Request does not match any route.
Expected result
expect
/rest/V1/stockItems/[sku containing / to also work]
/rest/V1/products/[sku containing / to also work]/stockItems/[stockItemID]
both to work in the same manner as sku without '/'
Actual result
GET : /rest/V1/stockItems/ELEVATOR_HEADS-5%2F0+1oz-Orange
result 404 status - BUT the actual data is returned?
PUT : /rest/V1/products/ELEVATOR_HEADS-5%2F0+1oz-Orange/stockItems/100
result : 404 status - message=Request does not match any route.
The text was updated successfully, but these errors were encountered: