You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using the GitHub Source Plugin for Jenkins to run CI on Pull Requests and in the Merge Queue.
The Merge Queue creates a branch name which includes the source branch of the PR, which can include slashes. Somewhere between GitHub and the CI job running in Jenkins, the branch name is converted to a directory path with the slashes uri encoded (%2F).
Running any command via ./bin/console in this directory causes the slash escapes in the path to be interpreted as parameters of some kind. for example ./bin/console cache:clear or ./bin/console cache:warmup
The error always points the first part of the directory path immediately after the first % as being incorrect.
For a project located in /var/lib/jenkins/workspace/GitHub-MergeQueue/api/my%2Fother%2Fslashy%2Fbranch, the error reads as
In ParameterBag.php line 88:
You have requested a non-existent parameter "2Fother"while loading extensi
on "framework".
How to reproduce
Clone a symfony application to a directory containing %2f in the path.
Run a command via ./bin/console
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
If I manually resolve all references to %kernel.*% in my config directory (true/fasle/paths not containing %2F), the error message changes:
php -d xdebug.mode=off -d memory_limit=-1 ./bin/console cache:warmup
→
→ In ParameterBag.php line 88:
→
→ You have requested a non-existent parameter "2Fother".
→
→
Symfony version(s) affected
7.1.x
Description
We are using the GitHub Source Plugin for Jenkins to run CI on Pull Requests and in the Merge Queue.
The Merge Queue creates a branch name which includes the source branch of the PR, which can include slashes. Somewhere between GitHub and the CI job running in Jenkins, the branch name is converted to a directory path with the slashes uri encoded (
%2F
).Running any command via
./bin/console
in this directory causes the slash escapes in the path to be interpreted as parameters of some kind. for example./bin/console cache:clear
or./bin/console cache:warmup
The error always points the first part of the directory path immediately after the first
%
as being incorrect.For a project located in
/var/lib/jenkins/workspace/GitHub-MergeQueue/api/my%2Fother%2Fslashy%2Fbranch
, the error reads asHow to reproduce
Clone a symfony application to a directory containing
%2f
in the path.Run a command via
./bin/console
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: