Bug 1029809 - 'group None' returned when running 'bkr group-modify --root-password'
Summary: 'group None' returned when running 'bkr group-modify --root-password'
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Beaker
Classification: Retired
Component: command line
Version: develop
Hardware: Unspecified
OS: Unspecified
low
low vote
Target Milestone: ---
Assignee: beaker-dev-list
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-13 09:34 UTC by wangjing
Modified: 2020-10-21 14:18 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-21 14:14:41 UTC


Attachments (Terms of Use)

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__ .


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