-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
AdminSessionsManager and AdminSessionInfo - strtotime issue fix for admin login PR #34514
AdminSessionsManager and AdminSessionInfo - strtotime issue fix for admin login PR #34514
Conversation
…g, null main.CRITICAL: TypeError: strtotime() expects parameter 1 to be string, null given in ...security/Model/AdminSessionInfo.php:136
…dminSessionsManager.php(338) TypeError: strtotime() expects parameter 1 to be string, int given magento#28 /var/www/share/meevo.io/releases/66/vendor/magento/module-security/Model/AdminSessionsManager.php(338):
Hi @kanhaiya5590. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review. For more details, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests 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. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento give me 2.4-develop instance |
Hi @kanhaiya5590. Thank you for your request. I'm working on Magento instance for you. |
Hi @kanhaiya5590, here is your Magento Instance: https://541f941653bcffc9dab8063a74dac844-2-4-develop.instances.magento-community.engineering |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Signed-off-by: Denis Kopylov <[email protected]>
Signed-off-by: Denis Kopylov <[email protected]>
@magento run all tests |
I see this is being merged into 2.4-develop branch however this problem also the affects 2.3.7-p2 release are we going to get a patch for the 2.3.x release line as well? Currently we're having to ask clients to clear their cookies to be able to access the admin panel of their stores due to this error. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@sidolov, how can we convert this PR to a patch to 2.3.7-p2? |
Every pull-request on GH can be downloaded as a beautiful mail-patch, just by appending ".patch" to the PR URL https://patch-diff.githubusercontent.com/raw/magento/magento2/pull/34514.patch This will generate a mail-formatted patch file, that is a little different from an usual patch file: It has e-mail metadata. After downloaded, apply the result patch using: Hope this is what patch you looking for. or PR diff -> https://patch-diff.githubusercontent.com/raw/magento/magento2/pull/34514.diff |
Similar as cookie patch. I made PR manually. @kanhaiya5590 Could you prepare PR to 2.3-release branch? |
Hi @Den4ik, thank you for the review. |
@kanhaiya5590, yeah, I know, the question was about creating the quality patch for magento 2.3.7-p2 |
Hi @kanhaiya5590, |
I just ran into issue #34415. Applying this PR (#34514) resolved the problem. @ihor-sviziev I apologize if this isn't productive, as I can't say the exact steps, but it seems it was at least partially triggered by logging in from a different system and ip address without first logging out of my previous session. When I went back to the system I was previously logged in to, I ran into the issue. |
✔️ QA Passed Preconditions:
Manual testing scenario:
Before: ✖️ Getting an typeError: After: ✔️ Able to see the values in the response Since it is a specific case were code changes are involved, no additional regression is required on this! |
Hope this PR is ready to merge. FYi - @ihor-sviziev @engcom-Alfa @Den4ik |
…sue fix for admin login PR #34514
Description (*)
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)