summaryrefslogtreecommitdiff
path: root/tests/staticfiles_tests/project/documents
AgeCommit message (Collapse)Author
2025-05-16Fixed #36348 -- Fixed handling multiple nested url()s in ↵Samuel Cormier-Iijima
ManifestStaticFilesStorage. Signed-off-by: Samuel Cormier-Iijima <samuel@cormier-iijima.com>
2024-08-07Fixed #35553 -- Handled import*as in HashedFilesMixin.Farhan
2024-07-11Fixed syntax of CSS file used in tests.Tom Carrick
2023-04-21Fixed #34496 -- Fixed handling source maps with data URI in ↵Hielke Walinga
ManifestStaticFilesStorage. Regression in 781b44240a06f0c868254f40f36ce46c927f56d1.
2023-01-02Fixed #34235 -- Added ManifestFilesMixin.manifest_hash attribute.Florian Apolloner
This adds ManifestFilesMixin.manifest_hash attribute exposing a "hash" of the full manifest. This allows applications to determine when their static files have changed.
2022-12-07Fixed #32319 -- Added ES module support to ManifestStaticFilesStorage.James Bligh
Co-authored-by: James Bligh <james.bligh@silvercloudhealth.com>
2022-06-23Made HashedFilesMixin ignore URLs without a path.Florian Apolloner
2022-06-03Refs #33765 -- Added tests for trailing whitespace in JavaScript source map ↵Adam Johnson
references.
2022-03-04Refs #33446 -- Allowed variable whitespace in CSS source map references.Adam Johnson
Follow up to dc8bb35e39388d41b1f38b6c5d0181224e075f16. The Webpack default is to output CSS source map comments like `/*# sourceMappingURL=main.css.map*/`. Also, Chromium allows tabs.
2022-01-18Fixed #33446 -- Added CSS source map support to ManifestStaticFilesStorage.Adam Johnson
2021-11-05Fixed #33253 -- Reverted "Fixed #32319 -- Added ES module support to ↵Mariusz Felisiak
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.
2021-11-04Fixed #33237 -- Fixed detecting source maps in ManifestStaticFilesStorage ↵Carlton Gibson
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.
2021-05-31Fixed #32319 -- Added ES module support to ManifestStaticFilesStorage.Gildardo Adrian Maravilla Jacome
2021-04-02Fixed #32383 -- Added source map support to ManifestStaticFilesStorage.Adam Johnson
2020-09-01Fixed CVE-2020-24583, #31921 -- Fixed permissions on intermediate-level ↵Mariusz Felisiak
static and storage directories on Python 3.7+. Thanks WhiteSage for the report.
2017-11-06Fixed #28776 -- Fixed a/an/and typos in docs and comments.Дилян Палаузов
2016-07-12Fixed #26671 -- Made HashedFilesMixin ignore the 'chrome' scheme.Andrew Nester
2016-03-30Fixed #19670 -- Applied CachedFilesMixin patterns to specific extensionsClaude Paroz
Thanks Simon Meers for the initial patch, and Tim Graham for the review.
2016-02-23Prevented static file corruption when URL fragment contains '..'.Aymeric Augustin
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.
2016-02-23Fixed #26249 -- Fixed collectstatic crash for files in STATIC_ROOT ↵Aymeric Augustin
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.
2015-11-12Fixed #25283 -- Fixed collectstatic crash if a URL contains a fragment with ↵msaelices
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.
2015-02-21Removed workaround for SVN limitations.Aymeric Augustin
In addition to simplifying the code, this reduces the number of writes.
2014-08-12Added newlines to the ends of CSS, HTML, and JavaScript files missing them.Trey Hunner
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner