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)