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

Impossible to save richtext containing vml content

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.9.10, 4.10.0
    • None
    • None
    • None
    • 4.10 M8
    • Oui

      Context:

      A user tries to copy some content containing vml data across to an Ametys Richtext.

       

      Bug: Impossible to save the content:

      2026-05-13 15:24:40,118 ERROR [org.ametys.plugins.core.ui] (http-nio-8082-exec-49;/plugins/core-ui/servercomm/messages.xml) Can not dispatch request '3' : 'cms' 'do-action/2' '{values={content.input.title=« XXXXXXXXXXXXXXXXXXXXXX,
       content.input.document-subtitle=, content.input.start-date=, content.input.end-date=, content.input.illustration/image={id=XXXXXXXXXXXXXXXXXXX.jpg, size=81544, viewUrl=
      /plugins/core/upload/file?id=XXXXXXXXXXXXXXXXXX, downloadUrl=/plugins/core/upload/file?id=XXXXXXXXXXXXXXXXXXXXXX&download=true, type=attribute}, content.input.illustration/alt-text=, content.input.abstract=, content.input.content=
      Caused by: org.xml.sax.SAXException: Fatal error parsing null (line 39 col. 31902): The prefix "v" for attribute "v:shapes" associated with an element type "img" is not bound.
      org.xml.sax.SAXParseException; lineNumber: 39; columnNumber: 31902; The prefix "v" for attribute "v:shapes" associated with an element type "img" is not bound.
              at org.apache.excalibur.xml.impl.JaxpParser.fatalError(JaxpParser.java:463)
              at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
              at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
              at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
              at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
              at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
              at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
              at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
              at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:315)
              at org.apache.excalibur.xml.imp*l.JaxpParser.parse(JaxpParser.java:334)
              at org.ametys.cms.transformation.XhtmlGenerator.generate(XhtmlGenerator.java:60)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:581)
              ... 126 more
      Caused by: org.xml.sax.SAXParseException; lineNumber: XX; columnNumber: XXX; The prefix "v" for attribute "v:shapes" associated with an element type "img" is not bound.
              at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
              ... 142 more 

            raphael Raphaël Franchet
            jhawken James Hawken
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: