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

Better error message on PUT to non-existing repository

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Artifactory
    • Labels:
      None
    • Environment:

      Artifactory v7.35.2 rev 73502900

    • Location:
      External

      Description

      Problem

      Users uploading files to a misspelled URI where the repository path is referencing a non-existing repository is greeted with a 405 response with an empty message.

      This might make it hard to know that the URI is misspelled and instead hints at the request method being the part that is incorrect.

      {
        "errors" : [ {
          "status" : 405,
          "message" : ""
        } ]
      }

      Improvement

      Artifactory should be able to figure out that the repository does not exist and let the user know this. I would suggest that Artifactory responds with a populated message where it lets the user know that the URI is in reference of a non-existing repository.

      {
        "errors" : [ {
          "status" : 405,
          "message" : "Repository '<repo>' does not exist."
        } ]
      }

      I'm OK with keeping the 405 to not change the behaviour. But since the URI is a reference to non-existing repository I think that 404 is the more correct status code.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            stefanga Stefan Gangefors
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Sync Status

                Connection: RTFACT Sync
                RTMID-27124 -
                SYNCHRONIZED
                • Last Sync Date: