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

openshift-java-client: exception when refreshing application when env variables are not supported are not supported

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.5.0
    • None
    • None

      If you do IApplication#refresh on a OpenShift server which wont support environment variables, you'll get the following:

      com.openshift.client.OpenShiftRequestException: Could not find link "LIST_ENVIRONMENT_VARIABLES" in resource "ApplicationResource"
      	at com.openshift.internal.client.AbstractOpenShiftResource.getLink(AbstractOpenShiftResource.java:123)
      	at com.openshift.internal.client.AbstractOpenShiftResource$ServiceRequest.execute(AbstractOpenShiftResource.java:142)
      	at com.openshift.internal.client.ApplicationResource.loadEnvironmentVariables(ApplicationResource.java:622)
      	at com.openshift.internal.client.ApplicationResource.updateEnvironmentVariables(ApplicationResource.java:693)
      	at com.openshift.internal.client.ApplicationResource.refresh(ApplicationResource.java:563)
      

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

                Created:
                Updated:
                Resolved: