#35055: `collectstatic` tries to parse commented out lines in CSS files as a
valid
code with `ManifestStaticFilesStorage `
-------------------------------------+-------------------------------------
Reporter: Denis | Owner: nobody
Pechenev |
Type: Bug | Status: new
Component: Core | Version: 4.2
(Management commands) | Keywords: collectstatic,
Severity: Normal | ManifestStaticFilesStorage
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Recently jQuery developers released the new version of `jquery-ui` (
https://blog.jqueryui.com/2022/07/jquery-ui-1-13-2-released/ ). This
version contains a commented out line in `jqery-ui.min.css`. The comment
line contains the following `url(%22images%2Fui-
icons_555555_256x240.png%22)`.
When running `collectstatic` command Django tries to parse the whole file
with regular expression and finds strings like `url(%22images%2Fui-
icons_555555_256x240.png%22)` as a valid urls to files. So it builds the
url path like the following `css/vendor/"images/ui-
icons_555555_256x240.png"` and tries to open a file with such URL. Because
of extra quotes in the path it throws an exception that the file doesn't
exist.
--
Ticket URL: <https://code.djangoproject.com/ticket/35055>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/0107018c8b9d7da2-5ca0a9b4-6b03-4ad0-b034-4959fa7b03cc-000000%40eu-central-1.amazonses.com.