Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-14241

background:white css style breaks css4j in pdf export

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 8.4.4
    • Old Core - PDF export
    • None
    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      if you put the following wiki syntax in a page

      (% style="background: white;" %)Hello
      

      Then styles from a PDF template are not applied to the document with an exception.

      java.lang.ArrayIndexOutOfBoundsException: -1
        7040         at java.util.ArrayList.elementData(ArrayList.java:418)
        7041         at java.util.ArrayList.remove(ArrayList.java:495)
        7042         at info.informatica.doc.style.css.property.DOMCSSValueList.remove(DOMCSSValueList.java:64)
        7043         at info.informatica.doc.style.css.dom.BaseCSSStyleDeclaration$BackgroundShorthandSetter.assignSubproperties(       BaseCSSStyleDeclaration.java:1566)
        7044         at info.informatica.doc.style.css.dom.BaseCSSStyleDeclaration.setSubproperties(BaseCSSStyleDeclaration.java:       844)
        7045         at info.informatica.doc.style.css.dom.BaseCSSStyleDeclaration.setProperty(BaseCSSStyleDeclaration.java:440)
        7046         at info.informatica.doc.style.css.dom.PropertyDocumentHandler.property(PropertyDocumentHandler.java:101)
        7047         at info.informatica.doc.style.css.dom.BaseCSSStyleDeclaration$StyleDeclarationDocumentHandler.property(BaseC       SSStyleDeclaration.java:1)
        7048         at com.steadystate.css.parser.AbstractSACParser.handleProperty(AbstractSACParser.java:540)
        7049         at com.steadystate.css.parser.SACParserCSS21.declaration(SACParserCSS21.java:1723)
        7050         at com.steadystate.css.parser.SACParserCSS21.styleDeclaration(SACParserCSS21.java:1619)
      

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              ludovic Ludovic Dubost
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: