Branch: refs/heads/master
Home: https://github.com/jenkinsci/sloccount-plugin
Commit: 16a0199f756975e07088163978c4529b685433e6
https://github.com/jenkinsci/sloccount-plugin/commit/16a0199f756975e07088163978c4529b685433e6
Author: Aleksey Svistunov <[email protected]>
Date: 2022-06-15 (Wed, 15 Jun 2022)
Changed paths:
M src/main/java/hudson/plugins/sloccount/model/cloc/ClocReport.java
Log Message:
-----------
Fix processing report files with Unicode paths (#58)
Jenkins replaces some ASCII symbols like colons with Unicode
storing builds data. Parsing reports letter when users open
'SLOCCount Results' window the plugin unable to retrieve
SLOC information - file was stored by path with Unicode.
It relates to JDK 8.
Using unmarshal(File f) indeed processes not the File but a URL
based on its absolute path. When JDK tries to open connection it
calles ParseUtil.decode(url.getFile()) against our path containing
Unicode. This method converts Unicode back to ASCII. So we get
java.io.FileNotFoundException wrapped in javax.xml.bind.JAXBException,
which is ignored by the plugin. Using unmarshal(java.io.InputStream is)
solves the issue due to JDK uses passed InputStream and all
described here above do not affect us.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-commits/jenkinsci/sloccount-plugin/push/refs/heads/master/24ee7d-16a019%40github.com.