Bug 1029809 - 'group None' returned when running 'bkr group-modify --root-password'
'group None' returned when running 'bkr group-modify --root-password'
Status: NEW
Product: Beaker
Classification: Community
Component: command line (Show other bugs)
develop
Unspecified Unspecified
low Severity low (vote)
: ---
: ---
Assigned To: beaker-dev-list
tools-bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-13 04:34 EST by wangjing
Modified: 2016-05-26 09:24 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
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)

  None (edit)
Description wangjing 2013-11-13 04:34:10 EST
Description of problem:
'group None' returned when running 'bkr group-modify --root-password'

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

How reproducible:
always

Steps to Reproduce:
1. kinit login as an account that is not an owner of group1.

2. run:
bkr group-modify --root-password password group1

Actual results:
return:
XML-RPC fault: <class 'bkr.common.bexceptions.BX'>:You are not an owner of group None

Expected results:
XML-RPC fault: <class 'bkr.common.bexceptions.BX'>:You are not an owner of group group1

Additional info:
Comment 2 Dan Callaghan 2013-11-13 16:42:50 EST
(In reply to wangjing from comment #0)
> return:
> XML-RPC fault: <class 'bkr.common.bexceptions.BX'>:You are not an owner of
> group None
> 
> Expected results:
> XML-RPC fault: <class 'bkr.common.bexceptions.BX'>:You are not an owner of
> group group1

Is "None" the display name of group1? I'm guessing this is just another case of using group name vs. display name inconsistently (bug 967392).
Comment 3 Amit Saha 2013-11-13 19:38:13 EST
(In reply to Dan Callaghan from comment #2)
> (In reply to wangjing from comment #0)
> > return:
> > XML-RPC fault: <class 'bkr.common.bexceptions.BX'>:You are not an owner of
> > group None
> > 
> > Expected results:
> > XML-RPC fault: <class 'bkr.common.bexceptions.BX'>:You are not an owner of
> > group group1
> 
> Is "None" the display name of group1? I'm guessing this is just another case
> of using group name vs. display name inconsistently (bug 967392).

Seems like it. I see that we return the group object in error messages. And in class Group, we return the display name in the __str__ .

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