Closed mohammadbharmal closed 1 year ago
Hi @mohammadbharmal. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
@magento I am working on this
Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. @magento give me 2.4-develop instance
Hi @mohammadbharmal. Thank you for your request. I'm working on Magento instance for you.
Hi @mohammadbharmal, here is your Magento Instance: https://94a8c4219b018f25698d274a8f585b17.instances-prod.magento-community.engineering Admin access: https://94a8c4219b018f25698d274a8f585b17.instances-prod.magento-community.engineering/admin_8055 Login: addfe0f6 Password: 1faf6919087a
I have generated tried to generate same case on the develop instance.
it's returning normal sku data, but not working with slash or ampersands.
Issue has been generated.
SKU :- this-teste&787
@engcom-Bravo , have you checked this issue ?
@magento give me 2.4-develop instance
Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.
Hi @engcom-Bravo, here is your Magento Instance: https://94a8c4219b018f25698d274a8f585b17.instances-prod.magento-community.engineering Admin access: https://94a8c4219b018f25698d274a8f585b17.instances-prod.magento-community.engineering/admin_1109 Login: b7747885 Password: b49592fe9349
Hi @mohammadbharmal,
Thank you for reporting and collaboration.
Verified the issue on Magento 2.4-develop instance and the issue is not reproducible.Kindly refer the screenshots.
Steps to reproduce
We are getting stock data for the SKU.
If Apache you also need to make sure you set AllowEncodedSlashes NoDecode
as per this https://httpd.apache.org/docs/2.4/mod/core.html#allowencodedslashes.
Kindly recheck the behaviour on Magento 2.4-develop instance and elaborate steps to reproduce if the issue is still reproducible.
Thanks.
@engcom-Bravo , Thank you for the update,
How we can configure AllowEncodedSlashes NoDecode
for the nginx ?
Hi @mohammadbharmal,
Thanks for your update.
Could you please refer this document http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass and let us know if you are still facing any issue.
Thanks.
@magento give me 2.4-develop instance
Hi @mohammadbharmal. Thank you for your request. I'm working on Magento instance for you.
Hi @mohammadbharmal, here is your Magento Instance: https://94a8c4219b018f25698d274a8f585b17.instances-prod.magento-community.engineering Admin access: https://94a8c4219b018f25698d274a8f585b17.instances-prod.magento-community.engineering/admin_7b23 Login: 59ba5dcf Password: 39094367113a
Hi @mohammadbharmal,
We have noticed that this issue has not been updated since long time. Hence we assume that this issue is fixed now, so we are closing it. Please feel to raise a fresh ticket or reopen this ticket if you need more assistance on this.
Thanks.
@magento give me 2.4-develop instance
Hi @mohammadbharmal. Thank you for your request. I'm working on Magento instance for you.
Hi @mohammadbharmal, here is your Magento Instance: https://94a8c4219b018f25698d274a8f585b17.instances-prod.magento-community.engineering Admin access: https://94a8c4219b018f25698d274a8f585b17.instances-prod.magento-community.engineering/admin_18d1 Login: 894e6e2c Password: 9037c2c6c5a0
@magento give me 2.4-develop instance
Hi @mohammadbharmal. Thank you for your request. I'm working on Magento instance for you.
Hi @mohammadbharmal, here is your Magento Instance: https://94a8c4219b018f25698d274a8f585b17.instances-prod.magento-community.engineering Admin access: https://94a8c4219b018f25698d274a8f585b17.instances-prod.magento-community.engineering/admin_cabf Login: b63918ef Password: f5bb3e031b17
admin is not correct
@magento give me 2.4-develop instance
Hi @mohammadbharmal. Thank you for your request. I'm working on Magento instance for you.
Hi @mohammadbharmal, here is your Magento Instance: https://94a8c4219b018f25698d274a8f585b17.instances-prod.magento-community.engineering Admin access: https://94a8c4219b018f25698d274a8f585b17.instances-prod.magento-community.engineering/admin_63a7 Login: e951a36c Password: 7ae5452c82d6
Indeed still not fixed.. https://github.com/magento/magento2/issues/37278
Preconditions and environment
Magento 2 REST API Endpoint
/V1/stockItems/:productSku
is encountering a bug specifically when using OAuth 1.0 authentication. The issue arises when the product SKU contains special characters such as slashes (/) or ampersands (&). This results in an incorrect OAuth signature being generated, leading to errors in the authentication process.The error is being triggered from the class
Magento\Framework\Oauth\Oauth::_validateSignature()
at line number 207. The root cause of the problem lies in the signature generation process, which is performed by the Laminas library. The library generates different signatures for SKUs containing slashes or ampersands, causing inconsistencies in the authentication flow.Example: Working URL: https://test.com/test-sku Not Working URL: https://test.com/test-sku%2F123
The correct OAuth signature generation for the product SKU is not taking into account the special characters, leading to an incorrect signature that fails the authentication process.
To fix this issue, adjustments need to be made in the OAuth signature generation logic, ensuring that it properly handles SKUs with special characters and produces consistent signatures for all SKU variations.
Please see below screenshot for more reference.
Steps to reproduce
rest/V1/stockItems
ex:- https://your-domain/index.php/rest/V1/stockItems/demo-test%2F1234Expected result
Should be return stock data of the sku
Actual result
returning error "The signature is invalid. Verify and try again."
Additional information
I have tested this with an postman
Release note
No response
Triage and priority