Bug 1316167 - hammer repository-set enable returns "Error: 409 Conflict" instead of "The repository is already enabled"
hammer repository-set enable returns "Error: 409 Conflict" instead of "The re...
Status: CLOSED DUPLICATE of bug 1335898
Product: Red Hat Satellite 6
Classification: Red Hat
Component: API - Content (Show other bugs)
6.2.0
Unspecified Unspecified
unspecified Severity unspecified (vote)
: Unspecified
: --
Assigned To: satellite6-bugs
Katello QA List
http://projects.theforeman.org/issues...
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-03-09 09:53 EST by Tom McKay
Modified: 2017-04-25 12:28 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-12-19 16:56:14 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 14122 None None None 2016-04-26 13:01 EDT

  None (edit)
Description Tom McKay 2016-03-09 09:53:19 EST
Attempting to enable an already enabled repository does not display the actual helpful error message.

To reproduce, attempt to enable an already-enabled repo.
Comment 1 Tom McKay 2016-03-09 09:53:21 EST
Created from redmine issue http://projects.theforeman.org/issues/14122
Comment 3 Bryan Kearney 2016-03-11 22:09:55 EST
Upstream bug component is API
Comment 4 Bryan Kearney 2016-07-26 11:25:24 EDT
Moving 6.2 bugs out to sat-backlog.
Comment 5 Bryan Kearney 2016-07-26 11:33:09 EDT
Moving 6.2 bugs out to sat-backlog.
Comment 7 Bryan Kearney 2016-08-10 15:14:39 EDT
Upstream bug component is API - Content
Comment 8 Bryan Kearney 2016-08-10 16:15:42 EDT
Upstream bug component is API
Comment 9 Bryan Kearney 2016-08-10 18:15:21 EDT
Upstream bug component is API - Content
Comment 10 John Mitsch 2016-12-19 16:56:14 EST
[root@sat-snap-rhel7 ~]# curl -X PUT -k -u admin:changeme -H "Content-Type: application/json" -d '{"basearch": "i386", "releasever": "5.10"}' https://192.168.121.113/katello/api/products/101/repository_sets/1524/enable
{"displayMessage":"The repository is already enabled","errors":["The repository is already enabled"]}

I wasn't able to reproduce and I got the proper error on satellite-6.2.6-2.0.el7sat.noarch

I think the same fix as https://bugzilla.redhat.com/show_bug.cgi?id=1335898 fixed this.

*** This bug has been marked as a duplicate of bug 1335898 ***

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