django/tests/staticfiles_tests/project
Aymeric Augustin 706b33fef8 Fixed #26249 -- Fixed collectstatic crash for files in STATIC_ROOT referenced by absolute URL.
collectstatic crashed when:

* a hashing static file storage backend was used
* a static file referenced another static file located directly in
  STATIC_ROOT (not a subdirectory) with an absolute URL (which must
  start with STATIC_URL, which cannot be empty)

It seems to me that the current code reimplements relative path joining
and doesn't handle edge cases correctly. I suspect it assumes that
STATIC_URL is of the form r'/[^/]+/'.

Throwing out that code in favor of the posixpath module makes the logic
easier to follow. Handling absolute paths correctly also becomes easier.
2016-02-23 19:34:21 +01:00
..
documents Fixed #26249 -- Fixed collectstatic crash for files in STATIC_ROOT referenced by absolute URL. 2016-02-23 19:34:21 +01:00
faulty Fixed #18986 -- Improved error message for missing files 2013-04-28 16:45:05 +02:00
prefixed Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
site_media Fixed #23700 -- Fixed non-deterministic static files test failures on Windows. 2015-01-01 13:57:52 -05:00