Bug 1029809

Summary: 'group None' returned when running 'bkr group-modify --root-password'
Product: [Retired] Beaker Reporter: wangjing <jingwang>
Component: command lineAssignee: beaker-dev-list
Status: CLOSED WONTFIX QA Contact: tools-bugs <tools-bugs>
Severity: low Docs Contact:
Priority: low    
Version: developCC: qwan, tools-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-21 14:14:41 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:

Description wangjing 2013-11-13 09:34:10 UTC
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 21:42:50 UTC
(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-14 00:38:13 UTC
(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__ .