Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-20546

artifacts directory path should be same through github-remote repo

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 6.14.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Consider these two URLs:
       
      From Artifactory
      (1) https://david.vm:8081/artifactory/api/vcs/downloadRelease/github-remote/ktossell/libuvc/77b43d618e71698f52f7beb88c4b99b5f018259b?ext=tar.gz
       
      From github
      (2) https://github.com/ktossell/libuvc/archive/77b43d618e71698f52f7beb88c4b99b5f018259b.tar.gz

      They should be exactly the same file (same checksum). 

      However, Downloading the files locally, I see that the directory names end up differently:

      $ tar tvfz _artifactory.tgz | head
      drwxrwxr-x root/root         0 2017-10-01 20:31 libuvc-libuvc-77b43d6/
      rw-rw-r- root/root      5322 2017-10-01 20:31 libuvc-libuvc-77b43d6/CMakeLists.txt
      rw-rw-r- root/root      1522 2017-10-01 20:31 libuvc-libuvc-77b43d6/LICENSE.txt
      rw-rw-r- root/root      1279 2017-10-01 20:31 libuvc-libuvc-77b43d6/README.md
      drwxrwxr-x root/root         0 2017-10-01 20:31 libuvc-libuvc-77b43d6/cameras/
      rw-rw-r- root/root      8874 2017-10-01 20:31 libuvc-libuvc-77b43d6/cameras/isight_imac.txt
      rw-rw-r- root/root      8874 2017-10-01 20:31 libuvc-libuvc-77b43d6/cameras/isight_macbook.txt
      rw-rw-r- root/root     77622 2017-10-01 20:31 libuvc-libuvc-77b43d6/cameras/logitech_hd_pro_920.txt
      rw-rw-r- root/root     31029 2017-10-01 20:31 libuvc-libuvc-77b43d6/cameras/ms_lifecam_show.txt
      rw-rw-r- root/root     64478 2017-10-01 20:31 libuvc-libuvc-77b43d6/cameras/quickcampro9000.txt

      $ tar tvfz _github.tgz | head
      drwxrwxr-x root/root         0 2017-10-01 20:31 libuvc-77b43d618e71698f52f7beb88c4b99b5f018259b/
      rw-rw-r- root/root      5322 2017-10-01 20:31 libuvc-77b43d618e71698f52f7beb88c4b99b5f018259b/CMakeLists.txt
      rw-rw-r- root/root      1522 2017-10-01 20:31 libuvc-77b43d618e71698f52f7beb88c4b99b5f018259b/LICENSE.txt
      rw-rw-r- root/root      1279 2017-10-01 20:31 libuvc-77b43d618e71698f52f7beb88c4b99b5f018259b/README.md
      drwxrwxr-x root/root         0 2017-10-01 20:31 libuvc-77b43d618e71698f52f7beb88c4b99b5f018259b/cameras/
      rw-rw-r- root/root      8874 2017-10-01 20:31 libuvc-77b43d618e71698f52f7beb88c4b99b5f018259b/cameras/isight_imac.txt
      rw-rw-r- root/root      8874 2017-10-01 20:31 libuvc-77b43d618e71698f52f7beb88c4b99b5f018259b/cameras/isight_macbook.txt
      rw-rw-r- root/root     77622 2017-10-01 20:31 libuvc-77b43d618e71698f52f7beb88c4b99b5f018259b/cameras/logitech_hd_pro_920.txt
      rw-rw-r- root/root     31029 2017-10-01 20:31 libuvc-77b43d618e71698f52f7beb88c4b99b5f018259b/cameras/ms_lifecam_show.txt
      rw-rw-r- root/root     64478 2017-10-01 20:31 libuvc-77b43d618e71698f52f7beb88c4b99b5f018259b/cameras/quickcampro9000.txt

      For some reason, artifactory is using the short git hash in the directory name, instead of the full one.
       
      Steps to reproduce
      1. Package type : VCS
      2. Repository name : github-remote
      3. URL : https://github.com
      4. Download a file through Artifactory.

      curl -uadmin:password 'http://mill.jfrog.info:12312/artifactory/api/vcs/downloadRelease/github-remote/ktossell/libuvc/77b43d618e71698f52f7beb88c4b99b5f018259b?ext=tar.gz' -O
       
      tar tvfz 77b43d618e71698f52f7beb88c4b99b5f018259b?ext=tar.gz | head

      drwxrwxr-x  0 root   root        0 Oct  1  2017 libuvc-libuvc-77b43d6/

      rw-rw-r-  0 root   root     5322 Oct  1  2017 libuvc-libuvc-77b43d6/CMakeLists.txt

      rw-rw-r-  0 root   root     1522 Oct  1  2017 libuvc-libuvc-77b43d6/LICENSE.txt

      rw-rw-r-  0 root   root     1279 Oct  1  2017 libuvc-libuvc-77b43d6/README.md

      drwxrwxr-x  0 root   root        0 Oct  1  2017 libuvc-libuvc-77b43d6/cameras/

      rw-rw-r-  0 root   root     8874 Oct  1  2017 libuvc-libuvc-77b43d6/cameras/isight_imac.txt

      rw-rw-r-  0 root   root     8874 Oct  1  2017 libuvc-libuvc-77b43d6/cameras/isight_macbook.txt

      rw-rw-r-  0 root   root    77622 Oct  1  2017 libuvc-libuvc-77b43d6/cameras/logitech_hd_pro_920.txt

      rw-rw-r-  0 root   root    31029 Oct  1  2017 libuvc-libuvc-77b43d6/cameras/ms_lifecam_show.txt

      rw-rw-r-  0 root   root    64478 Oct  1  2017 libuvc-libuvc-77b43d6/cameras/quickcampro9000.txt

       

       

      Is this intentional behavior because of too long of directory path from github?

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              davids David Shin
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: