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

Docker search can show too much from Nexus hosted/groups

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-m6
    • Fix Version/s: 3.0.0-m6
    • Component/s: Docker, Search
    • Labels:
      None
    • Environment:
      (MacOSX)
    • Story Points:
      0.5
    • Sprint:
      Sprint 55

      Description

      I just ran a search "docker search 192.168.1.4:18075/jprjr/docker-tinyfs" with the following results:

      bash-3.2$ docker search 192.168.1.4:18075/jprjr/docker-tinyfs
      NAME                                           DESCRIPTION                                   STARS     OFFICIAL   AUTOMATED
      jprjr/docker-tinyfs                            A small image (5.5MB) made using buildroot.   4                    [OK]
      192.168.1.4:18075/jprjr/docker-tinyfs:latest                                                 0                    
      192.168.1.4:18075/library/hello-world:latest                                                 0                    
      192.168.1.4:18075/library/ubuntu:latest                                                      0                    
      192.168.1.4:18075/sonatype/nexus:latest                                                      0
      

      It seems to show the proxied docker item as well as each docker hosted image I have in my hosted repo. The same occurs for just searching the hosted repo (without the proxy result).
      Narrowing the search seems to give the correct results, making me wonder if searching the broader item is somehow including / as something to be searched (though just for hosted as there are any number of proxied items with / out there).

      This was untestable in NX3 because of NEXUS-9159, however, spoke with Kelly Robinson and decided to give it a distinct ticket rather than reopen that one soas not to cloudy the waters. Docker does not exist in NX2 so cannot be checked there.
      I am leaving this major as I can imagine this will render results less and less useful the more things you have in the hosted repo.
      You also cannot perform this exact search in the NX3 search UI because of NEXUS-8801 so the workaround is partial search.

      NOTE:

      • Could be tokenizing the / in the image name

        Attachments

          Activity

            People

            Assignee:
            jtom Joe Tom
            Reporter:
            jtom Joe Tom
            Last Updated By:
            Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title