[jira] [Updated] (OFBIZ-7002) Images are not rendered in content

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-7002) Images are not rendered in content

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-7002?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mohammed Rehan Khan updated OFBIZ-7002:
---------------------------------------
    Attachment: OFBIZ-7002.patch

I have explored the issue and found that there is a condition in DataResourceWorker method to render content of 'text' mime type only, for others it returns exception.

// if the target mimeTypeId is not a text type, throw an exception
if (!targetMimeTypeId.startsWith("text/")) {
    throw new GeneralException("The desired mime-type is not a text type, cannot render as text: " + targetMimeTypeId);
}

We can fix this by setting up mimeTypeID as null in request param

I have added the patch with the changes and also test the same for all contents, kindly share your thoughts on this.


> 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)