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

Client: openshift-restclient-java 5.5 is not a drop-in replacement for 5.3.0.Final

    Details

      Description

      We cannot switch to openshift-restclient-java 5.5.0. Doing so resources cant get listed any more in the OpenShift explorer.

      Eclipse requests the following:

      Request{method=GET, url=https://10.1.2.2:8443/oapi/v1/namespaces/sample-project/projects, tag=null}
      

      -> notice how the requested path seems wrong (project/projects/)

      which gets responded by the following:

      Response{protocol=http/1.1, code=404, message=Not Found, url=https://10.1.2.2:8443/oapi/v1/namespaces/sample-project/projects/sample-project}
      
      which leads to the following exception being thrown:
      com.openshift.restclient.NotFoundException: the server could not find the requested resource the server could not find the requested resource
          at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:112)
          at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:65)
          at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:190)
          at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)
          at okhttp3.RealCall.execute(RealCall.java:57)
          at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:255)
          at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:226)
          at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:159)
          at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:147)
          at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:134)
          at org.jboss.tools.openshift.core.connection.Connection.getResources(Connection.java:471)
          at org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper.refresh(ConnectionWrapper.java:286)
          at org.jboss.tools.openshift.internal.ui.models.ProjectWrapper.refresh(ProjectWrapper.java:81)
          at org.jboss.tools.openshift.internal.ui.handler.RefreshResourceHandler$1.doRun(RefreshResourceHandler.java:60)
          at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:37)
          at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: