Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-15983

Assets Azure import with multiple subscriptions has improper error handling when a subscription ID is missing

      Issue Summary

      Assume an Assets Azure import source that is configured with 10 subscription ids. When an ID is missing in Azure the whole of import fails. Ignoring the remaining valid subscriptions is logically incorrect.

      The error is logged makes no sense.

      This is reproducible on Data Center: yes

      Steps to Reproduce

      When Assets is importing all the objects of one type , it will loop through all of the configured subscriptions and process the list of objects for each. There are some paths in the code that are not appropriately wrapped with try-catch, so if an ID is missing it encounters an error and will stop processing any further valid susbcriptions for that object type.

      Note that App Services is only one example; other object types are affected similarly e.g. Subscription Service

      Expected Results

      An error should be thrown out to highlight the issue for the missing Subscription ID and eventually import process should continue for valid IDs.

      Actual Results

      Import fails for valid IDs as well

      Workaround

      Edit the import configuration and delete invalid subscription IDs

      Versions Tested

      Please confirm all versions that have been tested for this issue, and indicate whether the tested version is affected or not affected, below: 

      Testing Requirements Version Affected Version
      Customers Reported Version 5.12.13 - 1.9.1 (Yes)
      Most Recent Bug-Fix Release    
      Previous Major Release    
      Most Recent LTS 5.12.16 (Yes)
      Previous Supported LTS    
      Other Versions..    
      (Add rows as needed)    

          Form Name

            [JSDSERVER-15983] Assets Azure import with multiple subscriptions has improper error handling when a subscription ID is missing

            Benjamin Suess made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            Benjamin Suess made changes -
            Status Original: In Progress [ 3 ] New: Waiting for Release [ 12075 ]
            Benjamin Suess made changes -
            Status Original: Short Term Backlog [ 12074 ] New: In Progress [ 3 ]
            Benjamin Suess made changes -
            Assignee New: Benjamin Suess [ c8bcca445054 ]
            Benjamin Suess made changes -
            Fix Version/s New: Assets - Azure Integration 1.9.2 [ 111006 ]
            Zach Loh (Inactive) made changes -
            Assignee Original: Zach Loh [ 1533a4bfc536 ]
            Zach Loh (Inactive) made changes -
            Assignee New: Zach Loh [ 1533a4bfc536 ]
            SET Analytics Bot made changes -
            Support reference count New: 1
            Bartosz Ornatowski made changes -
            Status Original: Needs Triage [ 10030 ] New: Short Term Backlog [ 12074 ]
            Bartosz Ornatowski made changes -
            Symptom Severity Original: Severity 1 - Critical [ 15830 ] New: Severity 2 - Major [ 15831 ]

              c8bcca445054 Benjamin Suess
              f956e0e022e9 skavatekar
              Affected customers:
              1 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: