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

Search API returns null for "lastDownloaded" field

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.38.0, 3.39.0, 3.40.0
    • Fix Version/s: 3.44.0
    • Component/s: REST, Search
    • Story Points:
      3
    • Sprint:
      NXRM Optimus Sprint 47
    • Notability:
      3

      Description

      At least since 3.38.0, the "lastDownloaded" attribute returned by the Search REST API is returning a null value.

      The same attribute when viewed in the UI, or via the Assets or Components REST API is populated with a timestamp value.

      To reproduce, upload a component to a repo then call the Search or Search Assets API and observe the "lastDownloaded" value is null.

      Note: "fileSize" field is still 0, which was mentioned in JIRA: https://issues.sonatype.org/browse/NEXUS-31411

      Expected:

      When the Search API is called, the "lastDownloaded" field should be populated with the asset's correct last modified timestamp.

      This is a regression as in previous versions this field was correctly populated. 

       

      Note: "lastDownloaded" can be null if asset is never downloaded

        Attachments

        1. API.png
          API.png
          439 kB
        2. UI.png
          UI.png
          178 kB

          Issue Links

            Activity

              People

              Assignee:
              tahir.awan Tahir Awan
              Reporter:
              dqiu Daolong Qiu
              Last Updated By:
              Tahir Awan Tahir Awan
              Team:
              NXRM - Optimus
              Owner:
              Tahir Awan Tahir Awan
              Votes:
              4 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title