Bug 1114757 - Clean up organization search options methods in IdResolver
Summary: Clean up organization search options methods in IdResolver
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: David Davis
QA Contact: Tazim Kolhar
URL: http://projects.theforeman.org/issues...
Whiteboard:
: 1114758 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-30 21:54 UTC by Partha Aji
Modified: 2019-09-26 18:10 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-11 12:24:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 6451 0 None None None 2016-04-22 16:50:59 UTC

Description Partha Aji 2014-06-30 21:54:58 UTC
$ hammer organization create --name Test1234
Organization created
$ hammer organization info --name Test1234
Error: organization found more than once
$ hammer organization create --name Test1234
Could not create the organization:
  Name has already been taken
  Name has already been taken
  Title has already been taken
  Label already exists (including organizations being deleted)
  Organization Names and labels must be unique across all organizations

Comment 1 Partha Aji 2014-06-30 21:55:00 UTC
Created from redmine issue http://projects.theforeman.org/issues/6451

Comment 2 Partha Aji 2014-06-30 21:55:04 UTC
Upstream bug assigned to daviddavis

Comment 3 David Davis 2014-06-30 21:56:46 UTC
*** Bug 1114758 has been marked as a duplicate of this bug. ***

Comment 5 David Davis 2014-07-22 16:38:49 UTC
To reproduce:

1. Create an org with name "Test1234" (hammer organization create --name Test1234)
2. Try to get its info by name (ie hammer organization info --name Test1234)


Expected result:

See org info


Actual result:

"Error: organization found more than once"

Comment 6 David Davis 2014-07-22 16:45:12 UTC
Looks like this was already fixed. Going to change this bug to a refactor task to clean up the code instead.

Comment 7 David Davis 2014-07-22 16:46:48 UTC
QE: if you want to test this, do a regression test involving organization name such as:

$ hammer organization create --name Test1234
$ hammer organization info --name Test1234

Make sure you don't get an error.

Comment 8 Bryan Kearney 2014-08-05 16:03:34 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/6451 has been closed
-------------
David Davis
Applied in changeset commit:hammer-cli-katello|9d089b78155330974822241ee2df5e0b3078d0fc.

Comment 11 Tazim Kolhar 2014-08-11 08:31:31 UTC
VERIFIED :

[root@qetello02 ~]# hammer organization create --name Test1234
[Foreman] password for admin: 
Organization created
[root@qetello02 ~]# hammer organization info --name Test1234
[Foreman] password for admin: 
Id:                     576
Name:                   Test1234
Users:                  

Smart proxies:          
    qetello02.usersys.redhat.com
Subnets:                

Compute resources:      

Installation media:     

Templates:              

Domains:                

Environments:           

Hostgroups:             

Parameters:             

Created at:             2014/08/11 08:30:28
Updated at:             2014/08/11 08:30:29
Label:                  Test1234
Description:            
Red Hat Repository URL: https://cdn.redhat.com

Comment 12 Bryan Kearney 2014-09-11 12:24:43 UTC
This was delivered with Satellite 6.0 which was released on 10 September 2014.


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