Skip to content
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

search result page returns cached snackbar error even if it is fixed, until /api/search2 is called #2971

Open
SammyIsConfused opened this issue May 7, 2021 · 0 comments
Labels

Comments

@SammyIsConfused
Copy link
Contributor

Describe the bug
This happens when there is REST API error in the interface.

E.g. image gallery 403 issue #2951. When you got the error, switch to standard search, switch back to gallery, you will notice that there is no REST API call and it returns 403 error straight away again, even if the EDIT_SYSTEM_SETTINGS permission is added.

Another example, file viewer mime-type issue #2707. If you got this error and fix it in a separate tab, clicking the "New search" button still returns the error. If /api/search2 is triggered (by refreshing the page or changing to gallery views), it works again.

To Reproduce
Steps to reproduce the behavior:

  1. Trigger issue Image gallery not available to users without EDIT_SYSTEM_SETTINGS permissions #2951 by visiting the image gallery page without EDIT_SYSTEM_SETTINGS permissions. Note the 403 error.
  2. Click on Standard search button, then click the image gallery button again.
  3. Note that the error is still there and no call to api/mimetype (or any API call at all, for that matter) to refresh the image gallery.

Expected behavior
Switching from and back to the image gallery should refresh the data.

Platform:

  • OpenEquella Version: 2021.1
  • OS: Agnostic
  • Browser: Agnostic
@cathfitz cathfitz added this to the 2021.2 milestone May 17, 2021
@cathfitz cathfitz removed this from the 2021.2 milestone Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants