[
https://issues.apache.org/jira/browse/ROL-2184?focusedWorklogId=1045581&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1045581
]
ASF GitHub Bot logged work on ROL-2184:
---------------------------------------
Author: ASF GitHub Bot
Created on: 04/Oct/26 11:57
Start Date: 04/Oct/26 11:57
Worklog Time Spent: 10m
Work Description: snoopdave commented on PR #203:
URL: https://github.com/apache/roller/pull/203#issuecomment-5979678859
Closing as superseded by #205. That PR targets roller-6.1.x for 6.1.7 and
includes the follow-up fixes and tests. The change can be cherry-picked to
master after the 6.1.7 release, as noted on #205.
Issue Time Tracking
-------------------
Worklog Id: (was: 1045581)
Time Spent: 40m (was: 0.5h)
> Pasted desktop images disappear from published entries
> ------------------------------------------------------
>
> Key: ROL-2184
> URL: https://issues.apache.org/jira/browse/ROL-2184
> Project: Apache Roller
> Issue Type: Bug
> Components: Media files / uploads, Themes and Macros, User Interface
> - Weblog Editor
> Reporter: David M. Johnson
> Assignee: David M. Johnson
> Priority: Major
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Reported against 6.1.6.
> If you drag a desktop image into the rich text editor, it becomes a {{data:}}
> image. It shows while you edit, but the published entry leaves it out:
> rendering strips {{data:}} images, and the bundled themes' CSP blocks them.
> Fix both paths:
> # *Upload (preferred).* When upload is available, upload new pasted or
> dropped images as media files. Convert stored inline images the next time an
> entry is saved. Leave remote images unchanged. Use Roller's existing checks
> for upload permission, file type, size and quota.
> # *Inline fallback.* When upload is unavailable, or when the new global
> "inline images" preference is set, store the image inline. Accept only
> strictly validated PNG, JPEG and GIF data images, with a 60,000-byte field
> limit.
> h3. Acceptance
> * New pastes and drops, and edits of old entries, produce working published
> images on both paths. Check the draft and publish flows.
> * A failed upload, or an invalid or oversized inline image, shows a clear
> message. It never silently publishes a missing image.
> * Valid inline images render in the bundled themes. Non-image data URLs and
> active content stay blocked.
> * The docs say that custom themes with their own CSP must allow {{data:}}
> under {{img-src}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)