Bug 1246135

Summary: publish or promote of CV with user with permissions that included unlimited "Locations" selection errors
Product: Red Hat Satellite Reporter: Dave Sullivan <dsulliva>
Component: Content ManagementAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bbuckingham, jsherril
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-04 15:13:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dave Sullivan 2015-07-23 14:05:00 UTC
Description of problem:

2015-07-20 10:14:48 [I] Processing by Katello::Api::V2::ContentViewsController#publish as JSON
2015-07-20 10:14:48 [I]   Parameters: {"id"=>"25", "organization_id"=>"1", "api_version"=>"v2", "content_view"=>{"id"=>"25"}}
2015-07-20 10:14:49 [E] Validation failed: Location ids Invalid locations selection, you must select at least one of yours (ActiveRecord::RecordInvalid)

2015-07-21 08:41:36 [I] Completed 200 OK in 484ms (Views: 352.4ms | ActiveRecord: 101.1ms)
2015-07-21 08:41:39 [I] Processing by Katello::Api::V2::ContentViewVersionsController#promote as JSON
2015-07-21 08:41:39 [I]   Parameters: {"id"=>"70", "environment_id"=>2, "api_version"=>"v2", "content_view_version"=>{"id"=>"70"}}
2015-07-21 08:41:40 [E] Validation failed: Location ids Invalid locations selection, you must select at least one of yours (ActiveRecord::RecordInvalid)


2015-07-21 08:41:40 [E] ActiveRecord::RecordInvalid
2015-07-21 08:41:40 [E] location_ids: ["Invalid locations selection, you must select at least one of yours"]

It's not clear why you need to have a location as error above shows.

When you can put permissions on user to have unlimited locations visibility (i.e. no locations filter)


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

6.1 public beta


How reproducible:


Steps to Reproduce:
1. Create Content View
2. Have a Host associated to Content View
3. Create a Location associate to host
4. Put unlimited "Locations" filter (no filter)
5. Publish promote

Actual results:


Expected results:


Additional info:

Comment 1 RHEL Program Management 2015-07-23 14:07:20 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Dave Sullivan 2015-07-23 17:35:02 UTC
Note, the following BZ may have provided coverage for this issue.

https://bugzilla.redhat.com/show_bug.cgi?id=1236740

Will have the look at the patch and test the updated version when 6.1.1 lands.

Comment 4 Justin Sherrill 2015-08-04 15:13:56 UTC

*** This bug has been marked as a duplicate of bug 1236740 ***