Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
Trunk, Upcoming Branch
-
None
-
None
Description
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
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.