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

Improve robustness and logging for Null Pointer handling in Docker.GC task

Details

    • 3
    • NXRM Optimus To Be Groomed
    • 2
    • non-concept
    • 2

    Description

      An NPE can occur within the Docker.GC task at https://github.com/sonatype/nexus-internal/blob/main/private/plugins/nexus-repository-docker/src/main/java/org/sonatype/nexus/repository/docker/internal/datastore/recipe/DockerGCFacetImpl.java#L230

      This can happen when the docker_assets.attributes DB field for a given Docker asset is empty. 

      Expected:

      The possibility of an NPE occurring should be handled and if one does occur, for the sake of troubleshooting, appropriate logging (ERROR) should be added indicating the ID/details of the affected asset.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            hardeepn Hardeep Nagra
            Tahir Awan Tahir Awan
            NXRM - Optimus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              tigCommentSecurity.panel-title