Issue Summary

      Asset Discovery can scan Windows devices but not MacOS devices

      Steps to Reproduce

      1. Execute MacOSX_OS.pat:
        7/30/2024 3:56:43 PM: [Normal] Getting Host Information: Dannys-Air
        7/30/2024 3:56:43 PM: [Normal] Using pattern: MacOSX_OS.pat (v3.0.1)
        7/30/2024 3:56:43 PM: [Debug] Start getting command result from cache
        7/30/2024 3:56:43 PM: [Debug] Getting command result from cache was successful
        7/30/2024 3:56:43 PM: [Debug] Start adding command to cache
        7/30/2024 3:56:43 PM: [Debug] Adding command sw_vers | col -b result to cache was successful
        7/30/2024 3:56:43 PM: [Debug] Command: 
            sw_vers
            
        7/30/2024 3:56:43 PM: [Debug] Result: ProductName:		macOS
        ProductVersion: 	14.0
        BuildVersion:		23A344
        
        7/30/2024 3:56:43 PM: [Normal] pattern executed in 0.4268375 seconds
        

      Expected Results

      Asset Discovery detects the OS as MacOS

      Actual Results

      Asset Discovery detected the OS as MacOS in the log file but it didn't show up in the xml file

      <ArrayOfHostInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <HostInfo>
      <ObjectHash>1910EEF89498003DCDD3B7A82717A20E</ObjectHash>
      <Hostname>Dannys-Air</Hostname>
      <FQDN>Dannys-Air.Candylio.local</FQDN>
      <SystemUpTime>0d 6h 49m</SystemUpTime>
      <Model>MacBook Air Mac14,2</Model>
      <Serialnumber>Y69JX2LP6H</Serialnumber>
      <Vendor>Apple Inc.</Vendor>
      <SystemUpTimeMinutes>409</SystemUpTimeMinutes>
      <RAM>16384</RAM>
      <ScanInfo>
      <ObjectHash>7674EC73DC96B177D21E9818BCAF59CF</ObjectHash>
      <ObjectID>9a548e34-bc6e-4bd7-8901-5ed3f855704b</ObjectID>
      <UsedCredentialID>66cdeb1d-b7f7-4fca-91a3-980d28717ef7</UsedCredentialID>
      <NetworkInterfaceInfo>
      <ObjectHash>5E8F218D691606EC2CC9D3B07C33004B</ObjectHash>
      <DeviceID>noID</DeviceID>
      <MACAddress>cc:08:fa:5c:88:af</MACAddress>
      <IP4>192.168.108.57</IP4>
      </NetworkInterfaceInfo>
      <DiscoveryID>372FD</DiscoveryID>
      <ScanSettingID>00001</ScanSettingID>
      <DiscoveryVersion>7.0.4</DiscoveryVersion>
      <ScanTime>2024-07-30_15:56</ScanTime>
      <ScanningTimeElapsed>34.367611499999995</ScanningTimeElapsed>
      </ScanInfo>
      <UUID>31074066-4ECF-56E9-9F82-296DDBD68792</UUID>
      <Timezone>Asia/Ho_Chi_Minh</Timezone>
      <CPUCount>0</CPUCount>
      <CPUs/>
      

      Workaround

      Replace the attached pattern in the Assets Discovery pattern folder:

            [JSDSERVER-15518] Asset Discovery can scan Windows devices but not MacOS devices

            Zakhar Listiev made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            Zakhar Listiev made changes -
            Status Original: In Progress [ 3 ] New: Waiting for Release [ 12075 ]
            Zakhar Listiev made changes -
            Status Original: Needs Triage [ 10030 ] New: In Progress [ 3 ]
            Zakhar Listiev made changes -
            Fix Version/s New: Discovery 7.0.5 [ 109395 ]
            Zakhar Listiev made changes -
            Assignee New: Zakhar Listiev [ 11507b174037 ]
            SET Analytics Bot made changes -
            Support reference count New: 1
            Kaili Gu made changes -
            Description Original: h3. Issue Summary
            Asset Discovery can scan Windows devices but not MacOS devices

            h3. Steps to Reproduce
             # Execute [MacOSX_OS.pat|https://bitbucket.org/atlassian/discovery/src/master/Discovery/pattern/MacOSX_OS.pat]:
            {noformat}
            7/30/2024 3:56:43 PM: [Normal] Getting Host Information: Dannys-Air
            7/30/2024 3:56:43 PM: [Normal] Using pattern: MacOSX_OS.pat (v3.0.1)
            7/30/2024 3:56:43 PM: [Debug] Start getting command result from cache
            7/30/2024 3:56:43 PM: [Debug] Getting command result from cache was successful
            7/30/2024 3:56:43 PM: [Debug] Start adding command to cache
            7/30/2024 3:56:43 PM: [Debug] Adding command sw_vers | col -b result to cache was successful
            7/30/2024 3:56:43 PM: [Debug] Command:
                sw_vers
                
            7/30/2024 3:56:43 PM: [Debug] Result: ProductName: macOS
            ProductVersion: 14.0
            BuildVersion: 23A344

            7/30/2024 3:56:43 PM: [Normal] pattern executed in 0.4268375 seconds
            {noformat}

            h3. Expected Results

            Asset Discovery detects the OS as MacOS
            h3. Actual Results
            Asset Discovery detected the OS as MacOS in the log file but it didn't show up in the xml file
            {code:java}
            <ArrayOfHostInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <HostInfo>
            <ObjectHash>1910EEF89498003DCDD3B7A82717A20E</ObjectHash>
            <Hostname>Dannys-Air</Hostname>
            <FQDN>Dannys-Air.Candylio.local</FQDN>
            <SystemUpTime>0d 6h 49m</SystemUpTime>
            <Model>MacBook Air Mac14,2</Model>
            <Serialnumber>Y69JX2LP6H</Serialnumber>
            <Vendor>Apple Inc.</Vendor>
            <SystemUpTimeMinutes>409</SystemUpTimeMinutes>
            <RAM>16384</RAM>
            <ScanInfo>
            <ObjectHash>7674EC73DC96B177D21E9818BCAF59CF</ObjectHash>
            <ObjectID>9a548e34-bc6e-4bd7-8901-5ed3f855704b</ObjectID>
            <UsedCredentialID>66cdeb1d-b7f7-4fca-91a3-980d28717ef7</UsedCredentialID>
            <NetworkInterfaceInfo>
            <ObjectHash>5E8F218D691606EC2CC9D3B07C33004B</ObjectHash>
            <DeviceID>noID</DeviceID>
            <MACAddress>cc:08:fa:5c:88:af</MACAddress>
            <IP4>192.168.108.57</IP4>
            </NetworkInterfaceInfo>
            <DiscoveryID>372FD</DiscoveryID>
            <ScanSettingID>00001</ScanSettingID>
            <DiscoveryVersion>7.0.4</DiscoveryVersion>
            <ScanTime>2024-07-30_15:56</ScanTime>
            <ScanningTimeElapsed>34.367611499999995</ScanningTimeElapsed>
            </ScanInfo>
            <UUID>31074066-4ECF-56E9-9F82-296DDBD68792</UUID>
            <Timezone>Asia/Ho_Chi_Minh</Timezone>
            <CPUCount>0</CPUCount>
            <CPUs/>
            {code}

            h3. Workaround
            Replace the attached pattern in the Assets Discovery pattern folder with [^MacOSX_OS.pat]
            New: h3. Issue Summary
            Asset Discovery can scan Windows devices but not MacOS devices

            h3. Steps to Reproduce
             # Execute [MacOSX_OS.pat|https://bitbucket.org/atlassian/discovery/src/master/Discovery/pattern/MacOSX_OS.pat]:
            {noformat}
            7/30/2024 3:56:43 PM: [Normal] Getting Host Information: Dannys-Air
            7/30/2024 3:56:43 PM: [Normal] Using pattern: MacOSX_OS.pat (v3.0.1)
            7/30/2024 3:56:43 PM: [Debug] Start getting command result from cache
            7/30/2024 3:56:43 PM: [Debug] Getting command result from cache was successful
            7/30/2024 3:56:43 PM: [Debug] Start adding command to cache
            7/30/2024 3:56:43 PM: [Debug] Adding command sw_vers | col -b result to cache was successful
            7/30/2024 3:56:43 PM: [Debug] Command:
                sw_vers
                
            7/30/2024 3:56:43 PM: [Debug] Result: ProductName: macOS
            ProductVersion: 14.0
            BuildVersion: 23A344

            7/30/2024 3:56:43 PM: [Normal] pattern executed in 0.4268375 seconds
            {noformat}

            h3. Expected Results

            Asset Discovery detects the OS as MacOS
            h3. Actual Results
            Asset Discovery detected the OS as MacOS in the log file but it didn't show up in the xml file
            {code:java}
            <ArrayOfHostInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <HostInfo>
            <ObjectHash>1910EEF89498003DCDD3B7A82717A20E</ObjectHash>
            <Hostname>Dannys-Air</Hostname>
            <FQDN>Dannys-Air.Candylio.local</FQDN>
            <SystemUpTime>0d 6h 49m</SystemUpTime>
            <Model>MacBook Air Mac14,2</Model>
            <Serialnumber>Y69JX2LP6H</Serialnumber>
            <Vendor>Apple Inc.</Vendor>
            <SystemUpTimeMinutes>409</SystemUpTimeMinutes>
            <RAM>16384</RAM>
            <ScanInfo>
            <ObjectHash>7674EC73DC96B177D21E9818BCAF59CF</ObjectHash>
            <ObjectID>9a548e34-bc6e-4bd7-8901-5ed3f855704b</ObjectID>
            <UsedCredentialID>66cdeb1d-b7f7-4fca-91a3-980d28717ef7</UsedCredentialID>
            <NetworkInterfaceInfo>
            <ObjectHash>5E8F218D691606EC2CC9D3B07C33004B</ObjectHash>
            <DeviceID>noID</DeviceID>
            <MACAddress>cc:08:fa:5c:88:af</MACAddress>
            <IP4>192.168.108.57</IP4>
            </NetworkInterfaceInfo>
            <DiscoveryID>372FD</DiscoveryID>
            <ScanSettingID>00001</ScanSettingID>
            <DiscoveryVersion>7.0.4</DiscoveryVersion>
            <ScanTime>2024-07-30_15:56</ScanTime>
            <ScanningTimeElapsed>34.367611499999995</ScanningTimeElapsed>
            </ScanInfo>
            <UUID>31074066-4ECF-56E9-9F82-296DDBD68792</UUID>
            <Timezone>Asia/Ho_Chi_Minh</Timezone>
            <CPUCount>0</CPUCount>
            <CPUs/>
            {code}

            h3. Workaround
            Replace the attached pattern in the Assets Discovery pattern folder:
            * [^MacOSX_OS.pat]
            Kaili Gu made changes -
            Description Original: h3. Issue Summary
            Asset Discovery can scan Windows devices but not MacOS devices

            h3. Steps to Reproduce
             # Execute [MacOSX_OS.pat|https://bitbucket.org/atlassian/discovery/src/master/Discovery/pattern/MacOSX_OS.pat]:
            {noformat}
            7/30/2024 3:56:43 PM: [Normal] Getting Host Information: Dannys-Air
            7/30/2024 3:56:43 PM: [Normal] Using pattern: MacOSX_OS.pat (v3.0.1)
            7/30/2024 3:56:43 PM: [Debug] Start getting command result from cache
            7/30/2024 3:56:43 PM: [Debug] Getting command result from cache was successful
            7/30/2024 3:56:43 PM: [Debug] Start adding command to cache
            7/30/2024 3:56:43 PM: [Debug] Adding command sw_vers | col -b result to cache was successful
            7/30/2024 3:56:43 PM: [Debug] Command:
                sw_vers
                
            7/30/2024 3:56:43 PM: [Debug] Result: ProductName: macOS
            ProductVersion: 14.0
            BuildVersion: 23A344

            7/30/2024 3:56:43 PM: [Normal] pattern executed in 0.4268375 seconds
            {noformat}

            h3. Expected Results

            Asset Discovery detects the OS as MacOS
            h3. Actual Results
            Asset Discovery detected the OS as MacOS in the log file but it didn't show up in the xml file
            {code:java}
            <ArrayOfHostInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <HostInfo>
            <ObjectHash>1910EEF89498003DCDD3B7A82717A20E</ObjectHash>
            <Hostname>Dannys-Air</Hostname>
            <FQDN>Dannys-Air.Candylio.local</FQDN>
            <SystemUpTime>0d 6h 49m</SystemUpTime>
            <Model>MacBook Air Mac14,2</Model>
            <Serialnumber>Y69JX2LP6H</Serialnumber>
            <Vendor>Apple Inc.</Vendor>
            <SystemUpTimeMinutes>409</SystemUpTimeMinutes>
            <RAM>16384</RAM>
            <ScanInfo>
            <ObjectHash>7674EC73DC96B177D21E9818BCAF59CF</ObjectHash>
            <ObjectID>9a548e34-bc6e-4bd7-8901-5ed3f855704b</ObjectID>
            <UsedCredentialID>66cdeb1d-b7f7-4fca-91a3-980d28717ef7</UsedCredentialID>
            <NetworkInterfaceInfo>
            <ObjectHash>5E8F218D691606EC2CC9D3B07C33004B</ObjectHash>
            <DeviceID>noID</DeviceID>
            <MACAddress>cc:08:fa:5c:88:af</MACAddress>
            <IP4>192.168.108.57</IP4>
            </NetworkInterfaceInfo>
            <DiscoveryID>372FD</DiscoveryID>
            <ScanSettingID>00001</ScanSettingID>
            <DiscoveryVersion>7.0.4</DiscoveryVersion>
            <ScanTime>2024-07-30_15:56</ScanTime>
            <ScanningTimeElapsed>34.367611499999995</ScanningTimeElapsed>
            </ScanInfo>
            <UUID>31074066-4ECF-56E9-9F82-296DDBD68792</UUID>
            <Timezone>Asia/Ho_Chi_Minh</Timezone>
            <CPUCount>0</CPUCount>
            <CPUs/>
            {code}

            h3. Workaround
            Replace the attached pattern in the Assets Discovery pattern folder with
            New: h3. Issue Summary
            Asset Discovery can scan Windows devices but not MacOS devices

            h3. Steps to Reproduce
             # Execute [MacOSX_OS.pat|https://bitbucket.org/atlassian/discovery/src/master/Discovery/pattern/MacOSX_OS.pat]:
            {noformat}
            7/30/2024 3:56:43 PM: [Normal] Getting Host Information: Dannys-Air
            7/30/2024 3:56:43 PM: [Normal] Using pattern: MacOSX_OS.pat (v3.0.1)
            7/30/2024 3:56:43 PM: [Debug] Start getting command result from cache
            7/30/2024 3:56:43 PM: [Debug] Getting command result from cache was successful
            7/30/2024 3:56:43 PM: [Debug] Start adding command to cache
            7/30/2024 3:56:43 PM: [Debug] Adding command sw_vers | col -b result to cache was successful
            7/30/2024 3:56:43 PM: [Debug] Command:
                sw_vers
                
            7/30/2024 3:56:43 PM: [Debug] Result: ProductName: macOS
            ProductVersion: 14.0
            BuildVersion: 23A344

            7/30/2024 3:56:43 PM: [Normal] pattern executed in 0.4268375 seconds
            {noformat}

            h3. Expected Results

            Asset Discovery detects the OS as MacOS
            h3. Actual Results
            Asset Discovery detected the OS as MacOS in the log file but it didn't show up in the xml file
            {code:java}
            <ArrayOfHostInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <HostInfo>
            <ObjectHash>1910EEF89498003DCDD3B7A82717A20E</ObjectHash>
            <Hostname>Dannys-Air</Hostname>
            <FQDN>Dannys-Air.Candylio.local</FQDN>
            <SystemUpTime>0d 6h 49m</SystemUpTime>
            <Model>MacBook Air Mac14,2</Model>
            <Serialnumber>Y69JX2LP6H</Serialnumber>
            <Vendor>Apple Inc.</Vendor>
            <SystemUpTimeMinutes>409</SystemUpTimeMinutes>
            <RAM>16384</RAM>
            <ScanInfo>
            <ObjectHash>7674EC73DC96B177D21E9818BCAF59CF</ObjectHash>
            <ObjectID>9a548e34-bc6e-4bd7-8901-5ed3f855704b</ObjectID>
            <UsedCredentialID>66cdeb1d-b7f7-4fca-91a3-980d28717ef7</UsedCredentialID>
            <NetworkInterfaceInfo>
            <ObjectHash>5E8F218D691606EC2CC9D3B07C33004B</ObjectHash>
            <DeviceID>noID</DeviceID>
            <MACAddress>cc:08:fa:5c:88:af</MACAddress>
            <IP4>192.168.108.57</IP4>
            </NetworkInterfaceInfo>
            <DiscoveryID>372FD</DiscoveryID>
            <ScanSettingID>00001</ScanSettingID>
            <DiscoveryVersion>7.0.4</DiscoveryVersion>
            <ScanTime>2024-07-30_15:56</ScanTime>
            <ScanningTimeElapsed>34.367611499999995</ScanningTimeElapsed>
            </ScanInfo>
            <UUID>31074066-4ECF-56E9-9F82-296DDBD68792</UUID>
            <Timezone>Asia/Ho_Chi_Minh</Timezone>
            <CPUCount>0</CPUCount>
            <CPUs/>
            {code}

            h3. Workaround
            Replace the attached pattern in the Assets Discovery pattern folder with [^MacOSX_OS.pat]
            Kaili Gu made changes -
            Attachment New: MacOSX_OS.pat [ 462421 ]
            Kaili Gu made changes -
            Description Original: h3. Issue Summary
            h3. Steps to Reproduce
             # Step 1
             # Step 2

            h3. Expected Results
            h3. Actual Results

            The below exception is thrown in the xxxxxxx.log file:
            {noformat}
            ...
            {noformat}
            h3. Workaround

            Required, if there is no workaround please state:
            Currently there is no known workaround for this behavior. A workaround will be added here when available
            h3. 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|_Example: 9.14.2_|_(Yes / No)_|
            |Most Recent Bug-Fix Release| | |
            |Previous Major Release| | |
            |Most Recent LTS| | |
            |Previous Supported LTS| | |
            |_Other Versions.._| | |
            |_(Add rows as needed)_| | |
            New: h3. Issue Summary
            Asset Discovery can scan Windows devices but not MacOS devices

            h3. Steps to Reproduce
             # Execute [MacOSX_OS.pat|https://bitbucket.org/atlassian/discovery/src/master/Discovery/pattern/MacOSX_OS.pat]:
            {noformat}
            7/30/2024 3:56:43 PM: [Normal] Getting Host Information: Dannys-Air
            7/30/2024 3:56:43 PM: [Normal] Using pattern: MacOSX_OS.pat (v3.0.1)
            7/30/2024 3:56:43 PM: [Debug] Start getting command result from cache
            7/30/2024 3:56:43 PM: [Debug] Getting command result from cache was successful
            7/30/2024 3:56:43 PM: [Debug] Start adding command to cache
            7/30/2024 3:56:43 PM: [Debug] Adding command sw_vers | col -b result to cache was successful
            7/30/2024 3:56:43 PM: [Debug] Command:
                sw_vers
                
            7/30/2024 3:56:43 PM: [Debug] Result: ProductName: macOS
            ProductVersion: 14.0
            BuildVersion: 23A344

            7/30/2024 3:56:43 PM: [Normal] pattern executed in 0.4268375 seconds
            {noformat}

            h3. Expected Results

            Asset Discovery detects the OS as MacOS
            h3. Actual Results
            Asset Discovery detected the OS as MacOS in the log file but it didn't show up in the xml file
            {code:java}
            <ArrayOfHostInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <HostInfo>
            <ObjectHash>1910EEF89498003DCDD3B7A82717A20E</ObjectHash>
            <Hostname>Dannys-Air</Hostname>
            <FQDN>Dannys-Air.Candylio.local</FQDN>
            <SystemUpTime>0d 6h 49m</SystemUpTime>
            <Model>MacBook Air Mac14,2</Model>
            <Serialnumber>Y69JX2LP6H</Serialnumber>
            <Vendor>Apple Inc.</Vendor>
            <SystemUpTimeMinutes>409</SystemUpTimeMinutes>
            <RAM>16384</RAM>
            <ScanInfo>
            <ObjectHash>7674EC73DC96B177D21E9818BCAF59CF</ObjectHash>
            <ObjectID>9a548e34-bc6e-4bd7-8901-5ed3f855704b</ObjectID>
            <UsedCredentialID>66cdeb1d-b7f7-4fca-91a3-980d28717ef7</UsedCredentialID>
            <NetworkInterfaceInfo>
            <ObjectHash>5E8F218D691606EC2CC9D3B07C33004B</ObjectHash>
            <DeviceID>noID</DeviceID>
            <MACAddress>cc:08:fa:5c:88:af</MACAddress>
            <IP4>192.168.108.57</IP4>
            </NetworkInterfaceInfo>
            <DiscoveryID>372FD</DiscoveryID>
            <ScanSettingID>00001</ScanSettingID>
            <DiscoveryVersion>7.0.4</DiscoveryVersion>
            <ScanTime>2024-07-30_15:56</ScanTime>
            <ScanningTimeElapsed>34.367611499999995</ScanningTimeElapsed>
            </ScanInfo>
            <UUID>31074066-4ECF-56E9-9F82-296DDBD68792</UUID>
            <Timezone>Asia/Ho_Chi_Minh</Timezone>
            <CPUCount>0</CPUCount>
            <CPUs/>
            {code}

            h3. Workaround
            Replace the attached pattern in the Assets Discovery pattern folder with

              11507b174037 Zakhar Listiev
              13e61c67b0d4 Kaili Gu
              Affected customers:
              0 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: