[
https://issues.apache.org/jira/browse/ROL-2184?focusedWorklogId=1045582&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1045582
]
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 closed pull request #203: ROL-2184: Preserve
pasted entry images when publishing
URL: https://github.com/apache/roller/pull/203
Issue Time Tracking
-------------------
Worklog Id: (was: 1045582)
Time Spent: 50m (was: 40m)
> 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: 50m
> 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)