Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information