Bug 1011400 - 500 Server Error when running 'bkr policy-grant' to wrong group/user
Summary: 500 Server Error when running 'bkr policy-grant' to wrong group/user
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: command line
Version: develop
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 0.15.3
Assignee: Amit Saha
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-24 08:14 UTC by wangjing
Modified: 2018-02-06 00:41 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-03 04:52:18 UTC
Embargoed:


Attachments (Terms of Use)

Comment 2 Amit Saha 2013-12-14 13:16:26 UTC
http://gerrit.beaker-project.org/#/c/2616/1

Comment 4 wangjing 2013-12-24 08:20:37 UTC
verified on beaker-devel(beaker-server-0.15.3-0.git.6.14ebabb.el6eng.noarch)-->pass

step:
1. run:
#bkr policy-grant  --system=dev-kvm-guest-09.rhts.eng.bos.redhat.com  --permission=edit_policy --group=sha
HTTP error: 400 Client Error: BAD REQUEST
Group 'sha' does not exist[root@dhcp-10-121 beakernew]# 
[root@dhcp-10-121 beakernew]# 
[root@dhcp-10-121 beakernew]# bkr policy-grant  --system=dev-kvm-guest-09.rhts.eng.bos.redhat.com  --permission=edit_policy --user=sha
HTTP error: 400 Client Error: BAD REQUEST
User 'sha' does not exist[root@dhcp-10-121 beakernew]# 

Actual results:
same as expected results.


Expected results:
proper messages.

Comment 5 Nick Coghlan 2014-02-03 04:52:18 UTC
This change is included in the Beaker 0.15.3 maintenance release:

http://beaker-project.org/docs/whats-new/release-0.15.html#beaker-0-15-3


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