Bug 1127576

Summary: Build default PXE menu shall be POST request instead of GET
Product: Red Hat Satellite 6 Reporter: Peter Vreman <peter.vreman>
Component: APIAssignee: Tomas Strachota <tstrachota>
Status: CLOSED ERRATA QA Contact: Sachin Ghai <sghai>
Severity: low Docs Contact:
Priority: medium    
Version: 6.0.3CC: dcleal, sghai, tstrachota
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/6976
Whiteboard: Verified in Upstream
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 08:43:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 1122832    

Description Peter Vreman 2014-08-07 07:53:09 UTC
Description of problem:
Build default PXE menu is an action that modifies data. Therefor the API request shall be a POST request instead of GET request. This makes it also consistent with the import_puppetclases API call that needs a POST request

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Dominic Cleal 2014-08-07 07:57:07 UTC
Created redmine issue http://projects.theforeman.org/issues/6976 from this bug

Comment 3 Bryan Kearney 2015-06-10 18:02:13 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/6976 has been closed
-------------
Anonymous
Applied in changeset commit:9250d8b4eb1173b7bfd3eed9bb69ba6a6da4eb5b.

Comment 4 Sachin Ghai 2015-10-20 09:58:59 UTC
Verified with latest upstream build:

foreman-release-1.11.0-0.develop.201510121538gitb6b977a.el7.noarch


[root@cloud-qe-XX ~]# curl -k -u admin:changeme  -H "Content-Type: application/json" -X POST 'https://foreman-server/api/v2/config_templates/build_pxe_default'
{"message":"PXE Default file has been deployed to all Smart Proxies"}[root@cloud-qe-XX ~]# 

Now build default pxe is now a POST request.

Comment 7 errata-xmlrpc 2016-07-27 08:43:21 UTC
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/RHBA-2016:1500