Uploaded image for project: 'OpenShift Java Client'
  1. OpenShift Java Client
  2. OSJC-276

ImageStream: #getDockerImageRepository returns "latest" if no repo was ever set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 5.2.0.Final
    • core
    • None

      Given: You have an ImageStream that has no docker image repository (#setDockerImageRepository was never called & the json that the object was constructed from does neither contain the property "spec.dockerImageRepository" nor "status.dockerImageRepository")
      When: call #getDockerImageRepository
      Then: you get "latest"

      This seems wrong to me. It should - I believe return null.
      This looks like an issue in DockerImageURI to me which doesnt check if the repo url is null and blindly appends the tag ("latest").

              Unassigned Unassigned
              adietish@redhat.com André Dietisheim
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: