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

Custom Layout requires wildcard in the GAVC REST search

    Details

    • Type: Change Request
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 5.10.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Custom Layout  requires wildcard in the GAVC REST search

       

      Steps to reproduce

      1.create customized layout (adding submodule)

      Artifact Path Pattern: [orgPath]/[module](/[submodule<[a-zA-Z0-9]+>])/[baseRev](/[folderItegRev])/[module][-baseRev-]([fileItegRev])(-[classifier]).[ext]

       

      Snippet from config descriptor

      <repoLayout>

                  <name>maven-test1</name>

                  <artifactPathPattern>[orgPath]/[module](/[submodule<[a-zA-Z0-9]+>])/[baseRev](/[folderItegRev])/[module][baseRev]([fileItegRev])(-[classifier]).[ext]</artifactPathPattern>

                  <distinctiveDescriptorPathPattern>false</distinctiveDescriptorPathPattern>

                  <descriptorPathPattern>[orgPath]/[module](/[os_version<[a-zA-Z0-9._-]>])(/[submodule<[a-zA-Z0-9]>])/[baseRev](/[folderItegRev])/[module][baseRev]([fileItegRev])(-[classifier]).[ext].pom</descriptorPathPattern>

                  <folderIntegrationRevisionRegExp>SNAPSHOT</folderIntegrationRevisionRegExp>

                  <fileIntegrationRevisionRegExp>SNAPSHOT|(??:[0-9]

      {8}

      .[0-9]

      {6}

      )-(?:[0-9]+))</fileIntegrationRevisionRegExp>

              </repoLayout>

       

      2. create a repository

      Repo key : maven-test

      Repo Layout : maven-test1

       

      3.  upload a file via UI

      Target repository : maven-test

      check mark for Deploy According To Layout

      orgPath : org/test/com

      module : artfact

      submodule:  sub

      baseRev : 1.0

      folderItegRev : 

      fileItegRev : SNAPSHOT

      ext : jar

       

      4. GAVC search REST API only works when * added with g and v options

          (Note : package search (maven GAVC) via Admin->UI is working properly)

      curl -uadmin:password "http://mill.jfrog.info:34720/artifactory/api/search/gavc?a=artfact&repos=maven-test&g=org.test.com&v=1.0"

      {   "results" : [ ] }

      curl -uadmin:password "http://mill.jfrog.info:34720/artifactory/api/search/gavc?a=artfact&repos=maven-test&g=org.test.com&v=1.0"

      {   "results" : [ ] }

      curl -uadmin:password "http://mill.jfrog.info:34720/artifactory/api/search/gavc?a=artfact&repos=maven-test&g=org.test.com*&v=*1.0*"

      {

        "results" : [

      {     "uri" : "http://mill.jfrog.info:34720/artifactory/api/storage/maven-test/org/test/com/artfact/sub/1.0/artfact-1.0-SNAPSHOT.jar"   }

      ]

      }

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              davids David Shin
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: