Bug 970512

Summary: removing a system from a group fails with 405 Method Not Allowed
Product: [Retired] Beaker Reporter: Dan Callaghan <dcallagh>
Component: web UIAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact: Nick Coghlan <ncoghlan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.12CC: asaha, dcallagh, llim, qwan, rglasz, rmancy, xjia
Target Milestone: 0.13Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-25 06:25:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dan Callaghan 2013-06-04 08:19:50 UTC
Description of problem:
Removing a system from a group fails with 405 Method Not Allowed.

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

Steps to Reproduce:
1. Add a system to a group.
2. Click "Remove" to remove the system from the group.

Actual results:
Beaker gives a 405 Method Not Allowed error.

Expected results:
Should permit the removal.

Additional info:
I think this is a regression from commit 20490692 (Beaker 0.9.1) though I haven't tested back that far. It looks like @restrict_http_method('post') should have been added to the remove method, not the removeSystem method.

Comment 1 Dan Callaghan 2013-06-04 09:18:28 UTC
On Gerrit: http://gerrit.beaker-project.org/2014

Comment 2 xjia 2013-06-05 02:20:09 UTC
Well, is it same with bug 960343 ?

Comment 3 Dan Callaghan 2013-06-05 02:21:22 UTC
(In reply to xjia from comment #2)

Indeed, well spotted. :-)

Comment 4 Dan Callaghan 2013-06-05 02:21:36 UTC
*** Bug 960343 has been marked as a duplicate of this bug. ***

Comment 6 Dan Callaghan 2013-06-05 23:46:27 UTC
*** Bug 970915 has been marked as a duplicate of this bug. ***

Comment 8 Nick Coghlan 2013-06-06 07:50:53 UTC
Confirmed that this now works as expected on the integration instance:

1. Added a system to a group
2. Navigated to the group's details page
3. Used the "Remove" link for the system to remove it from the group
4. Answered "Yes" to the confirmation prompt
5. Received notification the system had been removed
6. System no longer appeared on the group's page and the group no longer appeared in group list on the system' page

Comment 10 Amit Saha 2013-06-25 06:25:31 UTC
Beaker 0.13.1 has been released.