Docx files with Vector Based images fails to upload

XMLWordPrintable

    • 2
    • Severity 3 - Minor
    • 1

      Problem

      The upload of Work file (.docx) with a Vector based image never finishes and a thread gets stuck on the backend forever. Depending on the system size, this can cause some performance issues.

      The confluence.log shows this thread stuck:

      19-May-2020 17:22:55.712 WARNING [Catalina-utility-3] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread [http-nio-8090-exec-7] (id=[66]) has been active for [64,474] milliseconds (since [5/19/20 5:21 PM]) to serve the same request for [http://0.0.0.0:32773/pages/worddav/doimportword.action] and may be stuck (configured threshold for this StuckThreadDetectionValve is [60] seconds). There is/are [1] thread(s) in total that are monitored by this Valve and may be stuck.19-May-2020 17:22:55.712 WARNING [Catalina-utility-3] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread [http-nio-8090-exec-7] (id=[66]) has been active for [64,474] milliseconds (since [5/19/20 5:21 PM]) to serve the same request for [http://0.0.0.0:32773/pages/worddav/doimportword.action] and may be stuck (configured threshold for this StuckThreadDetectionValve is [60] seconds). There is/are [1] thread(s) in total that are monitored by this Valve and may be stuck.
       java.lang.Throwable
       at java.desktop@11.0.7/java.awt.geom.Path2D$Float.pointCrossings(Path2D.java:563)
       at java.desktop@11.0.7/java.awt.geom.Path2D.contains(Path2D.java:2159)
       at asposewobfuscated.zzLL.<init>(Unknown Source)
       at asposewobfuscated.zzLL.<init>(Unknown Source)
       at asposewobfuscated.zzZ.zzZ(Unknown Source)
       at asposewobfuscated.zzZ.zzZ(Unknown Source)
       at asposewobfuscated.zzSX.visitPathEnd(Unknown Source)
      ...
      
       at com.aspose.words.ShapeRenderer.<init>(Unknown Source)
       at com.aspose.words.ShapeBase.getShapeRenderer(Unknown Source)
       at com.atlassian.plugins.conversion.confluence.dom.doc2wiki.Doc2Wiki.visitShapeStart(Doc2Wiki.java:428)
       at com.aspose.words.Shape.zzZ(Unknown Source)
       at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
       at com.aspose.words.Shape.accept(Unknown Source)
       at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
       at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
       at com.aspose.words.Paragraph.accept(Unknown Source)
       at com.aspose.words.CompositeNode.acceptChildren(Unknown Source) 
      
      

      The class/method affect is this one: com.aspose.words.ShapeRenderer

      Based on the documentation from the Aspose this class is used to convert Vector images into 'real' images.

      Environment

      6.13.11 and 7.40

      Steps to Reproduce

      1. Upload the docs with the vector image
      2. The upload never ends

      Workaround

      It's possible to transform the Vector Based Image in Graphical images using many tools. So, the workaround is not use Vector Based Images on the docs to be upload in the Confluence.

      Notes

            Assignee:
            Unassigned
            Reporter:
            Dave Marsico
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: