Fork me on GitHub

Rapport FindBugs de détection des bugs

Le document suivant contient les résultats du FindBugs

La version de FindBugs est 3.0.1

La limite est

L'effort est max

Résumé

Classes Bugs Erreurs Classes Manquantes
164 61 0 0

Fichiers

Classe Bugs
fr.paris.lutece.plugins.document.business.Document 8
fr.paris.lutece.plugins.document.business.DocumentFilter 4
fr.paris.lutece.plugins.document.business.DocumentResource 2
fr.paris.lutece.plugins.document.business.DocumentType 4
fr.paris.lutece.plugins.document.business.IndexerActionDAO 1
fr.paris.lutece.plugins.document.business.attributes.DocumentAttribute 2
fr.paris.lutece.plugins.document.business.autopublication.DocumentAutoPublication 1
fr.paris.lutece.plugins.document.business.category.Category 2
fr.paris.lutece.plugins.document.business.history.HistoryEvent 2
fr.paris.lutece.plugins.document.business.portlet.DocumentListPortlet 2
fr.paris.lutece.plugins.document.business.portlet.DocumentPortlet 2
fr.paris.lutece.plugins.document.business.portlet.PortletFilter 4
fr.paris.lutece.plugins.document.business.publication.DocumentPublication 2
fr.paris.lutece.plugins.document.business.rules.RuleTypesSet 1
fr.paris.lutece.plugins.document.modules.rulemovespace.business.MoveSpaceRule 3
fr.paris.lutece.plugins.document.modules.rulenotifyusers.business.NotifyUsersRule 4
fr.paris.lutece.plugins.document.service.DocumentContentService 1
fr.paris.lutece.plugins.document.service.DocumentEventListernersManager 1
fr.paris.lutece.plugins.document.service.DocumentService 1
fr.paris.lutece.plugins.document.service.category.CategoryService$CategoryDisplay 1
fr.paris.lutece.plugins.document.service.docsearch.DefaultDocSearchIndexer 1
fr.paris.lutece.plugins.document.service.docsearch.DocSearchService 4
fr.paris.lutece.plugins.document.service.search.DocumentIndexer 1
fr.paris.lutece.plugins.document.web.DocumentJspBean 1
fr.paris.lutece.plugins.document.web.DocumentTypeJspBean 2
fr.paris.lutece.plugins.document.web.ResourceValueObject 2
fr.paris.lutece.plugins.document.web.publishing.DocumentPublishingJspBean 1
fr.paris.lutece.plugins.document.web.rules.DocumentRulesJspBean 1

fr.paris.lutece.plugins.document.business.Document

Bug Catégorie Détails Ligne Priorité
fr.paris.lutece.plugins.document.business.Document.getDateCreation() may expose internal representation by returning Document._dateCreation MALICIOUS_CODE EI_EXPOSE_REP 220 Medium
fr.paris.lutece.plugins.document.business.Document.getDateModification() may expose internal representation by returning Document._dateModification MALICIOUS_CODE EI_EXPOSE_REP 260 Medium
fr.paris.lutece.plugins.document.business.Document.getDateValidityBegin() may expose internal representation by returning Document._dateValidityBegin MALICIOUS_CODE EI_EXPOSE_REP 280 Medium
fr.paris.lutece.plugins.document.business.Document.getDateValidityEnd() may expose internal representation by returning Document._dateValidityEnd MALICIOUS_CODE EI_EXPOSE_REP 301 Medium
fr.paris.lutece.plugins.document.business.Document.setDateCreation(Timestamp) may expose internal representation by storing an externally mutable object into Document._dateCreation MALICIOUS_CODE EI_EXPOSE_REP2 230 Medium
fr.paris.lutece.plugins.document.business.Document.setDateModification(Timestamp) may expose internal representation by storing an externally mutable object into Document._dateModification MALICIOUS_CODE EI_EXPOSE_REP2 270 Medium
fr.paris.lutece.plugins.document.business.Document.setDateValidityBegin(Timestamp) may expose internal representation by storing an externally mutable object into Document._dateValidityBegin MALICIOUS_CODE EI_EXPOSE_REP2 291 Medium
fr.paris.lutece.plugins.document.business.Document.setDateValidityEnd(Timestamp) may expose internal representation by storing an externally mutable object into Document._dateValidityEnd MALICIOUS_CODE EI_EXPOSE_REP2 312 Medium

fr.paris.lutece.plugins.document.business.DocumentFilter

Bug Catégorie Détails Ligne Priorité
fr.paris.lutece.plugins.document.business.DocumentFilter.getCategoriesId() may expose internal representation by returning DocumentFilter._arrayCategoriesId MALICIOUS_CODE EI_EXPOSE_REP 153 Medium
fr.paris.lutece.plugins.document.business.DocumentFilter.getIds() may expose internal representation by returning DocumentFilter._arrayId MALICIOUS_CODE EI_EXPOSE_REP 188 Medium
fr.paris.lutece.plugins.document.business.DocumentFilter.setCategoriesId(int[]) may expose internal representation by storing an externally mutable object into DocumentFilter._arrayCategoriesId MALICIOUS_CODE EI_EXPOSE_REP2 161 Medium
fr.paris.lutece.plugins.document.business.DocumentFilter.setIds(int[]) may expose internal representation by storing an externally mutable object into DocumentFilter._arrayId MALICIOUS_CODE EI_EXPOSE_REP2 196 Medium

fr.paris.lutece.plugins.document.business.DocumentResource

Bug Catégorie Détails Ligne Priorité
fr.paris.lutece.plugins.document.business.DocumentResource.getContent() may expose internal representation by returning DocumentResource._strContent MALICIOUS_CODE EI_EXPOSE_REP 54 Medium
fr.paris.lutece.plugins.document.business.DocumentResource.setContent(byte[]) may expose internal representation by storing an externally mutable object into DocumentResource._strContent MALICIOUS_CODE EI_EXPOSE_REP2 64 Medium

fr.paris.lutece.plugins.document.business.DocumentType

Bug Catégorie Détails Ligne Priorité
fr.paris.lutece.plugins.document.business.DocumentType.getAdminXsl() may expose internal representation by returning DocumentType._baAdminXsl MALICIOUS_CODE EI_EXPOSE_REP 177 Medium
fr.paris.lutece.plugins.document.business.DocumentType.getContentServiceXsl() may expose internal representation by returning DocumentType._baContentServiceXsl MALICIOUS_CODE EI_EXPOSE_REP 197 Medium
fr.paris.lutece.plugins.document.business.DocumentType.setAdminXsl(byte[]) may expose internal representation by storing an externally mutable object into DocumentType._baAdminXsl MALICIOUS_CODE EI_EXPOSE_REP2 187 Medium
fr.paris.lutece.plugins.document.business.DocumentType.setContentServiceXsl(byte[]) may expose internal representation by storing an externally mutable object into DocumentType._baContentServiceXsl MALICIOUS_CODE EI_EXPOSE_REP2 207 Medium

fr.paris.lutece.plugins.document.business.IndexerActionDAO

Bug Catégorie Détails Ligne Priorité
Dead store to nIndex in fr.paris.lutece.plugins.document.business.IndexerActionDAO.selectList(IndexerActionFilter) STYLE DLS_DEAD_LOCAL_STORE 185 Medium

fr.paris.lutece.plugins.document.business.attributes.DocumentAttribute

Bug Catégorie Détails Ligne Priorité
fr.paris.lutece.plugins.document.business.attributes.DocumentAttribute.getBinaryValue() may expose internal representation by returning DocumentAttribute._bytes MALICIOUS_CODE EI_EXPOSE_REP 309 Medium
fr.paris.lutece.plugins.document.business.attributes.DocumentAttribute.setBinaryValue(byte[]) may expose internal representation by storing an externally mutable object into DocumentAttribute._bytes MALICIOUS_CODE EI_EXPOSE_REP2 300 Medium

fr.paris.lutece.plugins.document.business.autopublication.DocumentAutoPublication

