Project

General

Profile

Bug #35634

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

Added by Dirk Götz about 2 months ago. Updated 1 day ago.

Status:
Closed
Priority:
Normal
Category:
Web Interface
Target version:
-
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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.

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
Image 2022 10 11 08 15 43 602

Associated revisions

Revision a98470cc (diff)
Added by Maria Agaphontzev about 1 month ago

Fixes #35634 - searchbar crashes when no permissions

History

#1 Updated by Maria Agaphontzev about 1 month ago

  • Assignee set to Maria Agaphontzev

#2 Updated by The Foreman Bot about 1 month ago

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

#3 Updated by The Foreman Bot about 1 month ago

  • Fixed in Releases 3.5.0 added

#4 Updated by Maria Agaphontzev about 1 month ago

  • Status changed from Ready For Testing to Closed

#5 Updated by Ewoud Kohl van Wijngaarden 1 day ago

  • Triaged changed from No to Yes

Also available in: Atom PDF