Bug 907650

Summary: bkr job-list --mine lists all jobs if authentication fails
Product: [Retired] Beaker Reporter: Dan Callaghan <dcallagh>
Component: command lineAssignee: Amit Saha <asaha>
Status: CLOSED CURRENTRELEASE QA Contact: Qixiang Wan <qwan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.11CC: asaha, dcallagh, ebaak, llim, qwan, rglasz, rmancy
Target Milestone: 0.12   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: CommandLineEnhancement
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-11 04:56:10 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-02-04 22:34:34 UTC
Using kerberos auth, without a ticket, bkr job-list --mine returns 78257 jobs. After kinit it returns 39.

Comment 1 Amit Saha 2013-02-20 01:36:28 UTC
(In reply to comment #0)
> Using kerberos auth, without a ticket, bkr job-list --mine returns 78257
> jobs. After kinit it returns 39.

Same for username/password authentication too.

Comment 2 Amit Saha 2013-02-20 04:35:06 UTC
On Gerrit: http://gerrit.beaker-project.org/#/c/1739/

Comment 4 Qixiang Wan 2013-03-27 08:42:32 UTC
Verified with beaker-0.11.3-1.git.210.bda2c22.

After the fix, an exception will be raised if auth fails while using '--mine' with job-list.

$ bkr job-list --mine
XML-RPC fault: <class 'bkr.common.bexceptions.BX'>:'You should be authenticated to use the --mine filter.'

Comment 5 Dan Callaghan 2013-04-11 04:56:10 UTC
Beaker 0.12 has been released.