Bug Catégorie Détails Ligne Priorité
Incorrect lazy initialization and update of static field fr.paris.lutece.plugins.document.business.autopublication.DocumentAutoPublication._listenerDocumentSpace in fr.paris.lutece.plugins.document.business.autopublication.DocumentAutoPublication.init() MT_CORRECTNESS LI_LAZY_INIT_UPDATE_STATIC 55-57 Medium

fr.paris.lutece.plugins.document.business.category.Category

Bug Catégorie Détails Ligne Priorité
fr.paris.lutece.plugins.document.business.category.Category.getIconContent() may expose internal representation by returning Category._byteIconContent MALICIOUS_CODE EI_EXPOSE_REP 58 Medium
fr.paris.lutece.plugins.document.business.category.Category.setIconContent(byte[]) may expose internal representation by storing an externally mutable object into Category._byteIconContent MALICIOUS_CODE EI_EXPOSE_REP2 66 Medium

fr.paris.lutece.plugins.document.business.history.HistoryEvent

Bug Catégorie Détails Ligne Priorité
fr.paris.lutece.plugins.document.business.history.HistoryEvent.getDate() may expose internal representation by returning HistoryEvent._eventDate MALICIOUS_CODE EI_EXPOSE_REP 107 Medium
fr.paris.lutece.plugins.document.business.history.HistoryEvent.setDate(Timestamp) may expose internal representation by storing an externally mutable object into HistoryEvent._eventDate MALICIOUS_CODE EI_EXPOSE_REP2 117 Medium

fr.paris.lutece.plugins.document.business.portlet.DocumentListPortlet

Bug Catégorie Détails Ligne Priorité
fr.paris.lutece.plugins.document.business.portlet.DocumentListPortlet.getIdCategory() may expose internal representation by returning DocumentListPortlet._nArrayIdCategory MALICIOUS_CODE EI_EXPOSE_REP 169 Medium
fr.paris.lutece.plugins.document.business.portlet.DocumentListPortlet.setIdCategory(int[]) may expose internal representation by storing an externally mutable object into DocumentListPortlet._nArrayIdCategory MALICIOUS_CODE EI_EXPOSE_REP2 177 Medium

fr.paris.lutece.plugins.document.business.portlet.DocumentPortlet

Bug Catégorie Détails Ligne Priorité
fr.paris.lutece.plugins.document.business.portlet.DocumentPortlet.getIdCategory() may expose internal representation by returning DocumentPortlet._nArrayIdCategory MALICIOUS_CODE EI_EXPOSE_REP 170 Medium
fr.paris.lutece.plugins.document.business.portlet.DocumentPortlet.setIdCategory(int[]) may expose internal representation by storing an externally mutable object into DocumentPortlet._nArrayIdCategory MALICIOUS_CODE EI_EXPOSE_REP2 178 Medium

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

Bug Catégorie Détails Ligne Priorité
fr.paris.lutece.plugins.document.business.portlet.PortletFilter.getPageName() may expose internal representation by returning PortletFilter._tabPageName MALICIOUS_CODE EI_EXPOSE_REP 78 Medium
fr.paris.lutece.plugins.document.business.portlet.PortletFilter.getPortletName() may expose internal representation by returning PortletFilter._tabPortletName MALICIOUS_CODE EI_EXPOSE_REP 96 Medium
fr.paris.lutece.plugins.document.business.portlet.PortletFilter.setPageName(String[]) may expose internal representation by storing an externally mutable object into PortletFilter._tabPageName MALICIOUS_CODE EI_EXPOSE_REP2 69 Medium
fr.paris.lutece.plugins.document.business.portlet.PortletFilter.setPortletName(String[]) may expose internal representation by storing an externally mutable object into PortletFilter._tabPortletName MALICIOUS_CODE EI_EXPOSE_REP2 87 Medium

fr.paris.lutece.plugins.document.business.publication.DocumentPublication

