[jbosstools-issues] [JBoss JIRA] (JBIDE-15611) openshift-java-client: should be lenient to unknown http methods in links, should not fail

Andre Dietisheim (JIRA) jira-events at lists.jboss.org
Thu Oct 3 14:47:02 EDT 2013


     [ https://issues.jboss.org/browse/JBIDE-15611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andre Dietisheim updated JBIDE-15611:
-------------------------------------

    Description: 
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 

{code}
HttpMethod.valueOf(httpMethod)
{code}

in the link constructor:

{code:title=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);
	}
{code}

  was:
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 

{code}
HttpMethod.valueOf(httpMethod)
{code}

in the link constructor:

{code: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);
	}
{code}


    
> openshift-java-client: should be lenient to unknown http methods in links, should not fail
> ------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-15611
>                 URL: https://issues.jboss.org/browse/JBIDE-15611
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>          Components: openshift
>    Affects Versions: 4.2.0.Alpha1
>            Reporter: Andre Dietisheim
>            Assignee: Andre Dietisheim
>             Fix For: 4.2.x
>
>
> 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 
> {code}
> HttpMethod.valueOf(httpMethod)
> {code}
> in the link constructor:
> {code:title=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);
> 	}
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list