Open kardeiz opened 2 years ago
Hi @kardeiz. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:
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
For more details, review the Magento Contributor Assistant documentation.
Add a comment to assign the issue: @magento I am working on this
To learn more about issue processing workflow, refer to the Code Contributions.
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.
:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel
Hi @engcom-Delta. 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:
[ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).Details
If the issue has a valid description, the label Issue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid
appears.
[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description
label to the issue by yourself.
[ ] 3. Add Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.
[ ] 4. Verify that the issue is reproducible on 2.4-develop
branchDetails
- Add the comment @magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
[ ] 5. Add label Issue: Confirmed
once verification is complete.
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
Hi @kardeiz , Thanks for raising an issue , Need help on the request body that you have tried , so that we can replicate it .
In fact , we have tried below request but getting different error.
Request: { email: "roni_cost@example.com", resetPasswordToken: "gh80pkjGdsPyiXc0sUUXswX1uGN7crUr", newPassword: "new_password"
}
Response: { "message": "Decoding error." }
Our request body looks like:
{
"newPassword": "newPassword",
"resetToken": "resetToken",
"email": ""
}
Note the empty string for email
. As far as I can tell, the token key is still resetToken
not resetPasswordToken
in 2.4.3-p2 (and possibly 2.4.4).
@magento give me 2.4-develop instance
Hi @engcom-Delta. Thank you for your request. I'm working on Magento instance for you.
Hi @engcom-Delta, here is your Magento Instance: https://bcc07cc7637dfb43007c5b939dc1efd1.instances.magento-community.engineering Admin access: https://bcc07cc7637dfb43007c5b939dc1efd1.instances.magento-community.engineering/admin_65c1 Login: 860ff713 Password: 7924e30c23f4
Hi Kardeiz, We tried to reproduce the issue on magento 2.4 develop , issue is reproducible , Hence issue has been confirmed.
followed steps:
Endpoint----->. PUT --> http://localhost/rest/default/V1/customers/password Body: { "email": "teslatester@gmail.com", "template": "email_reset" }
Response: true
Body: { "email": "", "resetToken": "00:3:yy/6Rj33nHPHL+mpHTWp6dlHUqtzVNNA0bTUG1PqsfRBJxcLiLHAwr77xQTQprpyijY6V5Fs/rP+AWXf", "newPassword":"Tester@321" }
Response: { "message": "\"%fieldName\" is required. Enter and try again.", "parameters": { "fieldName": "email" }, "trace": "#0 /opt/homebrew/var/www/magento24d3/magento2/generated/code/Magento/Customer/Model/AccountManagementApi/Interceptor.php(86): Magento\Customer\Model\AccountManagement->resetPassword('', '00:3:yy/6Rj33nH...', 'Tester@321')\n#1 [internal function]: Magento\Customer\Model\AccountManagementApi\Interceptor->resetPassword('', '00:3:yy/6Rj33nH...', 'Tester@321')\n#2 /opt/homebrew/var/www/magento24d3/magento2/app/code/Magento/Webapi/Controller/Rest/SynchronousRequestProcessor.php(95): call_user_func_array(Array, Array)\n#3 /opt/homebrew/var/www/magento24d3/magento2/app/code/Magento/Webapi/Controller/Rest.php(195): Magento\Webapi\Controller\Rest\SynchronousRequestProcessor->process(Object(Magento\Framework\Webapi\Rest\Request\Proxy))\n#4 /opt/homebrew/var/www/magento24d3/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(58): Magento\Webapi\Controller\Rest->dispatch(Object(Magento\Framework\App\Request\Http))\n#5 /opt/homebrew/var/www/magento24d3/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(138): Magento\Webapi\Controller\Rest\Interceptor->callParent('dispatch', Array)\n#6 /opt/homebrew/var/www/magento24d3/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(153): Magento\Webapi\Controller\Rest\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))\n#7 /opt/homebrew/var/www/magento24d3/magento2/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(23): Magento\Webapi\Controller\Rest\Interceptor->callPlugins('dispatch', Array, Array)\n#8 /opt/homebrew/var/www/magento24d3/magento2/lib/internal/Magento/Framework/App/Http.php(116): Magento\Webapi\Controller\Rest\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))\n#9 /opt/homebrew/var/www/magento24d3/magento2/generated/code/Magento/Framework/App/Http/Interceptor.php(23): Magento\Framework\App\Http->launch()\n#10 /opt/homebrew/var/www/magento24d3/magento2/lib/internal/Magento/Framework/App/Bootstrap.php(264): Magento\Framework\App\Http\Interceptor->launch()\n#11 /opt/homebrew/var/www/magento24d3/magento2/pub/index.php(31): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))\n#12 {main}" }
screenshot
Despite of providing valid email id and valid reset_token , api is not working .
Hi @kardeiz ,
Thanks for your reporting and collaboration. We have verified the issue in latest 2.4-develop instance and the issue is reproducible. Kindly refer the screenshots.
Steps to reproduce -
Thanks.
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-13045 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-Bravo. Thank you for verifying the issue.
Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
Preconditions and environment
Steps to reproduce
Post an empty string (
''
) as theemail
parameter to POST/customers/resetPassword
API endpoint.Expected result
Expected service returns 200 OK, with password reset appropriately.
Actual result
Endpoint will respond with 400:
The 2.4.3-p2 docs suggest that an empty email will be replaced by lookup via the resetPassword token:
https://github.com/magento/magento2/blob/1dd4ee8c3ab26dbb762fbaf9893c1f75148bb35b/app/code/Magento/Customer/Api/AccountManagementInterface.php#L146-L158
However, looking at the actual implementation, this does not appear to be the case: it is now set to throw the error above:
https://github.com/magento/magento2/blob/1dd4ee8c3ab26dbb762fbaf9893c1f75148bb35b/app/code/Magento/Customer/Model/AccountManagement.php#L714-L721
This is a pretty major change from 2.4.3-p1:
https://github.com/magento/magento2/blob/8afdb9858d238392ecb5dbfe556068ec1af137bc/app/code/Magento/Customer/Model/AccountManagement.php#L714-L721
And it is completely breaking our reset password functionality for users.
Additional information
No response
Release note
No response
Triage and priority