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

Promotion NPM build is not working without override permission

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The promotion is failing in this specific scenario, in case you one version in the release repository that not found in the dev repository and another version in the dev repository that is not found in the release repository.

      Here are steps to reproduce the issue:

      1. Create two NPM repositories, npm-release and npm-dev
      2. Create test user and assign to him deploy permission for the above repositories and delete permission for the builds
      3. Deploy NPM package to the release repository, for example:
        1. $ jfrog rt npm-publish npm-release --build-name=npm-another-build --build-number=1
        2. Use this package.json for example:
          {
          "name": "npm-example",
          "version": "1.0.0",
          "scripts": { "start": "node app" }

          ,
          "dependencies":

          { "send": "^0.16.2" }

          ,
          "devDependencies":

          { "debug": "^4.1.1" }

          }

      4. Edit the version in the above Json file to 1.1.0 and publish it to the dev repository, use this command:
        $ jfrog rt npm-publish npm-dev --build-name=npm-build --build-number=1
      5. Deploy build-info, use this command:
        $ jfrog rt bp npm-build 1
      6. Promote the 1.1.0 version from the dev to the release repo, use the following REST:
        $ curl -utest:password -XPOST -H"Content-Type: application/json" -d'{"sourceRepo":"npm-dev","targetRepo":"npm-release","copy":true}' "http://localhost:8081/artifactory/api/build/promote/npm-build/1"

      The error in the log:

      2019-04-01 14:37:28,272 [http-nio-8081-exec-7] [ERROR] (o.a.r.s.m.BaseRepoPathMover:457) - User doesn't have permissions to override 'npm-release:npm-example/-'. Needs delete permissions.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              Mohamadm Mohamad Masarwa (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: