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 1246135 - publish or promote of CV with user with permissions that included unlimited "Locations" selection errors
Summary: publish or promote of CV with user with permissions that included unlimited "...
Keywords:
Status: CLOSED DUPLICATE of bug 1236740
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-23 14:05 UTC by Dave Sullivan
Modified: 2019-10-10 09:59 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-04 15:13:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


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