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

You cannot edit an image in content

    Details

      Description

      If you get to

      content/control/EditLayout?drDataResourceId=NOCONTENTFOUND&contentId=NOCONTENTFOUND
      

      When trying to editing you get an error

      2016-04-11 10:48:42,932 |http-bio-8443-exec-9 |ScreenFactory                 |I| Got 9 screens in 0.004s from: file:/C:/projectASF-Mars/ofbiz/applications/content/widget/layout/LayoutScreens.xml
      2016-04-11 10:48:43,051 |http-bio-8443-exec-9 |ScriptUtil                    |W| Error running script at location [component://content/webapp/content/WEB-INF/actions/layout/EditSubContent.groovy]: org.ofbiz.b
      ase.util.GeneralException: The desired mime-type is not a text type, cannot render as text: image/png
      org.ofbiz.base.util.GeneralException: The desired mime-type is not a text type, cannot render as text: image/png
              at org.ofbiz.content.data.DataResourceWorker.renderDataResourceAsText(DataResourceWorker.java:624) ~[ofbiz-content.jar:?]
              at org.ofbiz.content.data.DataResourceWorker.renderDataResourceAsText(DataResourceWorker.java:603) ~[ofbiz-content.jar:?]
              at org.ofbiz.content.data.DataResourceWorker$renderDataResourceAsText.call(Unknown Source) ~[?:?]
              at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) ~[groovy-all-2.4.5.jar:2.4.5]
              at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) ~[groovy-all-2.4.5.jar:2.4.5]
              at EditSubContent.run(EditSubContent.groovy:50) ~[?:?]
      

        Attachments

        1. Image 018.png
          58 kB
          Jacques Le Roux
        2. nocontentfound.png
          3 kB
          Jacques Le Roux
        3. OFBIZ-7000.patch
          5 kB
          Mohammed Rehan Khan
        4. OFBIZ-7000.patch
          0.8 kB
          Mohammed Rehan Khan

          Issue Links

            Activity

              People

              • Assignee:
                jacques.le.roux Jacques Le Roux
                Reporter:
                jacques.le.roux Jacques Le Roux
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: