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

Can't edit an article that contains an emoji (because of its location in the richtext)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.8.0
    • None
    • None
    • None
    • 4.8.0 M8

      Bug:
      It looks like an Ametys Java lib splits richtexts in segments of 1024 bytes.
      Because emojis are made up of multiple characters , this can cause problems (when the emoji is split in half).

      Log:

      Substitut UTF-16 non valide détecté : d83d ?
      java.io.IOException: Substitut UTF-16 non valide détecté : d83d ?
      at org.apache.xml.serializer.ToStream.accumDefaultEscape(ToStream.java:1815)
      at org.apache.xml.serializer.ToStream.processDirty(ToStream.java:1737)
      at org.apache.xml.serializer.ToStream.characters(ToStream.java:1601)
      at org.apache.xalan.transformer.TransformerIdentityImpl.characters(TransformerIdentityImpl.java:1126)
      at org.apache.cocoon.xml.AbstractXMLPipe.characters(AbstractXMLPipe.java:124)
      at org.apache.xml.serializer.ToXMLSAXHandler.characters(ToXMLSAXHandler.java:542)
      at org.apache.xml.utils.FastStringBuffer.sendSAXcharacters(FastStringBuffer.java:999)
      at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.dispatchCharactersEvents(SAX2DTM.java:520)
      at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:318)
      at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
      at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
      at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:128)
      at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java

       

            cedric Cédric Damioli
            jhawken James Hawken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: