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
The Jenkins start script accidentally expands * (to all files in the working directory) originating from an environment variable with its eval.
This lead to a 500 error, when opening a file from the directory browser:
Error while serving https://qa-hidrive.de/job/XXXXX/XXXXX/Report.html
org.eclipse.jetty.http.BadMessageException: 500: Response header too large
at org.eclipse.jetty.server.HttpConnection$SendCallback.process(HttpConnection.java:768)
at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241)
at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:223)
at org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:550)
at org.eclipse.jetty.server.HttpChannel.sendResponse(HttpChannel.java:910)
at org.eclipse.jetty.server.HttpChannel.write(HttpChannel.java:987)
at org.eclipse.jetty.server.HttpOutput.channelWrite(HttpOutput.java:285)
at org.eclipse.jetty.server.HttpOutput.channelWrite(HttpOutput.java:269)
at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:869)
at com.jcraft.jzlib.DeflaterOutputStream.deflate(DeflaterOutputStream.java:144)
at com.jcraft.jzlib.DeflaterOutputStream.write(DeflaterOutputStream.java:102)
at org.kohsuke.stapler.compression.FilterServletOutputStream.write(FilterServletOutputStream.java:41)
at org.springframework.security.web.util.OnCommittedResponseWrapper$SaveContextServletOutputStream.write(OnCommittedResponseWrapper.java:638)
at org.kohsuke.stapler.Stapler.serveStaticResource(Stapler.java:628)
at org.kohsuke.stapler.ResponseImpl.serveFile(ResponseImpl.java:231)
at hudson.model.DirectoryBrowserSupport.serveFile(DirectoryBrowserSupport.java:415)
at hudson.model.DirectoryBrowserSupport.generateResponse(DirectoryBrowserSupport.java:164)
at htmlpublisher.HtmlPublisherTarget$BaseHTMLAction.doDynamic(HtmlPublisherTarget.java:275)
at htmlpublisher.HtmlPublisherTarget$HTMLAction.doDynamic(HtmlPublisherTarget.java:283)
at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710)
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:398)
Caused: java.lang.reflect.InvocationTargetException
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:402)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:410)
...
What feature do you want to see added?
The Jenkins start script accidentally expands
*
(to all files in the working directory) originating from an environment variable with itseval
.This lead to a 500 error, when opening a file from the directory browser:
This is what we had in the config initially:
This is what the process command looked like:
Initially I did not recognized this as an error until I compared that with the command, when the CSP config was absent:
Now I understood
*
was expanded by the shell, so the CSP system property no longer contained the*
but a lot of filenames from the working directory.This is a MCVE for the underlying problem:
Although we probably stick with enumerating the actual domains instead of using
*
, I though you want to fix this.This is a proposed fix:
This is the current Jenkins version:
Upstream changes
None.
The text was updated successfully, but these errors were encountered: