feat(client): Stop passing 400 page error messages via query parameters. #3715
feat(client): Stop passing 400 page error messages via query parameters. #3715
Conversation
Tisk tisk, I didn't test this with production resources and Circle is complaining. |
e0dc296
to
5d8eae8
Compare
d35f693
to
b9d4e5b
Compare
@vladikoff - I'm calling this ready for review - hopefully the tests pass this time. |
@vladikoff - This approach still suffers from #2929. I could remove the session cookie clearing, or set a short expiry, users should probably only see the 400 page once anyways. |
related: #3434 |
Failing functional test, pulling back to me. |
@vladikoff - suggestions on handling #2929 and #3434? They seem to conflict. On page reload, we could keep showing the same message, or we could remove the cookie, check for the existence of the cookie after page reload, and if it's not there send the user to |
d0811a6
to
326a96d
Compare
I think we should remove the cookie in the hope the refresh fixed the problem (if js error) |
from mtg: watch out for the spinner, it hides things! |
29e644a
to
3f7e2e3
Compare
@vladikoff - I have updated this with the changes we talked about on Friday. Passing over to you! |
3f7e2e3
to
afbaaa0
Compare
Needs rebase |
@shane-tomlinson one issue I found, if you navigate directly to |
BAD_REQUEST_PAGE: '/400.html', | ||
// delay before redirecting to the error page to | ||
// ensure metrics are reported to the backend. | ||
ERROR_REDIRECT_TIMEOUT_MS: 1000, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Use a session cookie to pass the message instead. fixes #3649
Instead, print the 400 and 500 error pages directly in content. 500.html is left in the repo because nginx redirects to it. Add a new module, the domWriter, which writes to the DOM. This is used by ErrorUtils to display the correct error page. Ditch the `/unexpected_error` page.
afbaaa0
to
fdb23a7
Compare
Did you restart your content server? This is what I see: |
@vladikoff - rebased. |
Use a session cookie instead.
fixes #3649
@vladikoff and @jrgm - r?