snoopdave commented on PR #387: URL: https://github.com/apache/roller/pull/387#issuecomment-7150299750
Thanks, Matt. Reworked in 83c12256c and 657615c4c: - **Migrated uploads:** a file is now covered only if its original path ends in `.css`, `.js` or `.mjs`. Only a custom theme serves media at that path, and those are the types it serves inline. Shared themes don't serve media by path. Migrated photos and other uploads are ordinary media again. Leftover theme scripts and stylesheets stay covered, since switching back to the custom theme serves them again. - **Original path:** with `mediafile.originalPathEdit.enabled=true`, any change to a file's original path (setting or clearing it) needs weblog Admin. - **Rename:** renaming a covered file needs weblog Admin. - **Atom:** `deleteEntry` and `putMedia` return not found for a missing file or weblog. - **Tests:** `ThemeMediaFileChangeTest` now has 22 tests, covering migrated uploads, rename, original-path changes, `deleteFolder` and Atom put/delete. Seven fail on the previous revision. `MediaFileEditTest`'s original-path case now runs as an Admin. I merged `roller-6.1.x` (with #380) and kept both CHANGES entries. The full suite passes on JDK 11 (879 tests, 0 failures). #388 gets the same rework next. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
