0001-jump-raise-404-if-trigger-name-is-missing-66560.patch
tests/api/test_workflow.py | ||
---|---|---|
97 | 97 |
formdata.store() |
98 | 98 |
assert formdef.data_class().get(formdata.id).status == 'wf-st1' |
99 | 99 | |
100 |
# incomplete URL |
|
101 |
get_app(pub).post(sign_uri(formdata.get_url() + 'jump/'), status=404) |
|
102 |
get_app(pub).post(sign_uri(formdata.get_url() + 'jump'), status=404) |
|
103 |
get_app(pub).post(sign_uri(formdata.get_url() + 'jump/trigger/'), status=404) |
|
104 |
get_app(pub).post(sign_uri(formdata.get_url() + 'jump/trigger'), status=404) |
|
105 | ||
100 | 106 |
get_app(pub).post(sign_uri(formdata.get_url() + 'jump/trigger/XXX'), status=200) |
101 | 107 |
assert formdef.data_class().get(formdata.id).status == 'wf-st2' |
102 | 108 |
assert formdef.data_class().get(formdata.id).evolution[-1].who is None |
wcs/wf/jump.py | ||
---|---|---|
111 | 111 |
# remove trailing slash from path |
112 | 112 |
if path[-1] == '': |
113 | 113 |
path = path[:-1] |
114 |
if len(path) != 1: |
|
115 |
raise errors.TraversalError() |
|
114 | 116 |
return super()._q_traverse(path) |
115 | 117 | |
116 | 118 | |
117 |
- |