CAS Curation Interface

FindBugs Bug Detector Report

Summary

Files

The following document contains the results of FindBugs Report

FindBugs Version is 1.3.9

Threshold is

Effort is min

Summary

ClassesBugsErrorsMissing Classes
323400

org.apache.oodt.cas.curation.policymgr.CurationPolicyManager

BugCategoryDetailsLinePriority
Method org.apache.oodt.cas.curation.policymgr.CurationPolicyManager.typesToList(Map) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR91Medium

org.apache.oodt.cas.curation.service.CurationService

BugCategoryDetailsLinePriority
org.apache.oodt.cas.curation.service.CurationService.config should be package protectedMALICIOUS_CODEMS_PKGPROTECT70Medium
Class org.apache.oodt.cas.curation.service.CurationService defines non-transient non-serializable instance field ssoBAD_PRACTICESE_BAD_FIELDNot availableMedium
Write to static field org.apache.oodt.cas.curation.service.CurationService.config from instance method org.apache.oodt.cas.curation.service.CurationService.init(ServletConfig)STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD89Medium

org.apache.oodt.cas.curation.service.IngestionResource

BugCategoryDetailsLinePriority
Class org.apache.oodt.cas.curation.service.IngestionResource defines non-transient non-serializable instance field taskListBAD_PRACTICESE_BAD_FIELDNot availableMedium
Class org.apache.oodt.cas.curation.service.IngestionResource defines non-transient non-serializable instance field uriInfoBAD_PRACTICESE_BAD_FIELDNot availableMedium

org.apache.oodt.cas.curation.service.IngestionResource$IngestionTaskList

BugCategoryDetailsLinePriority
Should org.apache.oodt.cas.curation.service.IngestionResource$IngestionTaskList be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATIC310-348Medium

org.apache.oodt.cas.curation.service.MetadataResource

BugCategoryDetailsLinePriority
Dead store to metadata in org.apache.oodt.cas.curation.service.MetadataResource.updateMetadata(MultivaluedMap, String, String, boolean, boolean)STYLEDLS_DEAD_LOCAL_STORE517Medium
org.apache.oodt.cas.curation.service.MetadataResource.updateCatalogMetadata(Product, Metadata) may fail to close streamBAD_PRACTICEOS_OPEN_STREAM589Medium
org.apache.oodt.cas.curation.service.MetadataResource.getStagingMetadata(String, String, Boolean) ignores exceptional return value of java.io.File.mkdirs()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE213Medium
Class org.apache.oodt.cas.curation.service.MetadataResource defines non-transient non-serializable instance field catalogBAD_PRACTICESE_BAD_FIELDNot availableMedium
Method org.apache.oodt.cas.curation.service.MetadataResource.getMetadataFromMap(MultivaluedMap) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR383Medium

org.apache.oodt.cas.curation.servlet.DirectoryListingServlet

BugCategoryDetailsLinePriority
Unwritten field: org.apache.oodt.cas.curation.servlet.DirectoryListingServlet.basePathCORRECTNESSUWF_UNWRITTEN_FIELD81Medium

org.apache.oodt.cas.curation.servlet.MetViewerServlet

BugCategoryDetailsLinePriority
Unwritten field: org.apache.oodt.cas.curation.servlet.MetViewerServlet.basePathCORRECTNESSUWF_UNWRITTEN_FIELD79Medium

org.apache.oodt.cas.curation.servlet.SSOConfiguredCuratorWebService

BugCategoryDetailsLinePriority
Class org.apache.oodt.cas.curation.servlet.SSOConfiguredCuratorWebService defines non-transient non-serializable instance field ssoBAD_PRACTICESE_BAD_FIELDNot availableMedium

org.apache.oodt.cas.curation.servlet.UpdateDatasetMetaDataServlet

BugCategoryDetailsLinePriority
Dead store to action in org.apache.oodt.cas.curation.servlet.UpdateDatasetMetaDataServlet.doPost(HttpServletRequest, HttpServletResponse)STYLEDLS_DEAD_LOCAL_STORE95Medium
Dead store to session in org.apache.oodt.cas.curation.servlet.UpdateDatasetMetaDataServlet.doPost(HttpServletRequest, HttpServletResponse)STYLEDLS_DEAD_LOCAL_STORE92Medium
HTTP parameter directly written to HTTP header output in org.apache.oodt.cas.curation.servlet.UpdateDatasetMetaDataServlet.doPost(HttpServletRequest, HttpServletResponse)SECURITYHRS_REQUEST_PARAMETER_TO_HTTP_HEADER96Medium
Class org.apache.oodt.cas.curation.servlet.UpdateDatasetMetaDataServlet defines non-transient non-serializable instance field fmBAD_PRACTICESE_BAD_FIELDNot availableMedium

org.apache.oodt.cas.curation.servlet.UploadDatasetDefinitionServlet

BugCategoryDetailsLinePriority
Class org.apache.oodt.cas.curation.servlet.UploadDatasetDefinitionServlet defines non-transient non-serializable instance field fmBAD_PRACTICESE_BAD_FIELDNot availableMedium

org.apache.oodt.cas.curation.structs.IngestionTask

BugCategoryDetailsLinePriority
org.apache.oodt.cas.curation.structs.IngestionTask.getCreateDate() may expose internal representation by returning IngestionTask.createDateMALICIOUS_CODEEI_EXPOSE_REP82Medium
org.apache.oodt.cas.curation.structs.IngestionTask.setCreateDate(Date) may expose internal representation by storing an externally mutable object into IngestionTask.createDateMALICIOUS_CODEEI_EXPOSE_REP290Medium

org.apache.oodt.cas.curation.util.CurationXmlStructFactory

BugCategoryDetailsLinePriority
Load of known null value in org.apache.oodt.cas.curation.util.CurationXmlStructFactory.augmentElement(List, Element, Document)STYLENP_LOAD_OF_KNOWN_NULL_VALUE88Medium

org.apache.oodt.cas.curation.util.DateUtils

BugCategoryDetailsLinePriority
org.apache.oodt.cas.curation.util.DateUtils.ISO8601FORMAT isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL40High
org.apache.oodt.cas.curation.util.DateUtils.RFC822DATEFORMAT isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL43High

org.apache.oodt.cas.curation.util.ExtractorConfigReader

BugCategoryDetailsLinePriority
org.apache.oodt.cas.curation.util.ExtractorConfigReader.readFromDirectory(File, String) may fail to close streamBAD_PRACTICEOS_OPEN_STREAM37Medium

org.apache.oodt.cas.curation.util.ExtractorConfigWriter

BugCategoryDetailsLinePriority
org.apache.oodt.cas.curation.util.ExtractorConfigWriter.saveToDirectory(ExtractorConfig, File) may fail to close streamBAD_PRACTICEOS_OPEN_STREAM46Medium
org.apache.oodt.cas.curation.util.ExtractorConfigWriter.saveToDirectory(ExtractorConfig, File) ignores exceptional return value of java.io.File.mkdirs()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE37Medium