Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-11478

Adds a DataResourceWorker to properly render images and possibly other content types

    XMLWordPrintableJSON

Details

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            jleroux Jacques Le Roux
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: