-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
OS for Jenkins (master node): CentOS release 6.8 ( 2.6.32-642.6.1.el6.x86_64)
OS for slave node: Windows Server 2016 version 1607
Jenkins 2.121.3;
Oracle JDK 1.8.0_144 x64;
HTML Publisher 1.16
The Jenkins + HTML Publisher made a copy of report from folder on windows slave machine to Jenkins machine (master) into a folder with incorrect naming. I assume that it happens due to encoding issue for "spaces" in the "Report Title" field.
Jenkins as Master runs directly and stored HTML reports locally. All test automation tests he run s on windows slave machine (Windows Server 2016 version 1607) via JNLP-4 connection.
HTML Publisher configuration:
Console output:
16:38:15 [htmlpublisher] Archiving HTML reports...16:38:15 [htmlpublisher] Archiving at BUILD level c:/workspace/TA_MAIN/ta-10/chrome/regression/TA_reports to /var/lib/jenkins/jobs/TAMAIN/builds/80293/htmlreports/Main_20Test_20Report*16:38:15* [htmlpublisher] Archiving at BUILD level c:/workspace/TAMAIN/ta-10/chrome/regression/TA_RERUN_reports to /var/lib/jenkins/jobs/TA_MAIN/builds/80293/htmlreports/Rerun_20Test_20Report
As you could see the Jenkins creates a folder structure with "20" numerals in the naming that looks like an unicode for spaces. Besides of this the incorrect link appear for the "Main_ Test_Report" on the left panel of the current build which also contains the "20" numeral in the naming:
Note: For security reason the Jenkins itself and all plugins were updated to the newest versions.
Temporary workaround: The HTML Publisher downgrade to the version 1.15 solve that issue which is not secure.
This is expected behaviour and is a security fix for CVE-2018-1000175. Currently all non A-Z & 0-9 characters are replaced in the stored directory name as underscore (_) followed by the hex representation of the character (20 in the case of a space)