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

Search in Conan with reference against a local repository and a remote one returns different error (if reference is not found)

    XMLWordPrintable

    Details

      Description

      Searching for a reference that doesn't exist, Artifactory returns a different error for a local repository and for a remote one.

      Given a center (remote repository) and a local (local repository), the output of the Conan client is the following:

      ⇒  conan search non-existing/version@user/channel -r local 
      ERROR: Recipe not found: user/non-existing/version/channel. [Remote: local]
      
      ⇒  conan search non-existing/version@user/channel -r center
      ERROR: 404: Not Found. [Remote: center]
      

      Having a look at the response from Artifactory:

      1. From the local repository the response is:
        Recipe not found: user/non-existing/version/channel
        
      1. From the remote repo the response is:
        {
          "errors" : [ {
            "status" : 404,
            "message" : "Not Found"
          } ]
        }
        

      Expected behavior: both should return the Recipe not found... message.

        Attachments

          Activity

              People

              Assignee:
              volodymyrs Volodymyr Shulga [EXT] [X] (Inactive)
              Reporter:
              javierg Javier Garcia Sogo [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: