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

Inconsistent behaviour when cancelling a Nuget resolution with afterRemoteDownload

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.10.0
    • Component/s: NuGet, Plugins
    • Labels:
      None

      Description

      Throwing a cancelException to cancel a resolution of a nuget package, causes an internal server error which is propagated to the client.

      E.g -

      download{
      
      afterRemoteDownload { Request request, RepoPath repoPath ->
                  throw new org.artifactory.exception.CancelException("Request has been added", 421);
          }
      }
      

      Will return a 500 rather than a 421 to the Nuget client upon a 'nuget install'.
      This is inconsistent with "regular" downloads, where the cancelException response is propagated properly to the client.

      Stack trace attached.

        Attachments

          Activity

            People

            • Assignee:
              shayb Shay Bagants
              Reporter:
              uriahl Uriah Levy
              Assigned QA:
              Gal Raif
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: