Description of problem: In Satellite 6, I can bookmark searches. These bookmarked search are coupled to a controller in which they are available. I can make a search in the puppetclasses controller named 'ntp' for example, to search for the ntp class. The fact that the name of the bookmarked search needs to be globally unique means that I cannot create another bookmarked search for the lookup_keys controller named 'ntp' (which I'll probably want to do, since it's similar content as puppetclasses). Version-Release number of selected component (if applicable): foreman-1.7.2.32-1.el7sat.noarch How reproducible: Steps to Reproduce: 1. Create bookmarked search called 'ntp' in puppetclasses controller 2. Try to create a bookmarked search in another controller with the same name 3. Actual results: Cannot save second search Expected results: Bookmarked search should only need to be unique within the context of a single controller. Then I could save a second bookmarked search in the lookup_keys controller called 'ntp' as well. Additional info:
Created redmine issue http://projects.theforeman.org/issues/11451 from this bug
Moving to POST since upstream bug http://projects.theforeman.org/issues/11451 has been closed ------------- Alon Goldboim Applied in changeset commit:a5a7bc71980454ae17c0eb43253276acb3a01910.
VERIFIED on sat 6.2.0 snap 9.0 # curl -u admin:changeme -H 'Content-Type: application/json' -d '{"name": "test", "query":"foo", "controller": "puppetclasses"}' 'https://sat6.com/api/v2/bookmarks' {"name":"test","controller":"puppetclasses","query":"foo","public":null,"id":22,"owner_id":3,"owner_type":"User"} # curl -u admin:changeme -H 'Content-Type: application/json' -d '{"name": "test", "query":"foo", "controller": "users"}' 'https://sat6.com/api/v2/bookmarks' {"name":"test","controller":"users","query":"foo","public":null,"id":23,"owner_id":3,"owner_type":"User"} verified also via UI
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, 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/RHBA-2016:1500