Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1132914 - Duplicate route sync plan
Duplicate route sync plan
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: API (Show other bugs)
6.0.3
Unspecified Unspecified
unspecified Severity low (vote)
: Unspecified
: Unused
Assigned To: Christine Fouant
jaudet
http://projects.theforeman.org/issues...
: Triaged
Depends On:
Blocks: 1122832
  Show dependency treegraph
 
Reported: 2014-08-22 05:43 EDT by Peter Vreman
Modified: 2017-02-23 16:02 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-12 01:12:55 EDT
Type: Bug
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 7292 None None None 2016-04-22 11:44 EDT
Red Hat Product Errata RHSA-2015:1592 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 05:04:35 EDT

  None (edit)
Description Peter Vreman 2014-08-22 05:43:59 EDT
Description of problem:
There is a duplicate route in sync_plan modification

# grep 'PUT.*sync.*prod' sync_plans_controller.rb.old
  api :PUT, "/organizations/:organization_id/sync_plans/:id/products", N_("Add products to sync plan")
  api :PUT, "/organizations/:organization_id/sync_plans/:id/products", N_("Remove products from sync plan")


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
Use DELETE for Remove of products


Expected results:


Additional info:
Comment 1 Peter Vreman 2014-08-22 05:44:38 EDT
Patch to fix

--- /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/controllers/katello/api/v2/sync_plans_controller.rb
+++ /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/controllers/katello/api/v2/sync_plans_controller.rb
@@ -126,7 +126,7 @@
     respond_for_show
   end

-  api :PUT, "/organizations/:organization_id/sync_plans/:id/products", N_("Remove products from sync plan")
+  api :DELETE, "/organizations/:organization_id/sync_plans/:id/products", N_("Remove products from sync plan")
   param :id, String, :desc => N_("ID of the sync plan"), :required => true
   param :product_ids, Array, :desc => N_("List of product ids to remove from the sync plan"), :required => true
   def remove_products
Comment 2 RHEL Product and Program Management 2014-08-22 05:53:10 EDT
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 5 Christine Fouant 2014-08-28 09:08:58 EDT
Created redmine issue http://projects.theforeman.org/issues/7292 from this bug
Comment 6 Bryan Kearney 2014-08-28 16:05:19 EDT
Moving to POST since upstream bug http://projects.theforeman.org/issues/7292 has been closed
-------------
Christine Fouant
Applied in changeset commit:katello|9faf11f0dd90ada679446c83acf725788234969c.
Comment 9 jaudet 2015-03-05 09:59:10 EST
Verified against Satellite-6.1.0-RHEL-7-20150303.0 and Satellite-6.1.0-RHEL-6-20150303.0 using these tests: https://github.com/SatelliteQE/robottelo/pull/1969
Comment 10 Bryan Kearney 2015-08-11 09:33:39 EDT
This bug is slated to be released with Satellite 6.1.
Comment 11 errata-xmlrpc 2015-08-12 01:12:55 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:1592

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