Uploaded image for project: 'Xporter for Jira Cloud'
  1. Xporter for Jira Cloud
  2. XPORTERCLOUD-2215

Wiki is failing whenever there is a Issue Key reference

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Open
    • Medium
    • Resolution: Unresolved
    • Xporter Cloud V1.24.21
    • Continuous Delivery
    • Xporter Engine
    • None
    • UNCOVERED

    Description

      Description
      Wiki Markup fails whenever there is an Issue Key reference in a Text Custom Field.

      Pre-conditions
      Reference an EXISTING issue key without quotation marks:

      How to reproduce
      Export the Custom Field using Wiki:

      Actual result/Attachments
      The file is exported with an error:

      General Exception: java.lang.RuntimeException:
      java.lang.IllegalStateException: Invalid document model. Operation can not be completed.
      java.lang.RuntimeException: java.lang.IllegalStateException: Invalid document model. Operation can not be completed.
      at com.aspose.words.FieldCollection$zzZ.zzZoA(Unknown Source)
      at com.aspose.words.FieldCollection$zzZ.next(Unknown Source)
      at java.base/java.lang.Iterable.forEach(Unknown Source)
      at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.word.AsposeWordConverter.processFieldLinks(AsposeWordConverter.java:473)
      at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.word.AsposeWordConverter.convert(AsposeWordConverter.java:372)
      at com.xpandit.xporter.cloud.engine.service.export.service.impl.ExportServiceImpl.handleExport(ExportServiceImpl.java:219)
      at com.xpandit.xporter.cloud.engine.service.export.service.impl.ExportServiceImpl.export(ExportServiceImpl.java:154)
      at com.xpandit.xporter.cloud.engine.service.export.utils.PolledDocumentGenerator.generateDocument(PolledDocumentGenerator.java:118)
      at com.xpandit.xporter.cloud.engine.service.export.utils.PolledDocumentGenerator.listenToQueue(PolledDocumentGenerator.java:77)
      at com.xpandit.xporter.cloud.engine.service.export.Export.main(Export.java:70)
      Caused by: java.lang.IllegalStateException: Invalid document model. Operation can not be completed.
      at com.aspose.words.zzZX5.zzZpF(Unknown Source)
      at com.aspose.words.zzZX5.zzZ(Unknown Source)
      at com.aspose.words.zzZX5.zzV(Unknown Source)
      at com.aspose.words.zzZX5.zzW(Unknown Source)
      at com.aspose.words.FieldChar.getField(Unknown Source)
      at com.aspose.words.FieldCollection$zzZ.zzZoA(Unknown Source)
      ... 9 more
      

      Expected result
      The report is exported without issues.

       

      Current Workaround

      If the Wiki Markup is strictly necessary, mention the key using quotation marks/double-quotes.

      If not, just map the field without the Wiki Markup.
       

       

       

      Attachments

        Issue Links

          Activity

            People

              bernardo.cottim Bernardo Cottim
              joao.silva João Silva
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: