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

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 5.2.0.Final
    • None
    • core
    • 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").

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: