[
https://issues.jboss.org/browse/JBIDE-15611?page=com.atlassian.jira.plugi...
]
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: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}
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