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

POST /api/chef/ returns 404 instead of 403 error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 6.8.7
    • Fix Version/s: None
    • Component/s: Chef
    • Labels:
    • Severity:
      Medium
    • Requirement Status:

      UNCOVERED

      Description

      When uploading a cookbook to Artifactory (without 'Delete/Overwrite' permissions) for a version that already exists will result in "404 Not Found" error:

      artifactory.log:

      20190317115512|8|REQUEST|82.81.195.5|user|POST|/api/chef/chef/api/v1/cookbooks/test.tgz|HTTP/1.1|404|2798

      $ knife artifactory share test
      WARN: knife cookbook site share has been deprecated in favor of knife supermarket share. In Chef 16 (April 2020) this will result in an error!
      Generating metadata for test from /var/folders/rb/sc2wmy3d1bl5byrmt2glgfwm0000gn/T/chef-test-build20190317-12893-1fhl8gn/test/metadata.rb
      Making tarball test.tgz
      Upload complete
      
      $ knife artifactory share test
      WARN: knife cookbook site share has been deprecated in favor of knife supermarket share. In Chef 16 (April 2020) this will result in an error!
      Generating metadata for test from /var/folders/rb/sc2wmy3d1bl5byrmt2glgfwm0000gn/T/chef-test-build20190317-12980-1bh63ax/test/metadata.rb
      Making tarball test.tgz
      ERROR: Error uploading cookbook test to Supermarket: 404 "Not Found". Increase log verbosity (-VV) for more information.
      

        Attachments

          Forms

            Activity

                People

                Assignee:
                Unassigned
                Reporter:
                valeriyp Valeriy Petrov
                Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    PagerDuty