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

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

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.2.0.Final
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None

      Description

      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").

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                adietish André Dietisheim
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: