Project

General

Profile

Actions

Bug #35634

closed

Searchbar disappears when trying to select a bookmark as user without bookmark permissions

Added by Dirk Götz over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Web Interface
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

If a user does not have some bookmark permissions but tries to use the bookmarks next to the searchbar the searchbar simply disappers. When looking into the browser's developer tools you the a javascript error in the DropdownMenu.js.

To reproduce simple add a user and give it the role "Viewer", log in as or impersonate to the user, navigate to the host overview and click on the bookmark symbol on the end of the searchbar.
To verify it has to do with permissions add the role "Bookmark Manager" to the user and it will start to work.

Probably it is related to https://projects.theforeman.org/issues/30387 as we found this only on versions after this change.


Files

image-2022-10-11-08-15-43-602.png View image-2022-10-11-08-15-43-602.png 58.2 KB Javascript error Dirk Götz, 10/14/2022 10:35 AM
Actions #1

Updated by Maria Agaphontzev over 1 year ago

  • Assignee set to Maria Agaphontzev
Actions #2

Updated by The Foreman Bot over 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/9470 added
Actions #3

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases 3.5.0 added
Actions #4

Updated by Maria Agaphontzev over 1 year ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by Ewoud Kohl van Wijngaarden over 1 year ago

  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF