Skip to content

Commit ab53cf8

Browse files
committed
Tweak pom.xml so Contrast config also works with Contrast CE and
eliminate a few misc TODOs.
1 parent 8c8edfe commit ab53cf8

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,11 @@
296296
-Xmx4G
297297
-javaagent:${basedir}/tools/Contrast/contrast.jar
298298
-Dcontrast.dir=${basedir}/tools/Contrast/working
299-
-Dcontrast.log.daily=true
300-
-Dcontrast.level=debug
301-
-Dcontrast.assess.threshold.entries=100000
302-
-Dcontrast.agent.java.standalone_app_name=OWASPBenchmark
299+
-Dcontrast.application.name=OWASPBenchmark
303300
-Dcontrast.assess.rules.disabled_rules="autocomplete-missing,cache-controls-missing,clickjacking-control-missing,csrf"
301+
-Dcontrast.assess.threshold.entries=100000
302+
-Dcontrast.level=debug
303+
-Dcontrast.log.daily=true
304304
</cargo.jvmargs>
305305
<cargo.servlet.port>8443</cargo.servlet.port>
306306
<cargo.protocol>https</cargo.protocol>

src/main/java/org/owasp/benchmark/helpers/LDAPManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public LDAPManager() {
6666
try {
6767
initDirectoryService(workDir);
6868
} catch (Exception e1) {
69-
// TODO Auto-generated catch block
69+
// Auto-generated catch block
7070
e1.printStackTrace();
7171
}
7272
*/
@@ -226,7 +226,7 @@ public static void main(String[] args){
226226
ads.closeDirContext();
227227
ads.stopServer();
228228
} catch (Exception e) {
229-
// TODO Auto-generated catch block
229+
// Auto-generated catch block
230230
e.printStackTrace();
231231
}
232232
}*/

src/main/java/org/owasp/benchmark/tools/NoisyCricket.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
import javax.xml.transform.dom.DOMSource;
4343
import javax.xml.transform.stream.StreamResult;
4444

45+
import org.owasp.benchmark.helpers.Utils;
4546
import org.w3c.dom.Document;
4647
import org.w3c.dom.Element;
4748

@@ -65,7 +66,7 @@ public static void main(String[] args) {
6566
Element version = report.createElement("meta");
6667
version.setAttribute("tool", "NoisyCricket");
6768
version.setAttribute("version", "8.1");
68-
version.setAttribute("url", "http://owasp.org/benchmark");
69+
version.setAttribute("url", "https://owasp.org/benchmark");
6970
docroot.appendChild( version );
7071

7172
vulns = report.createElement("vulnerabilities");
@@ -82,10 +83,10 @@ public FileVisitResult visitFile(Path path, BasicFileAttributes attrs) throws IO
8283
return FileVisitResult.CONTINUE;
8384
}
8485
};
85-
// TODO - Change user.home to be the home directory of the Benchmark project.
86-
Path p = FileSystems.getDefault().getPath( System.getProperty("user.home") );
86+
87+
Path p = FileSystems.getDefault().getPath( Utils.USERDIR );
8788
Files.walkFileTree(p, visitor);
88-
89+
8990
TransformerFactory transformerFactory = TransformerFactory.newInstance();
9091
Transformer transformer = transformerFactory.newTransformer();
9192
transformer.setOutputProperty(OutputKeys.INDENT, "yes");

0 commit comments

Comments
 (0)