Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-4054 Migrate Mail Module
  3. MAGNOLIA-4139

Sending pages by email fails due to parsing errors

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 4.5.2
    • None
    • mail
    • None

      When we want send html page by mail from TOOL-Mail-Html page configuration, it fails on parsing html code.

      Parsing exception are depend to SAXBuilder. When we try transfrom html code to Document (xml).

      • code - <div class="rack-design" cms:edit> => org.jdom.input.JDOMParseException: Error on line 196: Attribute name "cms:edit" associated with an element type "div" must be followed by the ' = ' character.
      • When page contains some special symbol for example "é". This symbol is represented like a "é" and it's lead to org.jdom.input.JDOMParseException: Error on line 9: The entity "eacute" was referenced, but not declared.
      • When page contain special symbol "&". It lead to this error org.jdom.input.JDOMParseException: Error on line 186: The entity name must immediately follow the '&' in the entity reference.
      • Template /magnolia-module-standard-templating-kit/src/main/resources/templating-kit/components/teasers/newsList.ftl don't has closed <img> tag - it leads to org.jdom.input.JDOMParseException: Error on line 322: The element type "img" must be terminated by the matching end-tag "</img>".

      Another exception is attached to images which in name contains blank space, it leads to invalid URI
      java.lang.IllegalArgumentException: Invalid uri 'http://localhost:8080/magnoliaPublic/.imaging/stk/pop/content/dms/demo-project/img/bk/Opener/staircase-from-above/document/staircase from above.jpg': escaped absolute path not valid

            mdivilek Milan Divilek
            mdivilek Milan Divilek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: