dependency-check / dependency-check/DependencyCheck
Need more detailed reason for error "Unable to create temp directory"
- Dominant language
- Java
- Stars
- 7.7k
- Forks
- 1.4k
- Avg merge
- 9d 22h
- Merged PRs (30d)
- 13
Description
**Describe the bug**
During an integrated Lanuch in Azure DevOps, I get this:
```
2021-07-05T20:02:35.5395189Z [ERROR] Failed to execute goal org.owasp:dependency-check-maven:5.3.0:check (default) on project sphinx-online-setup: One or more exceptions occurred during dependency-check analysis: One or more exceptions occurred during analysis:
2021-07-05T20:02:35.5398689Z [ERROR] Unable to create temp directory '/tmp/dctempdccfa19a-a3f7-4813-86b2-6bbcd8b39a1c/check8952228598588317614tmp/1375'.
```
**Version of dependency-check used**
5.3.0
**Log file**
see log above
**To Reproduce**
Probably in the context of Azure DevOps?
see https://groups.google.com/g/dependency-check/c/amriyGbb5mw
**Expected behavior**
I want to the plugin to describe the error better, as to why the temp directory could not be created.
Specifying the temp directory is not possible in the **Maven** Plugin?
**Additional context**
The user is allowed to create a directory under "/tmp" - I checked that.
Maybe you can use Files.createDirectory() to discover the reason, see:
https://try2explore.com/questions/10357400
Probably affects ArchiveAnalyzer.java and AssemblyAnalyzer.java though the latter uses
`FileUtils.createTempDirectory(getSettings().getTempDirectory());`
Contributor guide
Assessment
This issue has not been assessed yet.