Bug 859796 - Task path can have redundant slases
Summary: Task path can have redundant slases
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: tests
Version: 0.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 0.14
Assignee: Dan Callaghan
QA Contact: tools-bugs
URL:
Whiteboard: TaskLibrary
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-24 04:48 UTC by Raymond Mancy
Modified: 2018-02-06 00:41 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-09 03:24:01 UTC
Embargoed:


Attachments (Terms of Use)

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.


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