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 1218929 - Organization id accepts location ids without any error
Summary: Organization id accepts location ids without any error
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Organizations and Locations
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Ohad Levy
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-06 08:12 UTC by Tomas Strachota
Modified: 2017-01-12 15:29 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-12 15:29:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Tomas Strachota 2015-05-06 08:12:05 UTC
Description of problem:

Organization id accepts location ids without any error and vice versa. It seems to be a cross-api problem in the taxonomized resources.


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


How reproducible:


Steps to Reproduce:
1. List locations in the system, pick some id
2. Create a user (or any other taxonimized resource) via api and set organization_ids field to the location id from the previous step
3. The api call accepts the wrong id
4. Check details of the just created user. It will have blank organizations but locations will be set to the one form the step 1.


Actual results:
It silently assigns location instead of organization.


Expected results:
The call should return "Organization not found" error.


Additional info:
We store taxonomies (organizations and locations) into the same db table. API controllers probably don't check their types.

Comment 1 RHEL Program Management 2015-05-06 08:12:43 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 Bryan Kearney 2016-07-26 15:25:24 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 4 Bryan Kearney 2016-07-26 15:45:48 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 6 Bryan Kearney 2017-01-12 15:29:18 UTC
This is an older bug which I do not envision being fixed in the near term. I am closing this out. If you believe doing so is an issue, please feel free to re-open and provide additional business information. Thank you.


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