@@ -591,6 +591,7 @@ arising out of or in connection with the use of this tool, the analysis performe
#else
$enc.html($id.value)
#end
+ #set($cpeSort=0)
#if ($cpeIdConf == "")
#set($cpeIdConf=$id.confidence)
#set($cpeSort=$id.confidence.ordinal())
@@ -602,11 +603,15 @@ arising out of or in connection with the use of this tool, the analysis performe
#end
#end
+ #if ($mavenlink=="")
+
+ #else
| #if( $mavenlink.url )
- ##yes, we are HTML Encoding the href. this is okay. We can't URL encode as we have to trust the analyzer here...
+ ##yes, we are HTML Encoding the href. This is okay. We can't URL encode as we have to trust the analyzer here...
$enc.html($mavenlink.value)
#elseif ($mavenlink.value)
$enc.html($mavenlink.value)
+ #end
#end |
#set($cveImpact=-1)
#foreach($vuln in $dependency.getVulnerabilities())
diff --git a/dependency-check-core/src/test/java/org/owasp/dependencycheck/analyzer/OpenSSLAnalyzerTest.java b/dependency-check-core/src/test/java/org/owasp/dependencycheck/analyzer/OpenSSLAnalyzerTest.java
index c5fcc289e..f0ee9f7ac 100644
--- a/dependency-check-core/src/test/java/org/owasp/dependencycheck/analyzer/OpenSSLAnalyzerTest.java
+++ b/dependency-check-core/src/test/java/org/owasp/dependencycheck/analyzer/OpenSSLAnalyzerTest.java
@@ -39,10 +39,10 @@ public class OpenSSLAnalyzerTest extends BaseTest {
/**
* The package analyzer to test.
*/
- OpenSSLAnalyzer analyzer;
+ private OpenSSLAnalyzer analyzer;
/**
- * Setup the PtyhonPackageAnalyzer.
+ * Setup the {@link OpenSSLAnalyzer}.
*
* @throws Exception if there is a problem
*/
diff --git a/dependency-check-core/src/test/java/org/owasp/dependencycheck/analyzer/PythonDistributionAnalyzerTest.java b/dependency-check-core/src/test/java/org/owasp/dependencycheck/analyzer/PythonDistributionAnalyzerTest.java
index ded6cb20b..954d02274 100644
--- a/dependency-check-core/src/test/java/org/owasp/dependencycheck/analyzer/PythonDistributionAnalyzerTest.java
+++ b/dependency-check-core/src/test/java/org/owasp/dependencycheck/analyzer/PythonDistributionAnalyzerTest.java
@@ -40,7 +40,7 @@ public class PythonDistributionAnalyzerTest extends BaseTest {
/**
* The analyzer to test.
*/
- PythonDistributionAnalyzer analyzer;
+ private PythonDistributionAnalyzer analyzer;
/**
* Correctly setup the analyzer for testing.
diff --git a/dependency-check-core/src/test/java/org/owasp/dependencycheck/analyzer/PythonPackageAnalyzerTest.java b/dependency-check-core/src/test/java/org/owasp/dependencycheck/analyzer/PythonPackageAnalyzerTest.java
index b132c2ec8..82bb3af09 100644
--- a/dependency-check-core/src/test/java/org/owasp/dependencycheck/analyzer/PythonPackageAnalyzerTest.java
+++ b/dependency-check-core/src/test/java/org/owasp/dependencycheck/analyzer/PythonPackageAnalyzerTest.java
@@ -40,10 +40,10 @@ public class PythonPackageAnalyzerTest extends BaseTest {
/**
* The package analyzer to test.
*/
- PythonPackageAnalyzer analyzer;
+ private PythonPackageAnalyzer analyzer;
/**
- * Setup the PtyhonPackageAnalyzer.
+ * Setup the {@link PythonPackageAnalyzer}.
*
* @throws Exception if there is a problem
*/
@@ -85,14 +85,9 @@ public class PythonPackageAnalyzerTest extends BaseTest {
@Test
public void testAnalyzeSourceMetadata() throws AnalysisException {
- eggtestAssertions(this,
- "python/eggtest/__init__.py");
- }
-
- public void eggtestAssertions(Object context, final String resource) throws AnalysisException {
boolean found = false;
final Dependency result = new Dependency(BaseTest.getResourceAsFile(
- context, resource));
+ this, "python/eggtest/__init__.py"));
analyzer.analyze(result, null);
assertTrue("Expected vendor evidence to contain \"example\".", result
.getVendorEvidence().toString().contains("example"));
@@ -104,4 +99,5 @@ public class PythonPackageAnalyzerTest extends BaseTest {
}
assertTrue("Version 0.0.1 not found in EggTest dependency.", found);
}
+
}
diff --git a/dependency-check-gradle/pom.xml b/dependency-check-gradle/pom.xml
index e6c206b24..8bfaa9197 100644
--- a/dependency-check-gradle/pom.xml
+++ b/dependency-check-gradle/pom.xml
@@ -22,11 +22,11 @@ Copyright (c) 2015 Wei Ma. All Rights Reserved.
org.owasp
dependency-check-parent
- 1.3.0
+ 1.3.1-SNAPSHOT
dependency-check-gradle
-
0.0.5
+
0.0.6
pom
diff --git a/dependency-check-jenkins/pom.xml b/dependency-check-jenkins/pom.xml
index a3b420bbe..7816728b6 100644
--- a/dependency-check-jenkins/pom.xml
+++ b/dependency-check-jenkins/pom.xml
@@ -3,7 +3,7 @@
org.owasp
dependency-check-parent
- 1.3.0
+ 1.3.1-SNAPSHOT
dependency-check-jenkins
Dependency-Check Jenkins Plugin
diff --git a/dependency-check-maven/pom.xml b/dependency-check-maven/pom.xml
index add74999c..c9de29a1f 100644
--- a/dependency-check-maven/pom.xml
+++ b/dependency-check-maven/pom.xml
@@ -22,7 +22,7 @@ Copyright (c) 2013 Jeremy Long. All Rights Reserved.
org.owasp
dependency-check-parent
- 1.3.0
+ 1.3.1-SNAPSHOT
dependency-check-maven
diff --git a/dependency-check-maven/src/site/markdown/configuration.md b/dependency-check-maven/src/site/markdown/configuration.md
index 7f767f0c3..afe2e9e99 100644
--- a/dependency-check-maven/src/site/markdown/configuration.md
+++ b/dependency-check-maven/src/site/markdown/configuration.md
@@ -18,7 +18,7 @@ autoUpdate | Sets whether auto-updating of the NVD CVE/CPE data is ena
outputDirectory | The location to write the report(s). Note, this is not used if generating the report as part of a `mvn site` build | 'target'
failBuildOnCVSS | Specifies if the build should be failed if a CVSS score above a specified level is identified. The default is 11 which means since the CVSS scores are 0-10, by default the build will never fail. | 11
format | The report format to be generated (HTML, XML, VULN, ALL). This configuration option has no affect if using this within the Site plugin unless the externalReport is set to true. | HTML
-suppressionFile | The file path to the XML suppression file \- used to suppress [false positives](../suppression.html) |
+suppressionFile | The file path to the XML suppression file \- used to suppress [false positives](../general/suppression.html) |
skipTestScope | Should be skip analysis for artifacts with Test Scope | true
skipProvidedScope | Should be skip analysis for artifacts with Provided Scope | false
skipRuntimeScope | Should be skip analysis for artifacts with Runtime Scope | false
diff --git a/dependency-check-utils/pom.xml b/dependency-check-utils/pom.xml
index cf5d49168..21ce57bdd 100644
--- a/dependency-check-utils/pom.xml
+++ b/dependency-check-utils/pom.xml
@@ -21,7 +21,7 @@ Copyright (c) 2014 - Jeremy Long. All Rights Reserved.
org.owasp
dependency-check-parent
- 1.3.0
+ 1.3.1-SNAPSHOT
dependency-check-utils
diff --git a/dependency-check-utils/src/main/java/org/owasp/dependencycheck/utils/Settings.java b/dependency-check-utils/src/main/java/org/owasp/dependencycheck/utils/Settings.java
index e8da13f70..7cb006aeb 100644
--- a/dependency-check-utils/src/main/java/org/owasp/dependencycheck/utils/Settings.java
+++ b/dependency-check-utils/src/main/java/org/owasp/dependencycheck/utils/Settings.java
@@ -31,6 +31,7 @@ import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.Enumeration;
import java.util.Properties;
+import java.util.logging.Level;
/**
* A simple settings container that wraps the dependencycheck.properties file.
@@ -364,6 +365,14 @@ public final class Settings {
public static void cleanup(boolean deleteTemporary) {
if (deleteTemporary && tempDirectory != null && tempDirectory.exists()) {
FileUtils.delete(tempDirectory);
+ if (tempDirectory.exists()) {
+ try {
+ Thread.sleep(2000);
+ } catch (InterruptedException ex) {
+ //ignore
+ }
+ FileUtils.delete(tempDirectory);
+ }
}
try {
localSettings.remove();
diff --git a/pom.xml b/pom.xml
index b433f9a36..2c712d053 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@ Copyright (c) 2012 - Jeremy Long
org.owasp
dependency-check-parent
-
1.3.0
+
1.3.1-SNAPSHOT
pom