-
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
Fix exception handling inconsistency between developer and production modes #37712
Fix exception handling inconsistency between developer and production modes #37712
Conversation
Hi @iGerchak. Thank you for your contribution! Add the comment under your pull request to deploy test or vanilla Magento instance:
❗ Automated tests can be triggered manually with an appropriate comment:
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@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 message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, WebAPI Tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
Test failures look not related |
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, WebAPI Tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
@magento run Functional Tests B2B, Functional Tests EE, WebAPI Tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
41d1ff1
to
ed2c0ec
Compare
@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 message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
Hi @iGerchak, Thank you for your contribution! In order to proceed further on this PR, I have followed the mentioned steps on 2.4-develop on developer mode ✔️ QA PassedBefore: ✖️
After: ✔️
Since the build is failing, currently moving it further in Extended Testing. Thank you! |
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests EE, WebAPI Tests |
The functional B2B and EE failures are having the known failures. These failures are not related to this PR changes. Functional B2B: Run 2:
Functional EE: |
@magento run WebAPI Tests |
The WebAPI test failures in recent 2 runs are different. Also the test failure in recent run is a known failure. It is not failing because of this PR changes hence moving it to Merge in Progress. Run 1: Run 2: AC-11750 - testGetCustomerDescendingSortedOrders |
@magento create issue |
1d9a291
into
magento:2.4-develop
Description (*)
During developing our custom module was found an issue in the developer mode, for example, after implementing
\Magento\Customer\Controller\AccountInterface
class into the custom controller we got redirected to the login page (as was expected), but on the production on the same flow we got aninternal server error 500
.It happened because the redirect URL was set to the response before the trigger exception and as a result
Location
header was sent to the browser and the browser redirect to the login page instead of the page with an exception message.It's not expected flow between developer and production modes and can cause some issues for production.
Preconditions and environment
Steps to reproduce
app/code/Vendor/Module/registration.php
:app/code/Vendor/Module/etc/module.xml
:app/code/Vendor/Module/etc/frontend/routes.xml
:magento2/app/code/Vendor/Module/Controller/Example/Index.php
:www.domain.com/vendor/example
Expected result
Actual result
Unfortunately, I don't have enough experience with test coverage, will be great if someone covers this case by test.
Contribution checklist (*)
Resolved issues: