Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-31305

The "lastDownloaded" field is missing from component/asset REST API's when running under PostgreSQL

    Details

    • Story Points:
      3
    • Sprint:
      NXRM MadMax Sprint 31, NXRM Immortals Sprint 29, NXRM Immortals Sprint 30
    • Notability:
      3
    • InvestmentLayer:
      support-escalated
    • Aha Concept:
      non-concept

      Description

      When running the component or asset REST API's the "lastDownloaded" field is not returned in the REST API response.

       Reproduce case is simple, query components or assets for a repository when Nexus Repo is running with PostgreSQL:

      curl -X 'GET' \
        'http://localhost:8081/service/rest/v1/assets?repository=raw' \
        -H 'accept: application/json'

      You will not see "lastDownloaded" in the response.

      Running the same API's under OrientDb shows "lastDownloaded", so this is a regression. I've checked, and the data is present in the database in the "last_downloaded" column of asset tables (e.g. docker_asset).

      Expected: Fix this, and also verify that all fields present in OrientDb REST API responses for component/asset REST API's are also present when running under PostgreSQL.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              iudovika Igor Udovika
              Reporter:
              rseddon Rich Seddon
              Last Updated By:
              Hajime Osako Hajime Osako
              Team:
              NXRM - Mad Max
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title