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

maven pom file metadata does not appear as a part of metadata service APIs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: 4 - Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Severity:
      Medium

      Description

      I deployed a maven package with the below pom file.
      I have licenses, developers section added.

      <name>vcsurl</name>
      <description>A demo for deployment to the Central Repository via maven</description>
      <url>
      http://github.com/hemanthsridhar/maven-demo
      </url>
      <licenses>
      <license>
          <name>The Apache Software License, Version 2.0</name>
          <url>
              http://www.apache.org/licenses/LICENSE-2.0.txt
          </url>
      </license>
      </licenses>
      <developers>
      <developer>
          <name>Hemanth</name>
          <email>hemanthsridhar92@gmail.com</email>
      </developer>
      </developers>
      <scm>
      <connection>scm:git:git://github.com/hemanthsridhar/maven-demo.git</connection>
      <developerConnection>scm:git:ssh://github.com:hemanthsridhar/maven-demo.git</developerConnection>
      <url>
          http://github.com/hemanthsridhar/maven-demo/tree/master
      </url>
      </scm>
      

       
      Using the metadata API,
      when I do a GET request to get package info / version info, according to the swagger documentation licenses and developer section must be present in the response.

      BUT
      I do not see anything details as such in my response.

       

      Current response: 

      {
       "name": "1.0.0",
       "pkgid": "gav://org.apache.commons:commons-crypto",
       "ordinal": 100000000999900,
       "created": "2020-08-02T01:05:33.328Z",
       "user_properties": [
       {
       "name": "artifactory.internal.etag",
       "value": "29a1959decdbf3db9a32ffdb4007e093d10748de25d3cb23fe4453b4f51dd02a"
       }
       ],
       "stats": {},
       "files": [
       {
       "name": "commons-crypto-1.0.0.pom",
       "sha256": "29a1959decdbf3db9a32ffdb4007e093d10748de25d3cb23fe4453b4f51dd02a",
       "sha1": "bd06a9cbf6fa5e8b897b848cced17847066d588e",
       "md5": "54df747c52201907fcbdbdf3b3c419eb",
       "lead": true,
       "length": 21838,
       "mime_type": "application/x-maven-pom+xml"
       },
       {
       "name": "commons-crypto-1.0.0.jar",
       "sha256": "0043d8d74d8df632c57f938828e6f6efd555e293a9079dcdf59eab8e40107491",
       "sha1": "7938f66b01f62f03ef8af8a64401e85e45d51c5d",
       "md5": "981c95e38457b10d429090496b96f2d6",
       "length": 134595
       },
       {
       "name": "commons-crypto-1.0.0-sources.jar",
       "sha256": "df8fb1ecc40152259b1c4265c2f8696806514fbcd3be076425e7cc665b936db6",
       "sha1": "14b5b02e35691d3f0932b14b10e606abd641a371",
       "md5": "b388afe0ce7a16b9c822964ca2e1635b",
       "length": 94099
       },
       {
       "name": "commons-crypto-1.0.0-test-sources.jar",
       "sha256": "f8e63ad0a55053b739172bcfbf40d2c545423254b17b37e7b85a7194f83b129e",
       "sha1": "8382691a537a566342f73a4097c9b1fc976c3fa0",
       "md5": "5b614cf59825a180c336703dab6cfa4b",
       "length": 63091
       }
       ],
       "repos": [
       {
       "name": "jcenter-remote-cache",
       "url": "https://jcenter.jfrog.io/jcenter-remote-cache/com/github/hemanthsridhar/testng-ext-dataprovider/1.0/testng-ext-dataprovider-1.0.pom",
       "type": "remote",
       "lead_file_path": "org/apache/commons/commons-crypto/1.0.0/commons-crypto-1.0.0.pom"
       },
       {
       "name": "jcenter",
       "url": "https://jcenter.jfrog.io/jcenter/com/github/hemanthsridhar/testng-ext-dataprovider/1.0/testng-ext-dataprovider-1.0.pom",
       "type": "local",
       "lead_file_path": "org/apache/commons/commons-crypto/1.0.0/commons-crypto-1.0.0.pom"
       }
       ],
       "size": 313623,
       "modified": "2016-07-26T01:20:13Z"
      }
        

      Swagger documentation contract
       
      /packages/{pkgid}/versions/{name}
       

      {
        "pkgid": "string",
        "name": "string",
        "created": 0,
        "ordinal": 0,
        "licenses": [
          {
            "name": "string",
            "description": "string",
            "url": "string",
            "modified": 0,
            "source": "string"
          }
        ],
        "files": [
          {
            "name": "string",
            "md5": "string",
            "sha1": "string",
            "sha256": "string",
            "lead": true,
            "length": 0,
            "arch": "string",
            "dist": "string",
            "mime_type": "string",
            "qualifiers": [
              {
                "name": "string",
                "value": "string"
              }
            ]
          }
        ],
        "repos": [
          {
            "name": "string",
            "url": "string",
            "type": "string",
            "lead_file_path": "string"
          }
        ],
        "tags": [
          "string"
        ],
        "stats": {
        },
        "vulnerabilities": {
          "high": 0,
          "medium": 0,
          "low": 0,
          "info": 0,
          "unknown": 0,
          "skipped": 0
        },
        "qualifiers": [
          {
            "name": "string",
            "value": "string"
          }
        ],
        "user_properties": [
          {
            "name": "string",
            "value": "string"
          }
        ],
        "contributors": [
          {
            "name": "string",
            "type": "string",
            "email": "string",
            "url": "string"
          }
        ],
        "description": "string"
      }
      
      

        Attachments

          Activity

            People

            Assignee:
            tamirh Tamir Hadad
            Reporter:
            hemanthb Hemanth BS
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Sync Status

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