-
Notifications
You must be signed in to change notification settings - Fork 25
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
Error "400 Bad request" sometimes when opening or editing an item #2705
Comments
According to UCL, this seems to only happen after an inactivity period on the browser tab. Refreshing the page before clicking if the page has been open for a while avoids this problem. |
The problem comes from here: https://github.com/rero/rero-ils-ui/blob/1ab892a4b6c196d3deadf94ba5f4d3377956ec1f/projects/admin/src/app/service/app-router-event.service.ts#L63 after 30' of inactivity the user is removed from the local storage. Proposition:
|
* Closes rero/rero-ils#2705. * Removes localeStorage user data. * Updates guards that used the user localeStorage. * Improves somes guards. * Adds some tests for guards. Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
* Closes rero/rero-ils#2705. * Removes localeStorage user data. * Updates guards that used the user localeStorage. * Improves somes guards. * Adds some tests for guards. Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
* Closes rero/rero-ils#2705. * Removes localeStorage user data. * Updates guards that used the user localeStorage. * Improves somes guards. * Adds some tests for guards. Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
* Closes rero/rero-ils#2705. * Removes localeStorage user data. * Updates guards that used the user localeStorage. * Improves somes guards. * Adds some tests for guards. Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
* Closes rero/rero-ils#2705. * Removes localeStorage user data. * Updates guards that used the user localeStorage. * Improves somes guards. * Adds some tests for guards. Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
* Closes rero/rero-ils#2705. * Removes localeStorage user data. * Updates guards that used the user localeStorage. * Improves somes guards. * Adds some tests for guards. Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
* Closes rero/rero-ils#2705. * Removes localeStorage user data. * Updates guards that used the user localeStorage. * Improves somes guards. * Adds some tests for guards. Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
Describe the bug
See video. This error has been spotted only since v1.8.0.
In the console, we have the following messages:
Maybe linked to #2277 and the PR that corrected it.
To Reproduce
The error is not systematic. See video (cache was disabled).
Expected behavior
No error
TO DO
See comments below
Context
v1.8.0
Screenshots
Admin.Mozilla.Firefox.2022-02-16.10-35-33.mp4
The text was updated successfully, but these errors were encountered: