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}}
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.
Created redmine issue http://projects.theforeman.org/issues/5454 from this bug
Hi Adam, closing as "not a bug". The behavior is correct since Satelite6 uses the label as human-readable ids. Labels should also immutable.