[
https://issues.apache.org/jira/browse/CAUSEWAY-4045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18102713#comment-18102713
]
Miklós Győrfi commented on CAUSEWAY-4045:
-----------------------------------------
Sorry, I was not right. The standard base64 encoding fully supported in data
URL-s according to [https://datatracker.ietf.org/doc/html/rfc2397]
So only the svg MIME type is the issue.
> [BUG] DataUri record uses invalid SVG media type and unsafe Base64 encoding
> ---------------------------------------------------------------------------
>
> Key: CAUSEWAY-4045
> URL: https://issues.apache.org/jira/browse/CAUSEWAY-4045
> Project: Causeway
> Issue Type: Bug
> Components: Core
> Affects Versions: 4.0.0-M2
> Reporter: Miklós Győrfi
> Assignee: Andi Huber
> Priority: Minor
> Fix For: 4.0.0
>
>
> {panel}
> * The {{org.apache.causeway.commons.net.DataUri}} record (introduced in
> Causeway 4.0) has several compliance and interoperability issues with RFC
> 2397 and W3C standards.
> h3. Incorrect SVG MIME Type
> {{DataUri.ImageType.SVG.mediaType()}} currently returns {{{}image/svg{}}},
> while the correct IANA-registered media type is {{{}image/svg+xml{}}}.
> This causes rendering failures in browsers and in Wicket image components
> when SVGs are embedded via Data URIs.
> *Expected:*
> {{image/svg+xml}}
> ----
>
> h2. Expected Behavior
> * {{ImageType.SVG.mediaType()}} returns {{"image/svg+xml"}}
>
> {panel}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)