Bug Catégorie Détails Ligne Priorité
fr.paris.lutece.plugins.document.business.publication.DocumentPublication.getDatePublishing() may expose internal representation by returning DocumentPublication._datePublishing MALICIOUS_CODE EI_EXPOSE_REP 126 Medium
fr.paris.lutece.plugins.document.business.publication.DocumentPublication.setDatePublishing(Date) may expose internal representation by storing an externally mutable object into DocumentPublication._datePublishing MALICIOUS_CODE EI_EXPOSE_REP2 134 Medium

fr.paris.lutece.plugins.document.business.rules.RuleTypesSet

Bug Catégorie Détails Ligne Priorité
fr.paris.lutece.plugins.document.business.rules.RuleTypesSet.getRuleTypeKey(Rule) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 99 Medium

fr.paris.lutece.plugins.document.modules.rulemovespace.business.MoveSpaceRule

Bug Catégorie Détails Ligne Priorité
fr.paris.lutece.plugins.document.modules.rulemovespace.business.MoveSpaceRule.getAttributesList() may expose internal representation by returning MoveSpaceRule._attributes MALICIOUS_CODE EI_EXPOSE_REP 258 Medium
fr.paris.lutece.plugins.document.modules.rulemovespace.business.MoveSpaceRule defines equals and uses Object.hashCode() BAD_PRACTICE HE_EQUALS_USE_HASHCODE 317-345 High
Incorrect lazy initialization and update of static field fr.paris.lutece.plugins.document.modules.rulemovespace.business.MoveSpaceRule._listenerSpaces in fr.paris.lutece.plugins.document.modules.rulemovespace.business.MoveSpaceRule.init() MT_CORRECTNESS LI_LAZY_INIT_UPDATE_STATIC 90-92 Medium

fr.paris.lutece.plugins.document.modules.rulenotifyusers.business.NotifyUsersRule

Bug Catégorie Détails Ligne Priorité
fr.paris.lutece.plugins.document.modules.rulenotifyusers.business.NotifyUsersRule.getAttributesList() may expose internal representation by returning NotifyUsersRule._attributes MALICIOUS_CODE EI_EXPOSE_REP 311 Medium
fr.paris.lutece.plugins.document.modules.rulenotifyusers.business.NotifyUsersRule defines equals and uses Object.hashCode() BAD_PRACTICE HE_EQUALS_USE_HASHCODE 441-472 High
Incorrect lazy initialization and update of static field fr.paris.lutece.plugins.document.modules.rulenotifyusers.business.NotifyUsersRule._listenerMailingList in fr.paris.lutece.plugins.document.modules.rulenotifyusers.business.NotifyUsersRule.init() MT_CORRECTNESS LI_LAZY_INIT_UPDATE_STATIC 130-132 Medium
Incorrect lazy initialization and update of static field fr.paris.lutece.plugins.document.modules.rulenotifyusers.business.NotifyUsersRule._listenerSpace in fr.paris.lutece.plugins.document.modules.rulenotifyusers.business.NotifyUsersRule.init() MT_CORRECTNESS LI_LAZY_INIT_UPDATE_STATIC 136-138 Medium

fr.paris.lutece.plugins.document.service.DocumentContentService

Bug Catégorie Détails Ligne Priorité
Useless object stored in variable mapXslParams of method fr.paris.lutece.plugins.document.service.DocumentContentService.buildPage(HttpServletRequest, String, String, String, int) STYLE UC_USELESS_OBJECT 270 Medium

fr.paris.lutece.plugins.document.service.DocumentEventListernersManager

Bug Catégorie Détails Ligne Priorité
Write to static field fr.paris.lutece.plugins.document.service.DocumentEventListernersManager._listEventListeners from instance method fr.paris.lutece.plugins.document.service.DocumentEventListernersManager.setListeners(List) STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 58 High

fr.paris.lutece.plugins.document.service.DocumentService

Bug Catégorie Détails Ligne Priorité
Boxing/unboxing to parse a primitive fr.paris.lutece.plugins.document.service.DocumentService.setAttribute(DocumentAttribute, Document, MultipartHttpServletRequest, Locale) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 798 High

fr.paris.lutece.plugins.document.service.category.CategoryService$CategoryDisplay

Bug Catégorie Détails Ligne Priorité
Should fr.paris.lutece.plugins.document.service.category.CategoryService$CategoryDisplay be a _static_ inner class? PERFORMANCE SIC_INNER_SHOULD_BE_STATIC 226-303 Medium

fr.paris.lutece.plugins.document.service.docsearch.DefaultDocSearchIndexer

Bug Catégorie Détails Ligne Priorité
Found reliance on default encoding in fr.paris.lutece.plugins.document.service.docsearch.DefaultDocSearchIndexer.getDocument(Document): String.getBytes() I18N DM_DEFAULT_ENCODING 139 High

fr.paris.lutece.plugins.document.service.docsearch.DocSearchService

Bug Catégorie Détails Ligne Priorité
Exception is caught when Exception is not thrown in fr.paris.lutece.plugins.document.service.docsearch.DocSearchService.getSearchResults(String, int, AdminUser) STYLE REC_CATCH_EXCEPTION 413 Medium
Exception is caught when Exception is not thrown in fr.paris.lutece.plugins.document.service.docsearch.DocSearchService.getSearchResults(String, boolean, boolean, String, DocumentType) STYLE REC_CATCH_EXCEPTION 547 Medium
Write to static field fr.paris.lutece.plugins.document.service.docsearch.DocSearchService._searcher from instance method fr.paris.lutece.plugins.document.service.docsearch.DocSearchService.getSearchResults(String, int, AdminUser) STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 375 High
Write to static field fr.paris.lutece.plugins.document.service.docsearch.DocSearchService._searcher from instance method fr.paris.lutece.plugins.document.service.docsearch.DocSearchService.getSearchResults(String, boolean, boolean, String, DocumentType) STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 437 High

fr.paris.lutece.plugins.document.service.search.DocumentIndexer

Bug Catégorie Détails Ligne Priorité
Found reliance on default encoding in fr.paris.lutece.plugins.document.service.search.DocumentIndexer.getDocument(Document, String, String, String): String.getBytes() I18N DM_DEFAULT_ENCODING 276 High

fr.paris.lutece.plugins.document.web.DocumentJspBean

Bug Catégorie Détails Ligne Priorité
Boxing/unboxing to parse a primitive fr.paris.lutece.plugins.document.web.DocumentJspBean.getMassArchivalDocument(HttpServletRequest) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 1622 High

fr.paris.lutece.plugins.document.web.DocumentTypeJspBean

Bug Catégorie Détails Ligne Priorité
Redundant nullcheck of strCode, which is known to be non-null in fr.paris.lutece.plugins.document.web.DocumentTypeJspBean.validateCodeAttribute(HttpServletRequest) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 527 Medium
Class fr.paris.lutece.plugins.document.web.DocumentTypeJspBean defines non-transient non-serializable instance field _attribute BAD_PRACTICE SE_BAD_FIELD Non disponible Medium

fr.paris.lutece.plugins.document.web.ResourceValueObject

Bug Catégorie Détails Ligne Priorité
fr.paris.lutece.plugins.document.web.ResourceValueObject.getContent() may expose internal representation by returning ResourceValueObject._content MALICIOUS_CODE EI_EXPOSE_REP 104 Medium
fr.paris.lutece.plugins.document.web.ResourceValueObject.setContent(byte[]) may expose internal representation by storing an externally mutable object into ResourceValueObject._content MALICIOUS_CODE EI_EXPOSE_REP2 113 Medium

fr.paris.lutece.plugins.document.web.publishing.DocumentPublishingJspBean

Bug Catégorie Détails Ligne Priorité
Switch statement found in fr.paris.lutece.plugins.document.web.publishing.DocumentPublishingJspBean.doChangeModePublication(HttpServletRequest) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 665-668 Medium

fr.paris.lutece.plugins.document.web.rules.DocumentRulesJspBean

Bug Catégorie Détails Ligne Priorité
Class fr.paris.lutece.plugins.document.web.rules.DocumentRulesJspBean defines non-transient non-serializable instance field _rule BAD_PRACTICE SE_BAD_FIELD Non disponible Medium