summaryrefslogtreecommitdiff
path: root/tests/staticfiles_tests/project/documents
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #34496 -- Fixed handling source maps with data URI in ↵Hielke Walinga2023-04-212-0/+4
| | | | | | ManifestStaticFilesStorage. Regression in 781b44240a06f0c868254f40f36ce46c927f56d1.
* Fixed #34235 -- Added ManifestFilesMixin.manifest_hash attribute.Florian Apolloner2023-01-021-0/+6
| | | | | | This adds ManifestFilesMixin.manifest_hash attribute exposing a "hash" of the full manifest. This allows applications to determine when their static files have changed.
* Fixed #32319 -- Added ES module support to ManifestStaticFilesStorage.James Bligh2022-12-074-0/+30
| | | Co-authored-by: James Bligh <james.bligh@silvercloudhealth.com>
* Made HashedFilesMixin ignore URLs without a path.Florian Apolloner2022-06-231-0/+1
|
* Refs #33765 -- Added tests for trailing whitespace in JavaScript source map ↵Adam Johnson2022-06-031-0/+2
| | | | references.
* Refs #33446 -- Allowed variable whitespace in CSS source map references.Adam Johnson2022-03-042-1/+3
| | | | | | | Follow up to dc8bb35e39388d41b1f38b6c5d0181224e075f16. The Webpack default is to output CSS source map comments like `/*# sourceMappingURL=main.css.map*/`. Also, Chromium allows tabs.
* Fixed #33446 -- Added CSS source map support to ManifestStaticFilesStorage.Adam Johnson2022-01-183-0/+5
|
* Fixed #33253 -- Reverted "Fixed #32319 -- Added ES module support to ↵Mariusz Felisiak2021-11-054-30/+0
| | | | | | | | | | ManifestStaticFilesStorage." This reverts commit 91e21836f667c784a8a63ab1f18d81f553e679cb. `export` and `import` directives have several syntax variants and not all of them were properly covered. Thanks Hervé Le Roy for the report.
* Fixed #33237 -- Fixed detecting source maps in ManifestStaticFilesStorage ↵Carlton Gibson2021-11-041-0/+1
| | | | | | | | | | | for multiline files. Switched regex to multiline mode in order to match per-line, rather than against the whole file. Thanks to Joseph Abrahams for the report. Regression in 781b44240a06f0c868254f40f36ce46c927f56d1.
* Fixed #32319 -- Added ES module support to ManifestStaticFilesStorage.Gildardo Adrian Maravilla Jacome2021-05-314-0/+30
|
* Fixed #32383 -- Added source map support to ManifestStaticFilesStorage.Adam Johnson2021-04-023-0/+3
|
* Fixed CVE-2020-24583, #31921 -- Fixed permissions on intermediate-level ↵Mariusz Felisiak2020-09-011-0/+1
| | | | | | static and storage directories on Python 3.7+. Thanks WhiteSage for the report.
* Fixed #28776 -- Fixed a/an/and typos in docs and comments.Дилян Палаузов2017-11-061-1/+1
|
* Fixed #26671 -- Made HashedFilesMixin ignore the 'chrome' scheme.Andrew Nester2016-07-121-0/+1
|
* Fixed #19670 -- Applied CachedFilesMixin patterns to specific extensionsClaude Paroz2016-03-301-0/+1
| | | | Thanks Simon Meers for the initial patch, and Tim Graham for the review.
* Prevented static file corruption when URL fragment contains '..'.Aymeric Augustin2016-02-232-5/+1
| | | | | | | | | | | | | | | | | | | | | When running collectstatic with a hashing static file storage backend, URLs referencing other files were normalized with posixpath.normpath. This could corrupt URLs: for example 'a.css#b/../c' became just 'c'. Normalization seems to be an artifact of the historical implementation. It contained a home-grown implementation of posixpath.join which relied on counting occurrences of .. and /, so multiple / had to be collapsed. The new implementation introduced in the previous commit doesn't suffer from this issue. So it seems safe to remove the normalization. There was a test for this normalization behavior but I don't think it's a good test. Django shouldn't modify CSS that way. If a developer has rendundant /s, it's mostly an aesthetic issue and it isn't Django's job to fix it. Conversely, if the user wants a series of /s, perhaps in the URL fragment, Django shouldn't destroy it. Refs #26249.
* Fixed #26249 -- Fixed collectstatic crash for files in STATIC_ROOT ↵Aymeric Augustin2016-02-233-0/+3
| | | | | | | | | | | | | | | | | | 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.
* Fixed #25283 -- Fixed collectstatic crash if a URL contains a fragment with ↵msaelices2015-11-121-0/+1
| | | | | | | | | a path. A @font-face declaration may contain a fragment that looks like a relative path, e.g. @font-face { src: url('../fonts/font.svg#../path/like/fragment'); } In this case, an incorrect path was passed to the storage backend, which raised an error that caused collectstatic to crash.
* Removed workaround for SVN limitations.Aymeric Augustin2015-02-211-0/+1
| | | | In addition to simplifying the code, this reduces the number of writes.
* Added newlines to the ends of CSS, HTML, and JavaScript files missing them.Trey Hunner2014-08-126-6/+6
|
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-2619-0/+44