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

Extracting Assets Discovery .zip file on Linux doesn't respect directory structure

      Issue Summary

      When extracting the Assets Discovery zip file on a Linux system, the directory structure of the .zip file is not respected and the directory structure is instead inserted into the file names and not created in the correct folders.

      This is reproducible on Data Center: Yes

      Steps to Reproduce

      1. Download the Assets Discovery .zip file into a directory in a Linux machine
      2. Install an unzip tool like 7Zip
      3. Try to extract the zip file
        For 7Zip, use
        7z x assets-discovery<version>.zip
        

        Replacing the version you are using

      Expected Results

      The .zip archive is extracted with the correct directory structure and the files in the correct directories.

      Actual Results

      The files are extracted in a "flat file" format where any files which were supposed to be in directories will instead have the directory names added to the beginning of the file name itself and not in physical directories in the structure.

      Example:

      'Discovery\pattern\ESXi_HostSystems.pat'
      'Discovery\pattern\ESXi_VirtualMachines.pat'
      'Discovery\pattern\IBM_DataPower_Hostinfo_ShowMemory.pat'
      'Discovery\pattern\IBM_DataPower_Hostinfo_ShowNetwork-Interface.pat'
      'Discovery\pattern\IBM_DataPower_Hostinfo_ShowSystem.pat'
      'Discovery\pattern\IBM_DataPower_Hostinfo_ShowVersion.pat'
      'Discovery\pattern\Linux_ApplicationServices.pat'
      

      No log files are applicable here.

      Note: this issue does not occur when extracting the files on Windows.

      This is important as we make Discovery available for Linux users to run through Mono. But this issue might make the extraction and setup process unnecessarily problematic.

      Workaround

      If you encounter this problem, extract the files on a Windows machine, and then copy them over in the correct folder structure.

          Form Name

            [JSDSERVER-15045] Extracting Assets Discovery .zip file on Linux doesn't respect directory structure

              11507b174037 Zakhar Listiev
              c52cfc079f65 Allan O'Rourke
              Affected customers:
              2 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: