Uploaded image for project: 'Xporter for Jira'
  1. Xporter for Jira
  2. XPORTER-4036

When using a *Set* function of an empty custom field, the following error is shown in the logs

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 6.9.11
    • Continuous Delivery
    • Xporter Engine
    • None
    • UNCOVERED

    Description

      Description

      When using a Set function of an empty custom field, the following error is shown in the logs:

      2022-12-06 14:35:57,231+0000 Xporter-e98d718f232f4a659e328d24f86a1dbf ERROR admin 875x1894x1 7wyyyp 0:0:0:0:0:0:0:1 /rest/jiraxporter/1.0/export/ [c.x.j.c.d.b.i.a.w.replacer.processor.FieldProcessor] Error replacing field value: Cannot remove because there is no parent.
      java.lang.IllegalStateException: Cannot remove because there is no parent.
      at com.aspose.words.Node.remove(Unknown Source)
      at com.aspose.words.zzZUB.zzZ(Unknown Source)
      at com.aspose.words.zzZUB.zzZk7(Unknown Source)
      at com.aspose.words.Range.zzZ(Unknown Source)
      at com.aspose.words.Range.replace(Unknown Source)
      at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.word.replacer.processor.FieldProcessor.process(Unknown Source)
      at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.word.replacer.processor.ParagraphProcessor.processNode(Unknown Source)
      at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.word.replacer.processor.ParagraphProcessor.getNodeProcessingValue(Unknown Source)
      at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.word.replacer.processor.ParagraphProcessor.processNode(Unknown Source)
      at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.word.replacer.processor.ParagraphProcessor.process(Unknown Source)
      at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.word.replacer.processor.DocumentProcessor.processItem(Unknown Source)
      at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.word.replacer.processor.DocumentProcessor.process(Unknown Source)
      at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.word.replacer.processor.StaticProcessor.process(Unknown Source)
      at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.word.replacer.processor.DynamicProcessor.process(Unknown Source)
      at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.word.replacer.processor.XporterProcessor.process(Unknown Source)
      at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.word.AsposeWordConverter.convert(Unknown Source)
      at com.xpandit.jiraxporter.component.service.XporterServiceImpl.exportIssue(Unknown Source)
      at com.xpandit.jiraxporter.component.service.XporterServiceImpl.generateBulkExportReport(Unknown Source)
      at com.xpandit.jiraxporter.component.a.a.run(Unknown Source)
      at java.base/java.lang.Thread.run(Unknown Source)
      

      How to reproduce

      1. Create an issue with the Description empty
      2. Run a template with the following mapping:
        ${set(Desc,${Description})}
        

      Actual result/Attachments

      The error "Error replacing field value: Cannot remove because there is no parent." is logged.

      Expected result

      The error should not appear.

      Version

      • 6.9.11-j8

      Attachments

        Activity

          People

            rmbr Rui Rodrigues
            amgt Ana Teixeira
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: