SpotBugs Bug Detector Report
The following document contains the results of SpotBugs
SpotBugs Version is 4.5.3
Threshold is medium
Effort is default
Summary
| Classes |
Bugs |
Errors |
Missing Classes |
| 28 |
21 |
0 |
0 |
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.getFileFormats() may expose internal representation by returning JasperReport._listFileFormats |
MALICIOUS_CODE |
EI_EXPOSE_REP |
189 |
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.business.portlet.JasperPortletHome
| Bug |
Category |
Details |
Line |
Priority |
| fr.paris.lutece.plugins.jasper.business.portlet.JasperPortletHome.getDAO() may expose internal representation by returning JasperPortletHome._dao |
MALICIOUS_CODE |
EI_EXPOSE_REP |
98 |
Medium |
| Public static fr.paris.lutece.plugins.jasper.business.portlet.JasperPortletHome.getInstance() may expose internal representation by returning JasperPortletHome._singleton |
MALICIOUS_CODE |
MS_EXPOSE_REP |
88 |
Medium |
fr.paris.lutece.plugins.jasper.service.CompiledJasperTemplateCacheService
| Bug |
Category |
Details |
Line |
Priority |
| Public static fr.paris.lutece.plugins.jasper.service.CompiledJasperTemplateCacheService.getInstance() may expose internal representation by returning CompiledJasperTemplateCacheService._compiledJasperTemplateCacheService |
MALICIOUS_CODE |
MS_EXPOSE_REP |
86 |
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.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 |