jenkinsci / jenkinsci/matrix-project-plugin
[JENKINS-8176] Matrix Projects variables do not Escaped properly the / character in the URL
- Dominant language
- Java
- Stars
- 17
- Forks
- 85
- Avg merge
- 4h 27m
- Merged PRs (30d)
- 5
Description
If you create a matrix variable that contains a / (I didn't test other characters) It will create the wrong directory structure causing hudson to create wrong URLs as well as misbehave in the filesystem.
This seems like an oversight in the escaping sequence for those variables.
The correct behavior will be to either replace the directory names with another valid character (say a dash) or escape them in both the filesystem and the URLs and then decode them back to be available as values in the Build script.
More info and a workaround in the original mailing list post http://groups.google.com/group/hudson-users/browse_thread/thread/4a9f54d146189c15/
---
Originally reported by elpargo, imported from: Matrix Projects variables do not Escaped properly the / character in the URL
Raw content of original issue
If you create a matrix variable that contains a / (I didn't test other characters) It will create the wrong directory structure causing hudson to create wrong URLs as well as misbehave in the filesystem.
This seems like an oversight in the escaping sequence for those variables.
The correct behavior will be to either replace the directory names with another valid character (say a dash) or escape them in both the filesystem and the URLs and then decode them back to be available as values in the Build script.
More info and a workaround in the original mailing list post http://groups.google.com/group/hudson-users/browse_thread/thread/4a9f54d146189c15/
- environment:
CentoOS5 server - Hudson ver. 1.381 -
Contributor guide
Research direction
Start by reproducing the matrix-project-plugin behavior with a matrix variable containing a slash, using the reported Hudson 1.381 environment details as context. Trace how matrix variable values become filesystem directory names and URLs, then verify that the chosen escaping behavior preserves the original value for the build script and prevents incorrect paths and URLs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100