-
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
Development Errors Result in Too Many Redirects #1310
Labels
bug report
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Progress: needs update
Comments
@astorm thank you for reporting this issue. We have created ticket MAGETWO-37969 to investigate this issue. |
mazhalai
added
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
PS
labels
May 27, 2015
I saw this behavior confuse all developers new to M2 on hackathon. So I think it should be high priority. |
Fully agree - needs to be fixed |
magento-team
pushed a commit
that referenced
this issue
Jun 19, 2015
magento-team
pushed a commit
that referenced
this issue
Jun 19, 2015
magento-team
pushed a commit
that referenced
this issue
Jun 19, 2015
magento-team
pushed a commit
that referenced
this issue
Jun 19, 2015
magento-team
pushed a commit
that referenced
this issue
Jun 19, 2015
magento-team
pushed a commit
that referenced
this issue
Jun 19, 2015
@astorm, fix is already available on here on public GitHub. Are you OK with provided changes? |
cpartica
pushed a commit
that referenced
this issue
Jul 14, 2017
Fixed issue: - MAGETWO-69606 Conflict between BaseUrl Change and Re-Sign Up functionality in the Analytics module
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug report
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Progress: needs update
When an error/uncaught-exception occurs Magento 2, with developer mode on, the current system behavior is to redirect the user to the home page, and then the home page will display the error/exception message.
This often creates a "too many redirects" problem
The "too many redirects" problem happens if
There are myriad ways this can and will crop up during regular development, but the easiest way to reproduce the problem is
app/code/Magento/PageCache/etc/events.xml
fileMagento\PageCache\Model\Observer\RegisterFormKeyFromCookie
textMagento\PageCache\Model\Observer\RegisterFormKeyFromCookiee
Expected Behavior: The browser displays the text, along with a Stack Trace
Actual Behavior: Browser gets caught in a redirect loop, resulting in a "This webpage has a redirect loop" error
While error handling is a complex problem, at minimum it's reasonable for a developer/programmer to expect their PHP error be displayed on the screen when developer mode is enabled. With error handling being such a multifaceted thing that touches many different aspects of the system, this sort of change is probably best handled by the core and/or development leadership team. If not coded by them directly "the right" solution ultimately needs to come from a central authority.
While this is also undesired behavior for non developer mode, the issue has not been researched there, and if present may require a different solution in that context.
The text was updated successfully, but these errors were encountered: