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
70 33 0 0

Files

Class Bugs
fr.paris.lutece.plugins.blog.business.Blog 5
fr.paris.lutece.plugins.blog.business.BlogFilter 4
fr.paris.lutece.plugins.blog.business.BlogSearchFilter 6
fr.paris.lutece.plugins.blog.business.DocContent 3
fr.paris.lutece.plugins.blog.business.portlet.BlogPublication 4
fr.paris.lutece.plugins.blog.business.portlet.PortletFilter 4
fr.paris.lutece.plugins.blog.service.docsearch.BlogSearchService 2
fr.paris.lutece.plugins.blog.service.docsearch.DefaultBlogIndexer 1
fr.paris.lutece.plugins.blog.service.search.BlogSearchIndexer 1
fr.paris.lutece.plugins.blog.web.BlogJspBean 1
fr.paris.lutece.plugins.blog.web.BlogPublicationJspBean 1
fr.paris.lutece.plugins.blog.web.portlet.BlogListPortletJspBean 1

fr.paris.lutece.plugins.blog.business.Blog

Bug Category Details Line Priority
fr.paris.lutece.plugins.blog.business.Blog.getCreationDate() may expose internal representation by returning Blog._dateCreationDate MALICIOUS_CODE EI_EXPOSE_REP 191 Medium
fr.paris.lutece.plugins.blog.business.Blog.getUpdateDate() may expose internal representation by returning Blog._dateUpdateDate MALICIOUS_CODE EI_EXPOSE_REP 212 Medium
fr.paris.lutece.plugins.blog.business.Blog.setCreationDate(Timestamp) may expose internal representation by storing an externally mutable object into Blog._dateCreationDate MALICIOUS_CODE EI_EXPOSE_REP2 202 Medium
fr.paris.lutece.plugins.blog.business.Blog.setUpdateDate(Timestamp) may expose internal representation by storing an externally mutable object into Blog._dateUpdateDate MALICIOUS_CODE EI_EXPOSE_REP2 223 Medium
Class fr.paris.lutece.plugins.blog.business.Blog defines non-transient non-serializable instance field _blogPublication BAD_PRACTICE SE_BAD_FIELD Not available High

fr.paris.lutece.plugins.blog.business.BlogFilter

Bug Category Details Line Priority
fr.paris.lutece.plugins.blog.business.BlogFilter.getIds() may expose internal representation by returning BlogFilter._arrayId MALICIOUS_CODE EI_EXPOSE_REP 96 Medium
fr.paris.lutece.plugins.blog.business.BlogFilter.getTagsId() may expose internal representation by returning BlogFilter._arrayTagsId MALICIOUS_CODE EI_EXPOSE_REP 59 Medium
fr.paris.lutece.plugins.blog.business.BlogFilter.setIds(Integer[]) may expose internal representation by storing an externally mutable object into BlogFilter._arrayId MALICIOUS_CODE EI_EXPOSE_REP2 105 Medium
fr.paris.lutece.plugins.blog.business.BlogFilter.setTagsId(Integer[]) may expose internal representation by storing an externally mutable object into BlogFilter._arrayTagsId MALICIOUS_CODE EI_EXPOSE_REP2 68 Medium

fr.paris.lutece.plugins.blog.business.BlogSearchFilter

Bug Category Details Line Priority
fr.paris.lutece.plugins.blog.business.BlogSearchFilter.getTag() may expose internal representation by returning BlogSearchFilter._strTag MALICIOUS_CODE EI_EXPOSE_REP 101 Medium
fr.paris.lutece.plugins.blog.business.BlogSearchFilter.getUpdateDateAfter() may expose internal representation by returning BlogSearchFilter._dateUpdateDateAfter MALICIOUS_CODE EI_EXPOSE_REP 182 Medium
fr.paris.lutece.plugins.blog.business.BlogSearchFilter.getUpdateDateBefor() may expose internal representation by returning BlogSearchFilter._dateUpdateDateBefor MALICIOUS_CODE EI_EXPOSE_REP 203 Medium
fr.paris.lutece.plugins.blog.business.BlogSearchFilter.setTag(String[]) may expose internal representation by storing an externally mutable object into BlogSearchFilter._strTag MALICIOUS_CODE EI_EXPOSE_REP2 112 Medium
fr.paris.lutece.plugins.blog.business.BlogSearchFilter.setUpdateDateAfter(Date) may expose internal representation by storing an externally mutable object into BlogSearchFilter._dateUpdateDateAfter MALICIOUS_CODE EI_EXPOSE_REP2 193 Medium
fr.paris.lutece.plugins.blog.business.BlogSearchFilter.setUpdateDateBefor(Date) may expose internal representation by storing an externally mutable object into BlogSearchFilter._dateUpdateDateBefor MALICIOUS_CODE EI_EXPOSE_REP2 214 Medium

fr.paris.lutece.plugins.blog.business.DocContent

Bug Category Details Line Priority
fr.paris.lutece.plugins.blog.business.DocContent.getBinaryValue() may expose internal representation by returning DocContent._bytes MALICIOUS_CODE EI_EXPOSE_REP 118 Medium
fr.paris.lutece.plugins.blog.business.DocContent.setBinaryValue(byte[]) may expose internal representation by storing an externally mutable object into DocContent._bytes MALICIOUS_CODE EI_EXPOSE_REP2 108 Medium
Class fr.paris.lutece.plugins.blog.business.DocContent defines non-transient non-serializable instance field _contentType BAD_PRACTICE SE_BAD_FIELD Not available High

fr.paris.lutece.plugins.blog.business.portlet.BlogPublication

Bug Category Details Line Priority
fr.paris.lutece.plugins.blog.business.portlet.BlogPublication.getDateBeginPublishing() may expose internal representation by returning BlogPublication._dateBeginPublishing MALICIOUS_CODE EI_EXPOSE_REP 98 Medium
fr.paris.lutece.plugins.blog.business.portlet.BlogPublication.getDateEndPublishing() may expose internal representation by returning BlogPublication._dateEndPublishing MALICIOUS_CODE EI_EXPOSE_REP 115 Medium
fr.paris.lutece.plugins.blog.business.portlet.BlogPublication.setDateBeginPublishing(Date) may expose internal representation by storing an externally mutable object into BlogPublication._dateBeginPublishing MALICIOUS_CODE EI_EXPOSE_REP2 107 Medium
fr.paris.lutece.plugins.blog.business.portlet.BlogPublication.setDateEndPublishing(Date) may expose internal representation by storing an externally mutable object into BlogPublication._dateEndPublishing MALICIOUS_CODE EI_EXPOSE_REP2 124 Medium

fr.paris.lutece.plugins.blog.business.portlet.PortletFilter

Bug Category Details Line Priority
fr.paris.lutece.plugins.blog.business.portlet.PortletFilter.getPageName() may expose internal representation by returning PortletFilter._aPageName MALICIOUS_CODE EI_EXPOSE_REP 80 Medium
fr.paris.lutece.plugins.blog.business.portlet.PortletFilter.getPortletName() may expose internal representation by returning PortletFilter._aPortletName MALICIOUS_CODE EI_EXPOSE_REP 101 Medium
fr.paris.lutece.plugins.blog.business.portlet.PortletFilter.setPageName(String[]) may expose internal representation by storing an externally mutable object into PortletFilter._aPageName MALICIOUS_CODE EI_EXPOSE_REP2 70 Medium
fr.paris.lutece.plugins.blog.business.portlet.PortletFilter.setPortletName(String[]) may expose internal representation by storing an externally mutable object into PortletFilter._aPortletName MALICIOUS_CODE EI_EXPOSE_REP2 91 Medium

fr.paris.lutece.plugins.blog.service.docsearch.BlogSearchService

Bug Category Details Line Priority
Incorrect lazy initialization of static field fr.paris.lutece.plugins.blog.service.docsearch.BlogSearchService._singleton in fr.paris.lutece.plugins.blog.service.docsearch.BlogSearchService.getInstance() MT_CORRECTNESS LI_LAZY_INIT_STATIC 144-146 Medium
Exception is caught when Exception is not thrown in fr.paris.lutece.plugins.blog.service.docsearch.BlogSearchService.getSearchResultsByFilter(BlogSearchFilter, List) STYLE REC_CATCH_EXCEPTION 312 Medium

fr.paris.lutece.plugins.blog.service.docsearch.DefaultBlogIndexer

Bug Category Details Line Priority
Found reliance on default encoding in fr.paris.lutece.plugins.blog.service.docsearch.DefaultBlogIndexer.getDocument(Blog): String.getBytes() I18N DM_DEFAULT_ENCODING 240 High

fr.paris.lutece.plugins.blog.service.search.BlogSearchIndexer

Bug Category Details Line Priority
Redundant nullcheck of doc, which is known to be non-null in fr.paris.lutece.plugins.blog.service.search.BlogSearchIndexer.getDocuments(String) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 151 Medium

fr.paris.lutece.plugins.blog.web.BlogJspBean

Bug Category Details Line Priority
Class fr.paris.lutece.plugins.blog.web.BlogJspBean defines non-transient non-serializable instance field _blogServiceSession BAD_PRACTICE SE_BAD_FIELD Not available Medium

fr.paris.lutece.plugins.blog.web.BlogPublicationJspBean

Bug Category Details Line Priority
Class fr.paris.lutece.plugins.blog.web.BlogPublicationJspBean defines non-transient non-serializable instance field _blogPublication BAD_PRACTICE SE_BAD_FIELD Not available Medium

fr.paris.lutece.plugins.blog.web.portlet.BlogListPortletJspBean

Bug Category Details Line Priority
Class fr.paris.lutece.plugins.blog.web.portlet.BlogListPortletJspBean defines non-transient non-serializable instance field _portlet BAD_PRACTICE SE_BAD_FIELD Not available Medium