Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1920579 - The private bookmark status is not reflected correct in satellite GUI and we cannot make a private bookmark public through Red Hat Satellite GUI
Summary: The private bookmark status is not reflected correct in satellite GUI and we ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Search
Version: 6.9.0
Hardware: All
OS: All
unspecified
medium
Target Milestone: 6.11.0
Assignee: satellite6-bugs
QA Contact: Jaroslav Henner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-26 16:21 UTC by Kaushik Sajjan Agarwal
Modified: 2022-07-05 14:29 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-05 14:28:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 32662 0 Normal Closed Editing an existing bookmark should respect the current visibility 2022-02-15 17:03:38 UTC
Red Hat Product Errata RHSA-2022:5498 0 None None None 2022-07-05 14:29:24 UTC

Description Kaushik Sajjan Agarwal 2021-01-26 16:21:44 UTC
Description of problem:

We cannot make a private bookmark public through Red Hat Satellite GUI


Version-Release number of selected component (if applicable):

Red Hat Satellite 6.9


How reproducible:

Always

Steps to Reproduce:

1. Navigate to Monitor >> Tasks in Satellite GUI
2. Enter any search query and try to save the search query as a private/non-public bookmark.
3. Then navigate to "Administer >> Bookmarks" (Note the "Public" column for the created private/non-public bookmark and it shows correct status as "false")
4. Now click on the private/non-public bookmark name and you can observe that the "Public" flag is checked in the new webpage even though the bookmark is not a public bookmark. Thus not reflecting the bookmark privacy status correctly.
5. If you want to make the private/non-public bookmark public then you cannot do anything as the "Public" flag is already checked and unchecking and checking it again and trying to save it will cause no change.
6. Even trying to uncheck the "Public" flag and saving the bookmark will not cause any effect and if you reopen the bookmark again at "Administer >> Bookmarks", you will observe the public flag is checked even though it is not a public bookmark.


Actual results:

 - The "Public" flag is checked at "Administer >> Bookmarks >> Bookmark name" webpage for a non-public bookmark.

 - We cannot make the non-public bookmark public as the "Public" flag is checked and unchecking it makes no changes.


Expected results: 

 - The "Public" flag should not be checked at the "Administer >> Bookmarks >> Bookmark name" webpage for a non-public bookmark.

 - We should be able to make a non-public bookmark public through the satellite GUI.


Additional info:

 - The hammer command shows correct status for the public and non-public bookmarks:

---
# hammer bookmark info --id 20
Id:           20
Name:         test2
Controller:   foreman_tasks_tasks
Search Query: state = scheduled
Public:       false
Owner Id:     4
Owner Type:   User
---

 - We can change the bookmark privacy from non-public to public using the hammer command:

---
# hammer bookmark update --id 20 --public 1
Bookmark test2 updated successfully.

# hammer bookmark info --id 20
Id:           20
Name:         test2
Controller:   foreman_tasks_tasks
Search Query: state = scheduled
Public:       true
Owner Id:     4
Owner Type:   User
---

 - Also, note that we are able to make an actual public bookmark (Bookmark whose status in the "Public" column is shown as "true" on the Administer >> Bookmarks" webpage) non-public by unchecking the "Public" flag in the "Administer >> Bookmarks >> Bookmark name" webpage, but the status of this non-public bookmark is still not reflected correctly as the "Public" flag is shown as checked when clicked on the non-public bookmark name.

Comment 1 Adam Ruzicka 2021-01-27 09:02:14 UTC
Does this affect only bookmarks related to tasks or all bookmarks?

Comment 2 Kaushik Sajjan Agarwal 2021-01-27 13:15:59 UTC
No, it affects all bookmarks.

I have checked for bookmarks created for hosts and packages and errata and had the same observations.

Thanks,
Kaushik Agarwal

Comment 3 Adam Ruzicka 2021-02-01 13:33:33 UTC
This is not tasks specific, moving to Search

Comment 6 Jaroslav Henner 2022-04-04 14:19:20 UTC
It works fine on 6.11. The button is disabled when public is false and gets enabled when I click on it. Then the public is true

Comment 10 errata-xmlrpc 2022-07-05 14:28:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Satellite 6.11 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:5498


Note You need to log in before you can comment on or make changes to this bug.