Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-13025

apache.fop.fo.PropertyList logging warnings about ignored properties during export

      Similarly to CONF-11776 PDF export is producing warning messages like:

      [apache.fop.fo.PropertyList] handleInvalidProperty Invalid property name 'content-wdith Property ignored.
      [apache.fop.fo.PropertyList] handleInvalidProperty Invalid property name 'scalefit Property ignored.
      
       [apache.fop.fo.PropertyList] convertAttributeToProperty Ignoring property: background-color=""
       [apache.fop.fo.PropertyList] convertAttributeToProperty Ignoring property: color="0099cc"
       [apache.fop.fo.PropertyList] convertAttributeToProperty Ignoring property: color="5B5BFF"
       [apache.fop.fo.PropertyList] convertAttributeToProperty Ignoring property: margin="0
       [apache.fop.fo.PropertyList] convertAttributeToProperty Ignoring property: color=""
       [apache.fop.fo.PropertyList] convertAttributeToProperty Ignoring property: text-align="middle"
       [apache.fop.fo.PropertyList] convertAttributeToProperty Ignoring property: border="1|alt=confluence
       [apache.fop.fo.PropertyList] convertAttributeToProperty Ignoring property: border="1|bordercolor=greypx
       [apache.fop.fo.PropertyList] convertAttributeToProperty Ignoring property: width="85%%%%%%"
       [apache.fop.fo.PropertyList] convertAttributeToProperty Ignoring property: border="1
      

      This error is occurring regularly on confluence.atlassian.com so we should be able to figure out which pages are causing these exceptions at export time and then fix the problem.

            [CONFSERVER-13025] apache.fop.fo.PropertyList logging warnings about ignored properties during export

            unable to reproduce in 2.10 rc1

            Andrew Prentice (Inactive) added a comment - unable to reproduce in 2.10 rc1

            m@ (Inactive) added a comment - - edited

            See: http://extranet.atlassian.com/display/CONFMON/Daily+CAC+Errors

            At the time of this comment, the stats are something like this:

            100686 ERROR apache.fop.fo.PropertyList handleInvalidProperty
            

            Which is made up of:

            50343 ERROR apache.fop.fo.PropertyList handleInvalidProperty Invalid property name 'scalefit Property ignored.
            50343 ERROR apache.fop.fo.PropertyList handleInvalidProperty Invalid property name 'content-wdith Property ignored.
            

            This issue is meant to address the fact that there are way too many errors on the typo of content-width and the invalid property scalefit. The fix is intended to stop these messages come up in the logs. There are other error messages from this part of the code but they make up such a small number of these log messages they should be treated separately.

            To test that these error message don't come up all you have to do is export a page with an image to PDF. They were coming up when ever an image was being exported (which is why there were so many).

            m@ (Inactive) added a comment - - edited See: http://extranet.atlassian.com/display/CONFMON/Daily+CAC+Errors At the time of this comment, the stats are something like this: 100686 ERROR apache.fop.fo.PropertyList handleInvalidProperty Which is made up of: 50343 ERROR apache.fop.fo.PropertyList handleInvalidProperty Invalid property name 'scalefit Property ignored. 50343 ERROR apache.fop.fo.PropertyList handleInvalidProperty Invalid property name 'content-wdith Property ignored. This issue is meant to address the fact that there are way too many errors on the typo of content-width and the invalid property scalefit. The fix is intended to stop these messages come up in the logs. There are other error messages from this part of the code but they make up such a small number of these log messages they should be treated separately. To test that these error message don't come up all you have to do is export a page with an image to PDF. They were coming up when ever an image was being exported (which is why there were so many).

            Agnes Ro added a comment -

            Adding myself as reviewer

            Agnes Ro added a comment - Adding myself as reviewer

            The top 3 most common occurrences of this error message have been removed.

            [apache.fop.fo.PropertyList] handleInvalidProperty Invalid property name 'content-wdith Property ignored.
            [apache.fop.fo.PropertyList] handleInvalidProperty Invalid property name 'scalefit Property ignored.
            [apache.fop.fo.PropertyList] convertAttributeToProperty Ignoring property: background-color=""
            

            m@ (Inactive) added a comment - The top 3 most common occurrences of this error message have been removed. [apache.fop.fo.PropertyList] handleInvalidProperty Invalid property name 'content-wdith Property ignored. [apache.fop.fo.PropertyList] handleInvalidProperty Invalid property name 'scalefit Property ignored. [apache.fop.fo.PropertyList] convertAttributeToProperty Ignoring property: background-color=""

            m@ (Inactive) added a comment - - edited
             [apache.fop.fo.PropertyList] convertAttributeToProperty Ignoring property: color="0099cc"
             [apache.fop.fo.PropertyList] convertAttributeToProperty Ignoring property: color="5B5BFF"
            

            This is because the colour attribute in the markup is specified without a leading # (ie: its invalid) and being passed down to FOP as invalid.

            Here is an example: http://confluence.atlassian.com/display/CONF20/Excerpt+Include+Macro

            Note the color macro has an invalid color.

            m@ (Inactive) added a comment - - edited [apache.fop.fo.PropertyList] convertAttributeToProperty Ignoring property: color="0099cc" [apache.fop.fo.PropertyList] convertAttributeToProperty Ignoring property: color="5B5BFF" This is because the colour attribute in the markup is specified without a leading # (ie: its invalid) and being passed down to FOP as invalid. Here is an example: http://confluence.atlassian.com/display/CONF20/Excerpt+Include+Macro Note the color macro has an invalid color.

            m@ (Inactive) added a comment - - edited

            Actually the most common error was:

            [apache.fop.fo.PropertyList] handleInvalidProperty Invalid property name 'content-wdith Property ignored.
            [apache.fop.fo.PropertyList] handleInvalidProperty Invalid property name 'scalefit Property ignored.
            

            Caused by some invalid xsl markup when dealing with images.

            m@ (Inactive) added a comment - - edited Actually the most common error was: [apache.fop.fo.PropertyList] handleInvalidProperty Invalid property name 'content-wdith Property ignored. [apache.fop.fo.PropertyList] handleInvalidProperty Invalid property name 'scalefit Property ignored. Caused by some invalid xsl markup when dealing with images.

             [apache.fop.fo.PropertyList] convertAttributeToProperty Ignoring property: background-color=""
            

            Caused by xsl stylesheet trying to extract the background property from the original html. If one isn't specified then you end up with an empty parameter in the fo which causes this error.

            m@ (Inactive) added a comment - [apache.fop.fo.PropertyList] convertAttributeToProperty Ignoring property: background-color="" Caused by xsl stylesheet trying to extract the background property from the original html. If one isn't specified then you end up with an empty parameter in the fo which causes this error.

            • In some cases, these are caused by parameters from the wiki markup.
            • In other cases, these errors are because of the xhtml2fo.xsl file generating (perhaps) incorrect fo markup

            m@ (Inactive) added a comment - In some cases, these are caused by parameters from the wiki markup. In other cases, these errors are because of the xhtml2fo.xsl file generating (perhaps) incorrect fo markup

            David Taylor (Inactive) added a comment - Additional info at http://extranet.atlassian.com/display/CONFMON/apache.fop.fo.PropertyList .

              mjensen m@ (Inactive)
              don.willis@atlassian.com Don Willis
              Affected customers:
              0 This affects my team
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: