Importing Assets with empty plain text attribute causes import to fail

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      This is reproducible on Data Center: yes

      Steps to Reproduce

      Discovered when running an AWS plugin import

      1. Configure an AWS import
      2. Ensure that in the VPC section of the AWS console, there are Subnets with no IPV6 CIDR value 
      3. Run the import for the Subnets object type

      Expected Results

      Subnet objects are created

      Actual Results

      Subnet objects are not created

      The below error is found in the insight_import.log file:

      2023-08-30 11:29:27,107 [insight-InsightImportThreadGroup-worker-thread-4] {jira.username=admin} | Unable to decide action for com.riadalabs.jira.plugins.insight.services.imports.common.external.model.InternalDataEntry@[dataEntry={DataLocator [locator=Zone]=[], DataLocator [locator=Map Public Ip on launch]=[true], DataLocator [locator=Status]=[Available], DataLocator [locator=VPC]=[vpc-], DataLocator [locator=Name]=[subnet-], DataLocator [locator=Available Ip-Address count]=[], DataLocator [locator=Default for Availability Zone]=[true], DataLocator [locator=Id]=[subnet-], DataLocator [locator=CIDR Block]=[], DataLocator [locator=Caller Identity]=[], DataLocator [locator=Assign Ipv6 Address on creation]=[false], DataLocator [locator=Region]=[], DataLocator [locator=Ipv6 CIDR Block association]=[null], DataLocator [locator=Tags]=[subnet-]},importSourceOTId=234], due to Parameter specified as non-null is null: method com.riadalabs.jira.plugins.insight.services.imports.common.twodimensional.TextareaHtmlSanitizer$Companion.sanitize, parameter htmlText 

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              Assignee:
              Mingyi Yang
              Reporter:
              Christopher Bowles
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: