Jacques Le Roux created OFBIZ-11478:
---------------------------------------
Summary: Adds a DataResourceWorker to properly render images and
possibly other content types
Key: OFBIZ-11478
URL: https://issues.apache.org/jira/browse/OFBIZ-11478
Project: OFBiz
Issue Type: Improvement
Components: framework
Affects Versions: Trunk
Reporter: Jacques Le Roux
Folllowing work at OFBIZ-11246, I read in an OFBIZ-7000 related commit comment
which was excerpt from a discussion where I asked questions to [~rehan.khan]
who mostly fixed the issue
{quote}
We can fix this by setting up mimeTypeID as null in request param.
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.
{quote}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)