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

Conan search and version ranges are broken for copied packages

    XMLWordPrintable

    Details

    • Severity:
      Critical
    • Release Notes:
      Yes

      Description

      Conan packages that are created with an Artifactory "copy" operation to another channel are not visible via version ranges or search.

      To reproduce use Conan > 1.30.1:

      $ conan new hello/0.1
      $ conan create . user/testing
      $ conan upload hello/0.1@user/testing -r=artifactory --all --confirm
      In Artifactory go to the package, do "copy", custom path change testing --> stable
      $ conan remove "*" -f
      $ conan search "hello/*@user/stable" -r=artifactory
      will return nothing => Error
      $ conan install "hello/[>0.0]@user/stable" -r=artifactory
      will fail to install
      Also, searching directly without * pattern:
      $ conan search "hello/0.1@user/stable" -r=artifactory
      Will say that There are no packages for reference 'hello/0.1@user/stable', but package recipe found. which is not true because the packages were copied and appear in the Artifactory tree.

      This doesn't happen if the package is uploaded, instead of copied.

      The same problem happens if the package is copied to a different Artifactory repo, not the current one.

      Affects all Artifactory versions, at least since 6.10.

        Attachments

          Activity

            People

            Assignee:
            volodymyrm Volodymyr Marchev [EXT]
            Reporter:
            diegor Diego Rodriguez-Losada Gonzalez
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Sync Status

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