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

Conan search fails for packages with "=" symbol in the values of settings or options

    XMLWordPrintable

    Details

    • Severity:
      High
    • Release Notes:
      No

      Description

      Steps to reproduce:

      1. Modify ~/.conan/settings.yml file using this value as toolset:

      ...
      compiler:     ...
          Visual Studio:         ...
              toolset: ["v141=version"]

       2. Create a new package using the conanfile.py and the profile below:

      $ conan create conanfile.py pkg/1.0@user/channel --profile profile

      3. Verify that the package with the toolset value has been created in the local cache:

      $ conan search pkg/1.0@user/channel
      Existing packages for recipe kk/1.0@us/ch:
      
      Package_ID: fe1d1b9325d5ae48bf8aefc1b92db33846e8a7e1
      [options]
      shared: False
      [settings]
      arch: x86_64
      build_type: Release
      compiler: Visual Studio
      compiler.runtime: MD
      compiler.toolset: v141=version
      compiler.version: 15
      os: Windows
      Outdated from recipe: False

      4. Add the Artifactory remote:

      $ conan remote add artifactory_repo http://localhost:8081/artifactory/api/conan/artifactory_repo

      5. Upload the package created:

      $ conan upload pkg/1.0@us/ch --all --remote artifactory_repo

      6. Search for packages in the remote

      $conan search pkg/1.0@us/ch --remote artifactory_repo
      
      Existing packages for recipe kk/1.0@us/ch:
      Existing recipe in remote 'artifactory_repo':
      There are no packages for reference 'kk/1.0@us/ch', but package recipe found.
      

       There should be a package listed the same way when the search was done locally (step 3).

       

      Resources:

      conanfile.py

      from conans import ConanFile
      class MyConan(ConanFile):
          settings = "os", "compiler"
      

       

      profile 

      [settings]
      arch=x86_64
      build_type=Release
      compiler=Visual Studio
      compiler.runtime=MD
      compiler.toolset=v141=version
      compiler.version=15
      os=Windows
      

       

      Additional information: https://github.com/conan-io/conan/issues/5642

      Also reported in this issue: https://github.com/conan-io/conan/issues/7346 relating to the same problem but using options instead of settings.

      For Artifactory 7.5 and 7.6 searching the package with "=" in the conaninfo.txt outputs the following error instead the message "There are no packages for reference...":

      ERROR: 500: org.jfrog.repomd.conan.exceptions.ConanInfoException: Invalid conaninfo.txt format: flags=a=b. [Remote: artifactory]
      

        Attachments

          Activity

            People

            Assignee:
            volodymyrs Volodymyr Shulga [EXT]
            Reporter:
            danielm Daniel Manzaneque
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Sync Status

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