Issue Summary

      Discovery tool v3.1.9 returns error when scanning a IP address range. For example, in the Scan Settings, if a single IP, or multiple IPs separated by the semi colon, then the scan is fine. But if the Scan Settings is configured with an IP range (192.168.0.0-20) or with a CIRD notation range, the scan will return error.

      This is reproducible on Data Center: (yes)

      Steps to Reproduce

      1. Install the Discovery tool version 3.1.9
      2. Configure the "Scan Settings" with an IP range

      Expected Results

      The expected result is that the scan would be performed correctly

      Actual Results

      The actual result is that the scan would fail and return the error below.

      The below exception is thrown in the discovery log:

      6/27/2023 5:22:18 PM: [Normal] Start Scan: 192.168.0.20
      6/27/2023 5:22:18 PM: [Normal] Ping 192.168.0.20 --> Success ResponseTime=0ms TTL=128
      6/27/2023 5:22:18 PM: [Error] Error scanning host
      6/27/2023 5:22:18 PM: [Normal] Exceptions:
      6/27/2023 5:22:18 PM: [Normal] Object reference not set to an instance of an object.
         at Insight.Discovery.ProviderClasses.AssetProvider.GetHostInfoResultByKnownCredentials(List`1 knownCredentials, Int32 ttl, HostInfoDto additionalData, String ip) in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE127-BUILD\ProviderClasses\AssetProvider.cs:line 221
         at Insight.Discovery.ProviderClasses.AssetProvider.GetHostInfo(String ip, Int32 port, Boolean usePowerShell, Int32 ttl, Boolean autoAddSudo, List`1 enabledPatternFiles, List`1 disabledPatternFiles, String scanSettingsEntryId, Boolean basicHostInfo) in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE127-BUILD\ProviderClasses\AssetProvider.cs:line 136
      

      Workaround

      The work-around at the moment is to downgrade to previous version of the Discovery tool or not to use an IP range.

          Form Name

            [JSDSERVER-13621] Discovery tool v3.1.9 return error when scanning IP address range

            Marek Parfianowicz made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 788969 ]
            Zakhar Listiev made changes -
            Status Original: Closed [ 6 ] New: Closed [ 6 ]
            Zakhar Listiev made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            Zakhar Listiev made changes -
            Last Update On New: 12/Jul/2023 [ 2023-07-12 ]
            Status Original: Waiting for Release [ 12075 ] New: Waiting for Release [ 12075 ]
            Zakhar Listiev made changes -
            Status Original: In Progress [ 3 ] New: Waiting for Release [ 12075 ]
            SET Analytics Bot made changes -
            Support reference count Original: 3 New: 5
            Marek Parfianowicz made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 784082 ]
            Marek Parfianowicz made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 783897 ]
            Zakhar Listiev made changes -
            Remote Link Original: This issue links to "JSMDC-17581 (Bulldog)" [ 784081 ] New: This issue links to "JSMDC-17581 (JIRA Server (Bulldog))" [ 784081 ]
            Marek Parfianowicz made changes -
            Remote Link New: This issue links to "JSMDC-17581 (Bulldog)" [ 784081 ]

              Unassigned Unassigned
              df8885b02156 Loc Nguyen (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: