Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-9970

Unable to insert a local image into a richtext on a no-web context

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.5, 4.3.0
    • None
    • None
    • None
    • 4.3 M2

      Since fix of CMS-9632, the resolution of a local image into richtext throw an UnsupportedOperationException in a non-web context such as ODF application

      • Launch ODF template (with no plugin web)
      • Edit a program
      • Insert a local image
      • Save

      The image is not visible.
      There is the following error in logs

      Message:		Error resolving the image of uri 'programContent://c66e0739-3a7b-4e30-86e0-0f6a3a4e9cdd@presentation;3_b.jpg' with type local
      Location:	org.apache.cocoon.util.log.SLF4JLoggerAdapter.warn(SLF4JLoggerAdapter.java:101)
      Thrown:
      java.lang.UnsupportedOperationException: resolveImage
      	at org.ametys.cms.transformation.LocalURIResolver.resolveImage(LocalURIResolver.java:172)
      	at org.ametys.cms.transformation.xslt.ResolveURIComponent.resolveImage(ResolveURIComponent.java:221)
      	at org.ametys.cms.transformation.xslt.ResolveURIComponent.resolveImage(ResolveURIComponent.java:185)
      	at org.ametys.cms.transformation.xslt.ResolveURIComponent.resolveImage(ResolveURIComponent.java:170)
      	at org.ametys.cms.transformation.xslt.ResolveURIComponent.resolveImage(ResolveURIComponent.java:152) 

       

            tberge Thibaut Bergé (Inactive)
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: