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 |
91 |
45 |
0 |
0 |
fr.paris.lutece.plugins.genericattributes.business.Entry
Bug |
Category |
Details |
Line |
Priority |
fr.paris.lutece.plugins.genericattributes.business.Entry.getChildren() may expose internal representation by returning Entry._listEntryChildren |
MALICIOUS_CODE |
EI_EXPOSE_REP |
83 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Entry.getEntryType() may expose internal representation by returning Entry._entryType |
MALICIOUS_CODE |
EI_EXPOSE_REP |
103 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Entry.getError() may expose internal representation by returning Entry._error |
MALICIOUS_CODE |
EI_EXPOSE_REP |
418 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Entry.getFieldDepend() may expose internal representation by returning Entry._fieldDepend |
MALICIOUS_CODE |
EI_EXPOSE_REP |
354 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Entry.getFields() may expose internal representation by returning Entry._listFields |
MALICIOUS_CODE |
EI_EXPOSE_REP |
113 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Entry.getParent() may expose internal representation by returning Entry._entryParent |
MALICIOUS_CODE |
EI_EXPOSE_REP |
141 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Entry.setChildren(List) may expose internal representation by storing an externally mutable object into Entry._listEntryChildren |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
192 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Entry.setEntryType(EntryType) may expose internal representation by storing an externally mutable object into Entry._entryType |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
214 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Entry.setError(GenericAttributeError) may expose internal representation by storing an externally mutable object into Entry._error |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
429 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Entry.setFieldDepend(Field) may expose internal representation by storing an externally mutable object into Entry._fieldDepend |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
365 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Entry.setFields(List) may expose internal representation by storing an externally mutable object into Entry._listFields |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
236 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Entry.setParent(Entry) may expose internal representation by storing an externally mutable object into Entry._entryParent |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
280 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Field
Bug |
Category |
Details |
Line |
Priority |
fr.paris.lutece.plugins.genericattributes.business.Field.getConditionalQuestions() may expose internal representation by returning Field._listConditionalQuestions |
MALICIOUS_CODE |
EI_EXPOSE_REP |
213 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Field.getFileImage() may expose internal representation by returning Field._fileImage |
MALICIOUS_CODE |
EI_EXPOSE_REP |
327 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Field.getLinkedItem() may expose internal representation by returning Field._linkedItem |
MALICIOUS_CODE |
EI_EXPOSE_REP |
309 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Field.getParentEntry() may expose internal representation by returning Field._parentEntry |
MALICIOUS_CODE |
EI_EXPOSE_REP |
112 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Field.getRegularExpressionList() may expose internal representation by returning Field._listRegularExpressionList |
MALICIOUS_CODE |
EI_EXPOSE_REP |
132 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Field.getValueTypeDate() may expose internal representation by returning Field._tValueTypeDate |
MALICIOUS_CODE |
EI_EXPOSE_REP |
253 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Field.setConditionalQuestions(List) may expose internal representation by storing an externally mutable object into Field._listConditionalQuestions |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
224 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Field.setFileImage(File) may expose internal representation by storing an externally mutable object into Field._fileImage |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
336 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Field.setLinkedItem(ReferenceItem) may expose internal representation by storing an externally mutable object into Field._linkedItem |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
318 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Field.setParentEntry(Entry) may expose internal representation by storing an externally mutable object into Field._parentEntry |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
123 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Field.setRegularExpressionList(List) may expose internal representation by storing an externally mutable object into Field._listRegularExpressionList |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
143 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Field.setValueTypeDate(Date) may expose internal representation by storing an externally mutable object into Field._tValueTypeDate |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
264 |
Medium |
Class fr.paris.lutece.plugins.genericattributes.business.Field defines non-transient non-serializable instance field _linkedItem |
BAD_PRACTICE |
SE_BAD_FIELD |
Not available |
High |
Class fr.paris.lutece.plugins.genericattributes.business.Field defines non-transient non-serializable instance field _listRegularExpressionList |
BAD_PRACTICE |
SE_BAD_FIELD |
Not available |
High |
fr.paris.lutece.plugins.genericattributes.business.GenAttFileItem
Bug |
Category |
Details |
Line |
Priority |
Found reliance on default encoding in fr.paris.lutece.plugins.genericattributes.business.GenAttFileItem.getString(): new String(byte[]) |
I18N |
DM_DEFAULT_ENCODING |
200 |
High |
fr.paris.lutece.plugins.genericattributes.business.GenAttFileItem.get() may expose internal representation by returning GenAttFileItem._bValue |
MALICIOUS_CODE |
EI_EXPOSE_REP |
129 |
Medium |
new fr.paris.lutece.plugins.genericattributes.business.GenAttFileItem(byte[], String) may expose internal representation by storing an externally mutable object into GenAttFileItem._bValue |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
70 |
Medium |
new fr.paris.lutece.plugins.genericattributes.business.GenAttFileItem(byte[], String, int, String) may expose internal representation by storing an externally mutable object into GenAttFileItem._bValue |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
86 |
Medium |
new fr.paris.lutece.plugins.genericattributes.business.GenAttFileItem(byte[], String, String, int, String) may expose internal representation by storing an externally mutable object into GenAttFileItem._bValue |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
106 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Response
Bug |
Category |
Details |
Line |
Priority |
fr.paris.lutece.plugins.genericattributes.business.Response.getEntry() may expose internal representation by returning Response._entry |
MALICIOUS_CODE |
EI_EXPOSE_REP |
134 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Response.getField() may expose internal representation by returning Response._field |
MALICIOUS_CODE |
EI_EXPOSE_REP |
196 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Response.getFile() may expose internal representation by returning Response._file |
MALICIOUS_CODE |
EI_EXPOSE_REP |
285 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Response.setEntry(Entry) may expose internal representation by storing an externally mutable object into Response._entry |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
145 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Response.setField(Field) may expose internal representation by storing an externally mutable object into Response._field |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
207 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.Response.setFile(File) may expose internal representation by storing an externally mutable object into Response._file |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
296 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.ResponseFilter
Bug |
Category |
Details |
Line |
Priority |
fr.paris.lutece.plugins.genericattributes.business.ResponseFilter.getListId() may expose internal representation by returning ResponseFilter._listId |
MALICIOUS_CODE |
EI_EXPOSE_REP |
271 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.ResponseFilter.getListIdEntry() may expose internal representation by returning ResponseFilter._listIdEntry |
MALICIOUS_CODE |
EI_EXPOSE_REP |
351 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.ResponseFilter.setListId(List) may expose internal representation by storing an externally mutable object into ResponseFilter._listId |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
280 |
Medium |
fr.paris.lutece.plugins.genericattributes.business.ResponseFilter.setListIdEntry(List) may expose internal representation by storing an externally mutable object into ResponseFilter._listIdEntry |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
360 |
Medium |
fr.paris.lutece.plugins.genericattributes.service.entrytype.AbstractEntryTypeArray
Bug |
Category |
Details |
Line |
Priority |
Boxing/unboxing to parse a primitive fr.paris.lutece.plugins.genericattributes.service.entrytype.AbstractEntryTypeArray.isValid(String) |
PERFORMANCE |
DM_BOXED_PRIMITIVE_FOR_PARSING |
255 |
High |
fr.paris.lutece.plugins.genericattributes.service.entrytype.AbstractEntryTypeCamera
Bug |
Category |
Details |
Line |
Priority |
Redundant nullcheck of fileName, which is known to be non-null in fr.paris.lutece.plugins.genericattributes.service.entrytype.AbstractEntryTypeCamera.getResponseFromImage(HttpServletRequest, String, Entry, boolean) |
STYLE |
RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE |
277 |
Medium |
fr.paris.lutece.plugins.genericattributes.service.entrytype.AbstractEntryTypeDate
Bug |
Category |
Details |
Line |
Priority |
Boxing/unboxing to parse a primitive fr.paris.lutece.plugins.genericattributes.service.entrytype.AbstractEntryTypeDate.getResponseValueForRecap(Entry, HttpServletRequest, Response, Locale) |
PERFORMANCE |
DM_BOXED_PRIMITIVE_FOR_PARSING |
217 |
High |
fr.paris.lutece.plugins.genericattributes.service.file.GenericAttributeFileService
Bug |
Category |
Details |
Line |
Priority |
Public static fr.paris.lutece.plugins.genericattributes.service.file.GenericAttributeFileService.getInstance() may expose internal representation by returning GenericAttributeFileService._instance |
MALICIOUS_CODE |
MS_EXPOSE_REP |
126 |
Medium |