#26591: Incorrect Manifest Keys for ManifestStaticFilesStorage on Windows
-------------------------+-------------------------------------------------
Reporter: | Owner: nobody
dsanders11 |
Type: Bug | Status: new
Component: | Version: master
contrib.staticfiles | Keywords: staticfiles manifest
Severity: Normal | manifeststaticfileststorage windows
Triage Stage: | Has patch: 0
Unreviewed |
Easy pickings: 0 | UI/UX: 0
-------------------------+-------------------------------------------------
The manifest created by `ManifestStaticFilesStorage` on Windows has some
incorrect keys (haven't determined the pattern yet) where slashes are '\\'
instead of '/'.
This silently 'succeeds' because `HashedFilesMixin` will hash the original
file on a 'cache miss' (in the case of `ManifestStaticFilesStorage` it's a
manifest miss) and insert the result into the in-memory hashed files map.
I've attached a patch for staticfiles_tests which checks that the manifest
is the same in memory and on disk after the manifest tests finish (unless
it was a test which cleared the in-memory version). It passes for the
Linux build but fails on the Windows build, nicely illustrating the
problem.
--
Ticket URL: <https://code.djangoproject.com/ticket/26591>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/053.8ea2693c5b61e06cd4c5ef87c6bd4d71%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.