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

openshift-java-client: should be lenient to unknown http methods in links, should not fail

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 2.7.0
    • 2.5.0
    • None

      the openshift-java-client is currently failing when there are unknown http methods in the server responses. This is bad, it should not fail, should be lenient since such failing inhibits communications completely.

      The exact reason is a

      HttpMethod.valueOf(httpMethod)
      

      in the Link constructor:

      Link
      	protected Link(final String rel, final String href, final String httpMethod,
      			final List<LinkParameter> requiredParams, final List<LinkParameter> optionalParams) {
      		this(rel, href, HttpMethod.valueOf(httpMethod), requiredParams, optionalParams);
      	}
      

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

              Created:
              Updated:
              Resolved: