﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
26297	"collectstatic --clear throws NotImplementedError, ""This backend doesn't support absolute paths."""	Topher	Berker Peksag	"storage.py docstrings state of storage.path()
>Storage systems that can't be accessed using open() should *not* implement this method.

collectstatic.py does not catch this to use the implemented storage.delete() method on line 221


{{{#!python
full_path = self.storage.path(fpath)
if not os.path.exists(full_path) and os.path.lexists(full_path):
    # Delete broken symlinks
    os.unlink(full_path)
else:
    self.storage.delete(fpath)
}}}

Patch?:

{{{#!python
try:
    full_path = self.storage.path(fpath)
    if not os.path.exists(full_path) and os.path.lexists(full_path):
        # Delete broken symlinks
        os.unlink(full_path)
    else:
        self.storage.delete(fpath)
except NotImplementedError:
    self.storage.delete(fpath)
}}}"	Bug	closed	contrib.staticfiles	1.9	Normal	fixed	clear notimplementederror path	berker.peksag@…	Ready for checkin	1	0	0	0	0	0
