[
https://issues.apache.org/jira/browse/OFBIZ-7002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15294912#comment-15294912 ]
Mohammed Rehan Khan commented on OFBIZ-7002:
--------------------------------------------
Hello,
Here is some additional detail-
Question: Why setting up mimeTypeTypeId as 'null' is fixing this issue?
Answer: As we don't have image specific worker method for rendering these type of contents, so we are using DataResourceWorker.renderDataResourceAsText() to render image type content as well. Due to following condition, targetMimeTypeId is setting up as "text/html" if sent null and hence not throwing the exception reported in the ticket.
if (UtilValidate.isEmpty(targetMimeTypeId)) {
targetMimeTypeId = "text/html";
}
> Images are not rendered in content
> ----------------------------------
>
> Key: OFBIZ-7002
> URL:
https://issues.apache.org/jira/browse/OFBIZ-7002> Project: OFBiz
> Issue Type: Bug
> Components: content
> Affects Versions: Release Branch 12.04, Release Branch 13.07, Release Branch 14.12, Trunk, Release Branch 15.12
> Reporter: Jacques Le Roux
> Assignee: Mohammed Rehan Khan
> Attachments: OFBIZ-7002.patch
>
>
> When you get to content/control/WebSiteCms?webSiteId=CmsSite and add a new image in the tree, it's no rendered. Same at
> {code}
> content/control/EditLayout?drDataResourceId=NOCONTENTFOUND&contentId=NOCONTENTFOUND
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)