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
What Operating System are you using (both controller, and any agents involved in the problem)?
GKE - Kubernetes - Linux
Anything else?
The method IOUtil.sanitizeFilename is not safe for very nested folders / files.
The method allows for filenames longer than 255 characters to be generated which will result in a "File name too long" error.
This issue was encountered in our Jenkins environment as paths can be longer than 255 characters but single file names can't.
Also encountering this in our linux Jenkins environment with plugin v1.17 where generated file names are over 255 chars resulting in File name too long errors being thrown when attempting to publish the report.
Jenkins and plugins versions report
Environment
Cobertura Jenkins Plugin version: 1.17What Operating System are you using (both controller, and any agents involved in the problem)?
GKE - Kubernetes - Linux
Anything else?
The method
IOUtil.sanitizeFilename
is not safe for very nested folders / files.The method allows for filenames longer than 255 characters to be generated which will result in a "File name too long" error.
This issue was encountered in our Jenkins environment as paths can be longer than 255 characters but single file names can't.
https://github.com/jenkinsci/cobertura-plugin/blob/master/src/main/java/hudson/plugins/cobertura/IOUtils.java#L36-L46
The text was updated successfully, but these errors were encountered: