#26329: StaticFilesStorage permits leading slash, CachedStaticFilesStorage 
doesn't
-------------------------------------+------------------------------------
     Reporter:  Seán Hayes           |                    Owner:  blighj
         Type:  Bug                  |                   Status:  assigned
    Component:  contrib.staticfiles  |                  Version:  1.8
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+------------------------------------
Changes (by blighj):

 * needs_better_patch:  1 => 0
 * owner:  Jake Howard => blighj

Comment:

 The last patch on this has stalled, so I'm providing a new patch.

 I think there is a more general point that could be another ticket, the
 behaviour of ManifestStaticFilesStorage can be different on development vs
 production. The leading slash is one case. The other obvious case you see
 in forms/stackoverflow is that when a file is missing this won't error in
 development but will in production. I've also been caught out by the
 backslash as path separtor and url in the wrong case. Both of these will
 work in development, but fail on production with
 ManifestStaticFilesStorage.

 The patch will solve two of these issues. The package I put together has a
 potential solution to the other two (missing file or wrong case). It could
 be incorporated in a follow up ticket or as part of this patch if that was
 deemed better.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/26329#comment:10>
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 view this discussion visit 
https://groups.google.com/d/msgid/django-updates/01070198b9b47b51-98dba55c-9477-4e73-af04-4e7c00f951a0-000000%40eu-central-1.amazonses.com.

Reply via email to