Fork me on GitHub

FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.1

Threshold is

Effort is max

Summary

Classes Bugs Errors Missing Classes
28 18 0 0

Files

Class Bugs
fr.paris.lutece.plugins.jasper.business.JasperReport 2
fr.paris.lutece.plugins.jasper.service.JasperFileLinkService 4
fr.paris.lutece.plugins.jasper.service.export.HtmlJasperRender 4
fr.paris.lutece.plugins.jasper.service.purge.ImagePurgeService 2
fr.paris.lutece.plugins.jasper.web.JasperApp 2
fr.paris.lutece.plugins.jasper.web.JasperJspBean 3
fr.paris.lutece.plugins.jasper.web.JasperLinkServiceJspBean 1

fr.paris.lutece.plugins.jasper.business.JasperReport

Bug Category Details Line Priority
fr.paris.lutece.plugins.jasper.business.JasperReport.getDateModification() may expose internal representation by returning JasperReport._dateModification MALICIOUS_CODE EI_EXPOSE_REP 148 Medium
fr.paris.lutece.plugins.jasper.business.JasperReport.setDateModification(Timestamp) may expose internal representation by storing an externally mutable object into JasperReport._dateModification MALICIOUS_CODE EI_EXPOSE_REP2 159 Medium

fr.paris.lutece.plugins.jasper.service.JasperFileLinkService

Bug Category Details Line Priority
Dead store to buffer in fr.paris.lutece.plugins.jasper.service.JasperFileLinkService.exportFile(JasperReport, String, JRDataSource, Map, HttpServletRequest) STYLE DLS_DEAD_LOCAL_STORE 155 Medium
Dead store to buffer in fr.paris.lutece.plugins.jasper.service.JasperFileLinkService.exportFile(String, String, HttpServletRequest) STYLE DLS_DEAD_LOCAL_STORE 119 Medium
Dead store to buffer in fr.paris.lutece.plugins.jasper.service.JasperFileLinkService.exportFile(String, String, JRDataSource, HttpServletRequest) STYLE DLS_DEAD_LOCAL_STORE 136 Medium
fr.paris.lutece.plugins.jasper.service.JasperFileLinkService.getKey(HttpServletRequest) concatenates strings using + in a loop PERFORMANCE SBSC_USE_STRINGBUFFER_CONCATENATION 246 Medium

fr.paris.lutece.plugins.jasper.service.export.HtmlJasperRender

Bug Category Details Line Priority
Found reliance on default encoding in fr.paris.lutece.plugins.jasper.service.export.HtmlJasperRender.getData(HttpServletRequest, JasperReport, JasperPrint): String.getBytes() I18N DM_DEFAULT_ENCODING 147 High
Possible null pointer dereference in fr.paris.lutece.plugins.jasper.service.export.HtmlJasperRender.delete(File) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 84 Medium
Exceptional return value of java.io.File.delete() ignored in fr.paris.lutece.plugins.jasper.service.export.HtmlJasperRender.delete(File) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 93 Medium
Exceptional return value of java.io.File.mkdirs() ignored in fr.paris.lutece.plugins.jasper.service.export.HtmlJasperRender.getData(HttpServletRequest, JasperReport, JasperPrint) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 131 Medium

fr.paris.lutece.plugins.jasper.service.purge.ImagePurgeService

Bug Category Details Line Priority
Possible null pointer dereference in fr.paris.lutece.plugins.jasper.service.purge.ImagePurgeService.deleteFolderWithContent(File) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 71 Medium
Exceptional return value of java.io.File.mkdir() ignored in fr.paris.lutece.plugins.jasper.service.purge.ImagePurgeService.purgeFiles() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 62 Medium

fr.paris.lutece.plugins.jasper.web.JasperApp

Bug Category Details Line Priority
Found reliance on default encoding in fr.paris.lutece.plugins.jasper.web.JasperApp.getPage(HttpServletRequest, int, Plugin): new String(byte[]) I18N DM_DEFAULT_ENCODING 97 High
Write to static field fr.paris.lutece.plugins.jasper.web.JasperApp._bRegister from instance method new fr.paris.lutece.plugins.jasper.web.JasperApp() STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 68 Medium

fr.paris.lutece.plugins.jasper.web.JasperJspBean

Bug Category Details Line Priority
Possible null pointer dereference in fr.paris.lutece.plugins.jasper.web.JasperJspBean.deleteFolderWithContent(File) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 381 Medium
Exceptional return value of java.io.File.delete() ignored in fr.paris.lutece.plugins.jasper.web.JasperJspBean.localTemplateFile(JasperReport, FileItem, String, boolean) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 347 Medium
Exceptional return value of java.io.File.mkdir() ignored in fr.paris.lutece.plugins.jasper.web.JasperJspBean.localTemplateFile(JasperReport, FileItem, String, boolean) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 331 Medium

fr.paris.lutece.plugins.jasper.web.JasperLinkServiceJspBean

Bug Category Details Line Priority
Dead store to locale in fr.paris.lutece.plugins.jasper.web.JasperLinkServiceJspBean.doInsertLink(HttpServletRequest) STYLE DLS_DEAD_LOCAL_STORE 117 Medium