The following document contains the results of SpotBugs
SpotBugs Version is 4.7.1
Threshold is medium
Effort is default
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
263 | 150 | 0 | 0 |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode new org.waarp.common.cpu.WaarpConstraintLimitHandler(long, long, boolean, boolean, double, int, double, double, double, AbstractTrafficShapingHandler, long, long) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.cpu.WaarpConstraintLimitHandler.handler | MALICIOUS_CODE | EI_EXPOSE_REP2 | 223 | Medium |
La méthode org.waarp.common.cpu.WaarpConstraintLimitHandler.setHandler(AbstractTrafficShapingHandler) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.cpu.WaarpConstraintLimitHandler.handler | MALICIOUS_CODE | EI_EXPOSE_REP2 | 432 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode statique publique org.waarp.common.crypto.AesManager.getInstance() peut exposer une représentation interne en renvoyant org.waarp.common.crypto.AesManager.manager | MALICIOUS_CODE | MS_EXPOSE_REP | 32 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode statique publique org.waarp.common.crypto.BlowfishManager.getInstance() peut exposer une représentation interne en renvoyant org.waarp.common.crypto.BlowfishManager.manager | MALICIOUS_CODE | MS_EXPOSE_REP | 32 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode statique publique org.waarp.common.crypto.DynamicKeyManager.getInstance() peut exposer une représentation interne en renvoyant org.waarp.common.crypto.DynamicKeyManager.manager | MALICIOUS_CODE | MS_EXPOSE_REP | 55 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode statique publique org.waarp.common.crypto.HmacSha1Manager.getInstance() peut exposer une représentation interne en renvoyant org.waarp.common.crypto.HmacSha1Manager.manager | MALICIOUS_CODE | MS_EXPOSE_REP | 32 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode statique publique org.waarp.common.crypto.HmacSha256Manager.getInstance() peut exposer une représentation interne en renvoyant org.waarp.common.crypto.HmacSha256Manager.manager | MALICIOUS_CODE | MS_EXPOSE_REP | 32 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode org.waarp.common.crypto.ssl.WaarpSecureKeyStore.getKeyStore() risque d'exposer sa représentation interne en renvoyant org.waarp.common.crypto.ssl.WaarpSecureKeyStore.keyStore | MALICIOUS_CODE | EI_EXPOSE_REP | 572 | Medium |
La méthode org.waarp.common.crypto.ssl.WaarpSecureKeyStore.getKeyTrustStore() risque d'exposer sa représentation interne en renvoyant org.waarp.common.crypto.ssl.WaarpSecureKeyStore.keyTrustStore | MALICIOUS_CODE | EI_EXPOSE_REP | 579 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode statique publique org.waarp.common.database.ConnectionFactory.getInstance() peut exposer une représentation interne en renvoyant org.waarp.common.database.ConnectionFactory.instance | MALICIOUS_CODE | MS_EXPOSE_REP | 140 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode org.waarp.common.database.DbAdmin.getSession() risque d'exposer sa représentation interne en renvoyant org.waarp.common.database.DbAdmin.session | MALICIOUS_CODE | EI_EXPOSE_REP | 105 | Medium |
La méthode org.waarp.common.database.DbAdmin.setSession(DbSession) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.database.DbAdmin.session | MALICIOUS_CODE | EI_EXPOSE_REP2 | 112 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.waarp.common.database.DbConstant.admin n'est pas final mais devrait l'être | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | Not available | High |
org.waarp.common.database.DbConstant.noCommitAdmin n'est pas final mais devrait l'être | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | Not available | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode org.waarp.common.database.DbPreparedStatement.getDbSession() risque d'exposer sa représentation interne en renvoyant org.waarp.common.database.DbPreparedStatement.ls | MALICIOUS_CODE | EI_EXPOSE_REP | 434 | Medium |
La méthode org.waarp.common.database.DbPreparedStatement.getPreparedStatement() risque d'exposer sa représentation interne en renvoyant org.waarp.common.database.DbPreparedStatement.preparedStatement | MALICIOUS_CODE | EI_EXPOSE_REP | 427 | Medium |
La méthode org.waarp.common.database.DbPreparedStatement.getResultSet() risque d'exposer sa représentation interne en renvoyant org.waarp.common.database.DbPreparedStatement.rs | MALICIOUS_CODE | EI_EXPOSE_REP | 412 | Medium |
La méthode new org.waarp.common.database.DbPreparedStatement(DbSession) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.database.DbPreparedStatement.ls | MALICIOUS_CODE | EI_EXPOSE_REP2 | 90 | Medium |
La méthode new org.waarp.common.database.DbPreparedStatement(DbSession, String) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.database.DbPreparedStatement.ls | MALICIOUS_CODE | EI_EXPOSE_REP2 | 115 | Medium |
La méthode new org.waarp.common.database.DbPreparedStatement(DbSession, String, int) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.database.DbPreparedStatement.ls | MALICIOUS_CODE | EI_EXPOSE_REP2 | 167 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode org.waarp.common.database.DbRequest.getResultSet() risque d'exposer sa représentation interne en renvoyant org.waarp.common.database.DbRequest.rs | MALICIOUS_CODE | EI_EXPOSE_REP | 301 | Medium |
La méthode new org.waarp.common.database.DbRequest(DbSession) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.database.DbRequest.ls | MALICIOUS_CODE | EI_EXPOSE_REP2 | 71 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Do not catch NullPointerException like in new org.waarp.common.database.DbSession(DbAdmin, boolean) | STYLE | DCN_NULLPOINTER_EXCEPTION | 159 | Medium |
Do not catch NullPointerException like in new org.waarp.common.database.DbSession(DbAdmin, boolean, boolean) | STYLE | DCN_NULLPOINTER_EXCEPTION | 195 | Medium |
La méthode org.waarp.common.database.DbSession.getAdmin() risque d'exposer sa représentation interne en renvoyant org.waarp.common.database.DbSession.admin | MALICIOUS_CODE | EI_EXPOSE_REP | 249 | Medium |
La méthode org.waarp.common.database.DbSession.getConn() risque d'exposer sa représentation interne en renvoyant org.waarp.common.database.DbSession.conn | MALICIOUS_CODE | EI_EXPOSE_REP | 644 | Medium |
La méthode org.waarp.common.database.DbSession.setConn(Connection) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.database.DbSession.conn | MALICIOUS_CODE | EI_EXPOSE_REP2 | 651 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode org.waarp.common.database.data.AbstractDbData.getAllFields() risque d'exposer sa représentation interne en renvoyant org.waarp.common.database.data.AbstractDbData.allFields | MALICIOUS_CODE | EI_EXPOSE_REP | 272 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
delayllimit isn't initialized in org.waarp.common.database.data.DbDataModel.initObject() when invoked from constructor for superclass | CORRECTNESS | UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR | 116 | Medium |
hostid isn't initialized in org.waarp.common.database.data.DbDataModel.initObject() when invoked from constructor for superclass | CORRECTNESS | UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR | 116 | Medium |
readgloballimit isn't initialized in org.waarp.common.database.data.DbDataModel.initObject() when invoked from constructor for superclass | CORRECTNESS | UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR | 116 | Medium |
readsessionlimit isn't initialized in org.waarp.common.database.data.DbDataModel.initObject() when invoked from constructor for superclass | CORRECTNESS | UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR | 116 | Medium |
updatedInfo isn't initialized in org.waarp.common.database.data.DbDataModel.initObject() when invoked from constructor for superclass | CORRECTNESS | UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR | 116 | Medium |
writegloballimit isn't initialized in org.waarp.common.database.data.DbDataModel.initObject() when invoked from constructor for superclass | CORRECTNESS | UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR | 116 | Medium |
writesessionlimit isn't initialized in org.waarp.common.database.data.DbDataModel.initObject() when invoked from constructor for superclass | CORRECTNESS | UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR | 116 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.waarp.common.database.data.DbValue.getBlob(): new String(byte[], int, int) | I18N | DM_DEFAULT_ENCODING | 380 | High |
org.waarp.common.database.data.DbValue.setValueFromString(String) may fail to clean up java.io.InputStream | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 490 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.waarp.common.database.model.DbModelAbstract.dbTypeResolver n'est pas final mais devrait l'être | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 86 | High |
org.waarp.common.database.model.DbModelAbstract.subValidConnectionSelect(DbSession, Statement) may fail to clean up java.sql.Statement | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 271 | Medium |
org.waarp.common.database.model.DbModelAbstract.validConnectionSelect(DbSession) may fail to clean up java.sql.Statement | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 217 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.waarp.common.database.model.DbModelFactory.classLoaded is a mutable collection | MALICIOUS_CODE | MS_MUTABLE_COLLECTION | 38 | High |
org.waarp.common.database.model.DbModelFactory.dbModels is a mutable collection | MALICIOUS_CODE | MS_MUTABLE_COLLECTION | 42 | High |
Test de nullité redondant sur une valeur connue pour être à null dans org.waarp.common.database.model.DbModelFactory.initialize(String, String, String, String, boolean) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE | 81 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Synchronisation incohérente de org.waarp.common.database.model.DbModelH2.pool; verrouillée à 73% | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 132 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Synchronisation incohérente de org.waarp.common.database.model.DbModelMysql.pool; verrouillée à 71% | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 227 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Chemin de fichier codé en dur dans le code de org.waarp.common.file.AbstractDir.<static initializer for AbstractDir>() | STYLE | DMI_HARDCODED_ABSOLUTE_FILENAME | 80 | Medium |
Chemin de fichier codé en dur dans le code de org.waarp.common.file.AbstractDir.getCorrespondingRoot(File) | STYLE | DMI_HARDCODED_ABSOLUTE_FILENAME | 91 | Medium |
La méthode org.waarp.common.file.AbstractDir.getOptsMLSx() risque d'exposer sa représentation interne en renvoyant org.waarp.common.file.AbstractDir.optsMLSx | MALICIOUS_CODE | EI_EXPOSE_REP | 405 | Medium |
La méthode org.waarp.common.file.AbstractDir.getSession() risque d'exposer sa représentation interne en renvoyant org.waarp.common.file.AbstractDir.session | MALICIOUS_CODE | EI_EXPOSE_REP | 152 | Medium |
org.waarp.common.file.AbstractDir.roots devrait être package protected | MALICIOUS_CODE | MS_PKGPROTECT | 78 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode org.waarp.common.file.DataBlock.getBlock() risque d'exposer sa représentation interne en renvoyant org.waarp.common.file.DataBlock.blockBuf | MALICIOUS_CODE | EI_EXPOSE_REP | 98 | Medium |
La méthode org.waarp.common.file.DataBlock.getByteBlock() risque d'exposer sa représentation interne en renvoyant org.waarp.common.file.DataBlock.block | MALICIOUS_CODE | EI_EXPOSE_REP | 105 | Medium |
La méthode org.waarp.common.file.DataBlock.getMarkers() risque d'exposer sa représentation interne en renvoyant org.waarp.common.file.DataBlock.markers | MALICIOUS_CODE | EI_EXPOSE_REP | 312 | Medium |
La méthode org.waarp.common.file.DataBlock.setBlock(byte[], int) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.file.DataBlock.block | MALICIOUS_CODE | EI_EXPOSE_REP2 | 181 | Medium |
La méthode org.waarp.common.file.DataBlock.setMarkers(int[]) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.file.DataBlock.markers | MALICIOUS_CODE | EI_EXPOSE_REP2 | 338 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Exceptional return value of java.io.File.delete() ignored in org.waarp.common.file.FileUtils.copy(File, File, boolean, boolean) | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 311 | Medium |
Exceptional return value of java.io.File.mkdirs() ignored in org.waarp.common.file.FileUtils.copyRecursive(File, File, boolean) | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 181 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode org.waarp.common.file.filesystembased.FilesystemBasedAuthImpl.getSession() risque d'exposer sa représentation interne en renvoyant org.waarp.common.file.filesystembased.FilesystemBasedAuthImpl.session | MALICIOUS_CODE | EI_EXPOSE_REP | 80 | Medium |
Unread public/protected field: org.waarp.common.file.filesystembased.FilesystemBasedAuthImpl.password | STYLE | URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD | 169 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Chemin de fichier codé en dur dans le code de org.waarp.common.file.filesystembased.FilesystemBasedDirImpl.wildcardFiles(String) | STYLE | DMI_HARDCODED_ABSOLUTE_FILENAME | 166 | Medium |
org.waarp.common.file.filesystembased.FilesystemBasedDirImpl.filesystemBasedFtpDirJdk devrait être package protected | MALICIOUS_CODE | MS_PKGPROTECT | Not available | Medium |
Un pointeur à null renvoyé par une méthode risque d'être déréférencé dans org.waarp.common.file.filesystembased.FilesystemBasedDirImpl.list(String) | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 461 | Medium |
Un pointeur à null renvoyé par une méthode risque d'être déréférencé dans org.waarp.common.file.filesystembased.FilesystemBasedDirImpl.listFull(String, boolean) | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 505 | Medium |
Un pointeur à null renvoyé par une méthode risque d'être déréférencé dans org.waarp.common.file.filesystembased.FilesystemBasedDirImpl.wildcardFiles(String) | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 201 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode org.waarp.common.file.filesystembased.FilesystemBasedFileImpl.getDir() risque d'exposer sa représentation interne en renvoyant org.waarp.common.file.filesystembased.FilesystemBasedFileImpl.dir | MALICIOUS_CODE | EI_EXPOSE_REP | 176 | Medium |
La méthode org.waarp.common.file.filesystembased.FilesystemBasedFileImpl.getSession() risque d'exposer sa représentation interne en renvoyant org.waarp.common.file.filesystembased.FilesystemBasedFileImpl.session | MALICIOUS_CODE | EI_EXPOSE_REP | 171 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.waarp.common.file.filesystembased.FilesystemBasedFileParameterImpl.useNio n'est pas final mais devrait l'être | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | Not available | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.waarp.common.file.filesystembased.specific.FilesystemBasedDirJdkAbstract.ueApacheCommonsIo n'est pas final mais devrait l'être | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 35 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Sequence of calls to java.util.concurrent.ConcurrentHashMap may not be atomic in org.waarp.common.filemonitor.FileMonitor.checkOneDir(boolean, File) | MT_CORRECTNESS | AT_OPERATION_SEQUENCE_ON_CONCURRENT_ABSTRACTION | 721 | Medium |
La méthode new org.waarp.common.filemonitor.FileMonitor(String, File, File, File, FilesystemBasedDigest$DigestAlgo, long, FileFilter, boolean, FileMonitorCommandRunnableFuture, FileMonitorCommandRunnableFuture, FileMonitorCommandRunnableFuture) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.filemonitor.FileMonitor.commandCheckIteration | MALICIOUS_CODE | EI_EXPOSE_REP2 | 189 | Medium |
La méthode new org.waarp.common.filemonitor.FileMonitor(String, File, File, File, FilesystemBasedDigest$DigestAlgo, long, FileFilter, boolean, FileMonitorCommandRunnableFuture, FileMonitorCommandRunnableFuture, FileMonitorCommandRunnableFuture) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.filemonitor.FileMonitor.commandRemovedFile | MALICIOUS_CODE | EI_EXPOSE_REP2 | 188 | Medium |
La méthode new org.waarp.common.filemonitor.FileMonitor(String, File, File, File, FilesystemBasedDigest$DigestAlgo, long, FileFilter, boolean, FileMonitorCommandRunnableFuture, FileMonitorCommandRunnableFuture, FileMonitorCommandRunnableFuture) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.filemonitor.FileMonitor.commandValidFile | MALICIOUS_CODE | EI_EXPOSE_REP2 | 187 | Medium |
La méthode org.waarp.common.filemonitor.FileMonitor.setCommandCheckIteration(FileMonitorCommandRunnableFuture) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.filemonitor.FileMonitor.commandCheckIteration | MALICIOUS_CODE | EI_EXPOSE_REP2 | 215 | Medium |
Un pointeur à null renvoyé par une méthode risque d'être déréférencé dans org.waarp.common.filemonitor.FileMonitor.checkOneDir(boolean, File) | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 811 | Medium |
Ecriture d'un champ statique org.waarp.common.filemonitor.FileMonitor.logger depuis la méthode d'une instance new org.waarp.common.filemonitor.FileMonitor(String, File, File, File, FilesystemBasedDigest$DigestAlgo, long, FileFilter, boolean, FileMonitorCommandRunnableFuture, FileMonitorCommandRunnableFuture, FileMonitorCommandRunnableFuture) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 169 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode clone() org.waarp.common.filemonitor.FileMonitor$FileItem.clone() n'appelle pas super.clone() | BAD_PRACTICE | CN_IDIOM_NO_SUPER_CALL | 1076-1084 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unread public/protected field: org.waarp.common.filemonitor.FileMonitor$FileMonitorInformation.directories | STYLE | URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD | 1001 | Medium |
Unread public/protected field: org.waarp.common.filemonitor.FileMonitor$FileMonitorInformation.elapseTime | STYLE | URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD | 1004 | Medium |
Unread public/protected field: org.waarp.common.filemonitor.FileMonitor$FileMonitorInformation.fileItems | STYLE | URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD | 999 | Medium |
Unread public/protected field: org.waarp.common.filemonitor.FileMonitor$FileMonitorInformation.globalerror | STYLE | URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD | 1007 | Medium |
Unread public/protected field: org.waarp.common.filemonitor.FileMonitor$FileMonitorInformation.globalok | STYLE | URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD | 1006 | Medium |
Unread public/protected field: org.waarp.common.filemonitor.FileMonitor$FileMonitorInformation.name | STYLE | URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD | 998 | Medium |
Unread public/protected field: org.waarp.common.filemonitor.FileMonitor$FileMonitorInformation.removedFileItems | STYLE | URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD | 1000 | Medium |
Unread public/protected field: org.waarp.common.filemonitor.FileMonitor$FileMonitorInformation.scanSubDir | STYLE | URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD | 1005 | Medium |
Unread public/protected field: org.waarp.common.filemonitor.FileMonitor$FileMonitorInformation.statusFile | STYLE | URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD | 1003 | Medium |
Unread public/protected field: org.waarp.common.filemonitor.FileMonitor$FileMonitorInformation.stopFile | STYLE | URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD | 1002 | Medium |
Unread public/protected field: org.waarp.common.filemonitor.FileMonitor$FileMonitorInformation.todayerror | STYLE | URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD | 1009 | Medium |
Unread public/protected field: org.waarp.common.filemonitor.FileMonitor$FileMonitorInformation.todayok | STYLE | URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD | 1008 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode org.waarp.common.filemonitor.FileMonitorCommandRunnableFuture.getMonitor() risque d'exposer sa représentation interne en renvoyant org.waarp.common.filemonitor.FileMonitorCommandRunnableFuture.monitor | MALICIOUS_CODE | EI_EXPOSE_REP | 169 | Medium |
La méthode org.waarp.common.filemonitor.FileMonitorCommandRunnableFuture.setMonitor(FileMonitor) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.filemonitor.FileMonitorCommandRunnableFuture.monitor | MALICIOUS_CODE | EI_EXPOSE_REP2 | 44 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode org.waarp.common.future.WaarpFailedFuture.getCause() risque d'exposer sa représentation interne en renvoyant org.waarp.common.future.WaarpFailedFuture.cause | MALICIOUS_CODE | EI_EXPOSE_REP | 43 | Medium |
La méthode new org.waarp.common.future.WaarpFailedFuture(Throwable) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.future.WaarpFailedFuture.cause | MALICIOUS_CODE | EI_EXPOSE_REP2 | 38 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode org.waarp.common.future.WaarpFuture.getCause() risque d'exposer sa représentation interne en renvoyant org.waarp.common.future.WaarpFuture.cause | MALICIOUS_CODE | EI_EXPOSE_REP | 106 | Medium |
La méthode org.waarp.common.future.WaarpFuture.setFailure(Throwable) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.future.WaarpFuture.cause | MALICIOUS_CODE | EI_EXPOSE_REP2 | 296 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Interception douteuse d'une IllegalMonitorStateException dans org.waarp.common.future.WaarpLock.unlock() | BAD_PRACTICE | IMSE_DONT_CATCH_IMSE | 72 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Comparaison inutile de la valeur entière new org.waarp.common.guid.GUID(int, int) | STYLE | INT_VACUOUS_COMPARISON | 197 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Changes to logger could be lost in org.waarp.common.logging.WaarpJdkLoggerFactory.seLevelSpecific(WaarpLogLevel) | EXPERIMENTAL | LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE | 63 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.waarp.common.logging.WaarpLoggerFactory.currentLevel devrait être package protected | MALICIOUS_CODE | MS_PKGPROTECT | Not available | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode new org.waarp.common.logging.WaarpSlf4JLogger(Logger) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.logging.WaarpSlf4JLogger.logger | MALICIOUS_CODE | EI_EXPOSE_REP2 | 41 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode org.waarp.common.role.RoleDefault$ROLE.getComposingRoles() risque d'exposer sa représentation interne en renvoyant org.waarp.common.role.RoleDefault$ROLE.CONFIGADMIN_A | MALICIOUS_CODE | EI_EXPOSE_REP | 135 | Medium |
La méthode org.waarp.common.role.RoleDefault$ROLE.getComposingRoles() risque d'exposer sa représentation interne en renvoyant org.waarp.common.role.RoleDefault$ROLE.FULLADMIN_A | MALICIOUS_CODE | EI_EXPOSE_REP | 143 | Medium |
La méthode org.waarp.common.role.RoleDefault$ROLE.getComposingRoles() risque d'exposer sa représentation interne en renvoyant org.waarp.common.role.RoleDefault$ROLE.HOST_A | MALICIOUS_CODE | EI_EXPOSE_REP | 133 | Medium |
La méthode org.waarp.common.role.RoleDefault$ROLE.getComposingRoles() risque d'exposer sa représentation interne en renvoyant org.waarp.common.role.RoleDefault$ROLE.LIMIT_A | MALICIOUS_CODE | EI_EXPOSE_REP | 137 | Medium |
La méthode org.waarp.common.role.RoleDefault$ROLE.getComposingRoles() risque d'exposer sa représentation interne en renvoyant org.waarp.common.role.RoleDefault$ROLE.LOGCONTROL_A | MALICIOUS_CODE | EI_EXPOSE_REP | 141 | Medium |
La méthode org.waarp.common.role.RoleDefault$ROLE.getComposingRoles() risque d'exposer sa représentation interne en renvoyant org.waarp.common.role.RoleDefault$ROLE.NOACCESS_A | MALICIOUS_CODE | EI_EXPOSE_REP | 148 | Medium |
La méthode org.waarp.common.role.RoleDefault$ROLE.getComposingRoles() risque d'exposer sa représentation interne en renvoyant org.waarp.common.role.RoleDefault$ROLE.PARTNER_A | MALICIOUS_CODE | EI_EXPOSE_REP | 129 | Medium |
La méthode org.waarp.common.role.RoleDefault$ROLE.getComposingRoles() risque d'exposer sa représentation interne en renvoyant org.waarp.common.role.RoleDefault$ROLE.READONLY_A | MALICIOUS_CODE | EI_EXPOSE_REP | 125 | Medium |
La méthode org.waarp.common.role.RoleDefault$ROLE.getComposingRoles() risque d'exposer sa représentation interne en renvoyant org.waarp.common.role.RoleDefault$ROLE.RULE_A | MALICIOUS_CODE | EI_EXPOSE_REP | 131 | Medium |
La méthode org.waarp.common.role.RoleDefault$ROLE.getComposingRoles() risque d'exposer sa représentation interne en renvoyant org.waarp.common.role.RoleDefault$ROLE.SYSTEM_A | MALICIOUS_CODE | EI_EXPOSE_REP | 139 | Medium |
La méthode org.waarp.common.role.RoleDefault$ROLE.getComposingRoles() risque d'exposer sa représentation interne en renvoyant org.waarp.common.role.RoleDefault$ROLE.TRANSFER_A | MALICIOUS_CODE | EI_EXPOSE_REP | 127 | Medium |
La méthode org.waarp.common.role.RoleDefault$ROLE.getComposingRoles() risque d'exposer sa représentation interne en renvoyant org.waarp.common.role.RoleDefault$ROLE.UNUSED_A | MALICIOUS_CODE | EI_EXPOSE_REP | 145 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.waarp.common.service.ServiceLauncher._main(String[]): new java.util.Scanner(InputStream) | I18N | DM_DEFAULT_ENCODING | 111 | High |
Initialisation paresseuse incorrecte du champ statique org.waarp.common.service.ServiceLauncher.engine dans new org.waarp.common.service.ServiceLauncher() | MT_CORRECTNESS | LI_LAZY_INIT_STATIC | 73-74 | Medium |
Initialisation paresseuse incorrecte du champ statique org.waarp.common.service.ServiceLauncher.logger dans new org.waarp.common.service.ServiceLauncher() | MT_CORRECTNESS | LI_LAZY_INIT_STATIC | 65-66 | Medium |
Initialisation paresseuse incorrecte du champ statique org.waarp.common.service.ServiceLauncher.logger dans org.waarp.common.service.ServiceLauncher.initStatic() | MT_CORRECTNESS | LI_LAZY_INIT_STATIC | 81-82 | Medium |
Initialisation paresseuse incorrecte du champ statique org.waarp.common.service.ServiceLauncher.engine dans org.waarp.common.service.ServiceLauncher.terminate() | MT_CORRECTNESS | LI_LAZY_INIT_STATIC | 271-274 | Medium |
org.waarp.common.service.ServiceLauncher.controller devrait être package protected | MALICIOUS_CODE | MS_PKGPROTECT | Not available | Medium |
org.waarp.common.service.ServiceLauncher.engine devrait être package protected | MALICIOUS_CODE | MS_PKGPROTECT | Not available | Medium |
org.waarp.common.service.ServiceLauncher.engineLauncherInstance devrait être package protected | MALICIOUS_CODE | MS_PKGPROTECT | Not available | Medium |
org.waarp.common.service.ServiceLauncher.logger devrait être package protected | MALICIOUS_CODE | MS_PKGPROTECT | Not available | Medium |
org.waarp.common.service.ServiceLauncher.stopCalledCorrectly devrait être package protected | MALICIOUS_CODE | MS_PKGPROTECT | Not available | Medium |
Ecriture d'un champ statique org.waarp.common.service.ServiceLauncher.controller depuis la méthode d'une instance org.waarp.common.service.ServiceLauncher.init(DaemonContext) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 232 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode new org.waarp.common.state.MachineState(Enum, ConcurrentMap) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.state.MachineState.statemap | MALICIOUS_CODE | EI_EXPOSE_REP2 | 59 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode org.waarp.common.state.Transition.getSet() risque d'exposer sa représentation interne en renvoyant org.waarp.common.state.Transition.set | MALICIOUS_CODE | EI_EXPOSE_REP | 58 | Medium |
La méthode org.waarp.common.state.Transition.setSet(EnumSet) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.state.Transition.set | MALICIOUS_CODE | EI_EXPOSE_REP2 | 65 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Un pointeur à null renvoyé par une méthode risque d'être déréférencé dans org.waarp.common.tar.TarUtility.recurseFiles(File, File, TarArchiveOutputStream, boolean) | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 102 | Medium |
Exceptional return value of java.io.File.mkdirs() ignored in org.waarp.common.tar.TarUtility.unTar(File, File) | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 218 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Un pointeur à null renvoyé par une méthode risque d'être déréférencé dans org.waarp.common.tar.ZipUtility.recurseFiles(File, File, ZipArchiveOutputStream, boolean) | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 102 | Medium |
Exceptional return value of java.io.File.mkdirs() ignored in org.waarp.common.tar.ZipUtility.unZip(File, File) | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 216 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.waarp.common.utility.Base64.decode(String, int): String.getBytes() | I18N | DM_DEFAULT_ENCODING | 1415 | High |
Found reliance on default encoding in org.waarp.common.utility.Base64.encodeBytes(byte[], int, int, int): new String(byte[]) | I18N | DM_DEFAULT_ENCODING | 1023 | High |
Found reliance on default encoding in org.waarp.common.utility.Base64.encodeObject(Serializable, int): new String(byte[]) | I18N | DM_DEFAULT_ENCODING | 866 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode new org.waarp.common.utility.FileConvert(List, boolean, boolean, File) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.utility.FileConvert.files | MALICIOUS_CODE | EI_EXPOSE_REP2 | 64 | Medium |
The return value of java.io.FileInputStream.read() in method org.waarp.common.utility.FileConvert.convert(File, boolean) is converted to byte before comparison to -1. | CORRECTNESS | EOS_BAD_END_OF_STREAM_CHECK | 188 | Medium |
org.waarp.common.utility.FileConvert.main(String[]) appelle explicitement run() sur un thread (Vouliez-vous plutôt dire start() ?) | MT_CORRECTNESS | RU_INVOKE_RUN | 118 | High |
Ecriture d'un champ statique org.waarp.common.utility.FileConvert.logger depuis la méthode d'une instance new org.waarp.common.utility.FileConvert(List, boolean, boolean, File) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 62 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.waarp.common.utility.ParametersChecker.RULES is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 42 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode statique publique org.waarp.common.utility.SingletonUtils.singletonOutputStream() peut exposer une représentation interne en renvoyant org.waarp.common.utility.SingletonUtils.SINGLETON_OUTPUTSTREAM | MALICIOUS_CODE | MS_EXPOSE_REP | 176 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Initialisation paresseuse incorrecte du champ statique org.waarp.common.utility.WaarpShutdownHook.shutdownHook dans org.waarp.common.utility.WaarpShutdownHook.terminate(boolean) | MT_CORRECTNESS | LI_LAZY_INIT_STATIC | 144-147 | Medium |
org.waarp.common.utility.WaarpShutdownHook.shutdownHook devrait être package protected | MALICIOUS_CODE | MS_PKGPROTECT | Not available | Medium |
Ecriture d'un champ statique org.waarp.common.utility.WaarpShutdownHook.shutdownHook depuis la méthode d'une instance new org.waarp.common.utility.WaarpShutdownHook(WaarpShutdownHook$ShutdownConfiguration) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 84 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode org.waarp.common.xml.XmlDecl.getSubXml() risque d'exposer sa représentation interne en renvoyant org.waarp.common.xml.XmlDecl.subXml | MALICIOUS_CODE | EI_EXPOSE_REP | 119 | Medium |
La méthode new org.waarp.common.xml.XmlDecl(String, XmlType, String, XmlDecl[], boolean) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.xml.XmlDecl.subXml | MALICIOUS_CODE | EI_EXPOSE_REP2 | 75 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.waarp.common.xml.XmlUtil.saveDocument(File, Document): new java.io.FileWriter(File) | I18N | DM_DEFAULT_ENCODING | 189 | High |
Found reliance on default encoding in org.waarp.common.xml.XmlUtil.saveElement(File, Element): new java.io.FileWriter(File) | I18N | DM_DEFAULT_ENCODING | 239 | High |
Found reliance on default encoding in org.waarp.common.xml.XmlUtil.writeXML(String, String, Document): new java.io.FileWriter(String) | I18N | DM_DEFAULT_ENCODING | 837 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
La méthode org.waarp.common.xml.XmlValue.getList() risque d'exposer sa représentation interne en renvoyant org.waarp.common.xml.XmlValue.values | MALICIOUS_CODE | EI_EXPOSE_REP | 200 | Medium |
La méthode org.waarp.common.xml.XmlValue.getSubXml() risque d'exposer sa représentation interne en renvoyant org.waarp.common.xml.XmlValue.subXml | MALICIOUS_CODE | EI_EXPOSE_REP | 184 | Medium |
La méthode org.waarp.common.xml.XmlValue.setValue(Object) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.common.xml.XmlValue.subXml | MALICIOUS_CODE | EI_EXPOSE_REP2 | 622 | Medium |