HTML output should use absolute paths
Bug #1650390 reported by
David Wyde
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bandit |
New
|
Wishlist
|
Unassigned |
Bug Description
Bandit's HTML reports generate links to files. These links are relative
to Bandit's current working directory. If the output file is written
into a different directory, these links will be broken:
cd bandit/examples
bandit assert.py -f html -o ~/report.html
# The generated HTML links to "assert.py"
If the HTML reports are supposed to just be for filesystem access, then providing
absolute file:// URLs seems like a reasonable fix. If the HTML reports are intended
to live on a web server, then a different solution might be better.
Changed in bandit: | |
importance: | Low → Wishlist |
To post a comment you must log in.
I've seen problems with this before too and I'm not sure what the correct behavior should be. Anybody else have any ideas?