﻿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	nobody	"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


{{{
#!div style=""font-size: 80%""
Code highlighting:
  {{{#!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?:

{{{
#!div style=""font-size: 80%""
Code highlighting:
  {{{#!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	new	contrib.staticfiles	1.9	Normal		clear notimplementederror path		Unreviewed	1	0		0	1	0
