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

using GAVC search results in incorrect results if the group ID has 4 components or more

    Details

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

      Description

      Trying to search:

      $ curl "localhost:8081/artifactory/api/search/gavc?a=two&repos=mvn-release-local"
      {
       "results" : [ {
         "uri" : "http://localhost:8081/artifactory/api/storage/mvn-release-local/com/mycompany/app/two/my-app/2.0/my-app-2.0.pom"
       }, {
         "uri" : "http://localhost:8081/artifactory/api/storage/mvn-release-local/com/mycompany/app/two/my-app/2.0/my-app-2.0.jar"
       } ]
      

      My module ID: com.mycompany.app.two:my-app:2.0

      pom:

      <modelVersion>4.0.0</modelVersion>
      	<groupId>com.mycompany.app.two</groupId>
      	<artifactId>my-app</artifactId>
      	<packaging>jar</packaging>
      	<version>2.0</version>
      	<name>my-app</name>
      	<url>http://maven.apache.org</url>
      

      It looks like this is happening because Artifactory is treating the 4th folder as the artifactID

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                loreny Loren Yeung
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: