HTML output should use absolute paths

Bug #1650390 reported by David Wyde
6
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.

Revision history for this message
Travis McPeak (travis-mcpeak) wrote :

I've seen problems with this before too and I'm not sure what the correct behavior should be. Anybody else have any ideas?

Changed in bandit:
importance: Undecided → Low
Luke Hinds (lhinds)
Changed in bandit:
importance: Low → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.