Bug 859796

Summary: Task path can have redundant slases
Product: [Retired] Beaker Reporter: Raymond Mancy <rmancy>
Component: testsAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.9CC: asaha, dcallagh, ebaak, jingwang, llim, rmancy, xjia
Target Milestone: 0.14Keywords: TestCaseApproved, TestCaseProvided
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: TaskLibrary
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-09 03:24:01 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 Raymond Mancy 2012-09-24 04:48:50 UTC
A task's path can have redundant slashes if they are in the task name.
I'm not sure if the correct response is to enforce no double slashed etc in the task name, or to just fix the path.

Comment 1 Dan Callaghan 2013-06-19 01:36:15 UTC
I think Beaker needs to reject tasks where the name contains redundant slashes (either a trailing slash, or multiple adjacent slashes) because they could lead to tasks with distinct names but mapping to the same filesystem path. We've already had a very similar problem in the past with logs (bug 865265).

Comment 2 Dan Callaghan 2013-06-19 04:05:31 UTC
On Gerrit: http://gerrit.beaker-project.org/2042

Comment 5 xjia 2013-07-24 07:03:48 UTC
1. Failed to import job because of: Invalid task(s): /distribution/reservesys/
2. Failed to import job because of: Invalid task(s): /distribution//reservesys
3. Failed to import job because of: Invalid task(s): /distribution\//reservesys

Comment 6 Dan Callaghan 2013-07-24 23:27:18 UTC
(In reply to xjia from comment #5)
> 1. Failed to import job because of: Invalid task(s):
> /distribution/reservesys/
> 2. Failed to import job because of: Invalid task(s):
> /distribution//reservesys
> 3. Failed to import job because of: Invalid task(s):
> /distribution\//reservesys

This error message just indicates that your job is referencing a task not known to Beaker.

This bug is about refusing to allow tasks to be uploaded which have redundant slashes in their name. See the test cases linked in comment 3.

Comment 8 Dan Callaghan 2013-08-09 03:24:01 UTC
Beaker 0.14.1 has been released.