• Aymeric Augustin's avatar
    Fixed #26249 -- Fixed collectstatic crash for files in STATIC_ROOT referenced by absolute URL. · 706b33fe
    Aymeric Augustin yazdı
    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.
    706b33fe
Adı
Son kayıt (commit)
Son güncelleme
.tx Loading commit data...
django Loading commit data...
docs Loading commit data...
extras Loading commit data...
js_tests Loading commit data...
scripts Loading commit data...
tests Loading commit data...
.editorconfig Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.hgignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.rst Loading commit data...
Gruntfile.js Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
LICENSE.python Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
package.json Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...