Bug 1089996 - Updating organization label doesn't work
Summary: Updating organization label doesn't work
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.0.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Dustin Tsang
QA Contact: Jitendra Yejare
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-22 10:53 UTC by Adam Saleh
Modified: 2019-02-25 21:56 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-28 16:40:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 5454 0 None None None 2016-04-22 15:40:22 UTC

Description Adam Saleh 2014-04-22 10:53:40 UTC
Description of problem:

When running update on org on api endpoint, label present in json causes candlepin to throw errors.

Version-Release number of selected component (if applicable):
Version 1.5.0-19.el6sat 


Steps to Reproduce:

curl -X PUT -k -u admin:changeme -H "Content-Type: application/json" https://qetello02.usersys.redhat.com/api/v2/organizations/550 -d '{"organization": {"label": "hIxwUvCnUHowVjwnqedD", "description": "ollIHcITnDinXqIGhGoA", "name": "38343473775053308715"}}'

Actual results:
{
  "error": {"message":"Katello::Resources::Candlepin::CandlepinResource: 404 Resource Not Found {\"displayMessage\":\"Organization with id hIxwUvCnUHowVjwnqedD could not be found.\",\"requestUuid\":\"04729c92-3710-46f6-be9d-e5d7c94ddc6f\"} (GET /candlepin/owners/hIxwUvCnUHowVjwnqedD/servicelevels)"}
}

Expected results:
{"organization":{"ancestry":null,"apply_info_task_id":null,"created_at":"2014-04-22T09:40:23Z","default_info":{"system":[],"distributor":[]},"deletion_task_id":null,"description":"ollIHcITnDinXqIGhGoA","id":550,"ignore_types":[],"label":"59533697327709441536","name":"38343473775053308715","owner_auto_attach_all_systems_task_id":null,"title":"38343473775053308715","updated_at":"2014-04-22T09:54:20Z","service_levels":[],"service_level":null}}

Comment 1 RHEL Program Management 2014-04-22 10:55:12 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 Tom McKay 2014-04-25 17:34:40 UTC
Created redmine issue http://projects.theforeman.org/issues/5454 from this bug

Comment 4 Dustin Tsang 2014-04-28 16:40:25 UTC
Hi Adam, closing as "not a bug". The behavior is correct since Satelite6 uses the label as human-readable ids. Labels should also immutable.


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