[
https://issues.apache.org/jira/browse/OLINGO-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wendy Wang updated OLINGO-1247:
---
Description:
Hi,
I'm using Olingo odata2 to partial update odata service.
([http://services.odata.org/(S(3pkdpur1gd4on3iid50ckdcs))/V2/OData/OData.svc/)]
and I get below error:
* Failed to update entity because: Invalid HTTP method: PATCH
- Invalid HTTP method: PATCH Context: java.net.ProtocolException: Invalid HTTP
method: PATCH
at java.net.HttpURLConnection.setRequestMethod(HttpURLConnection.java:440
Looking at code of java.net.HttpURLConnection.setRequestMethod(), the method
does not contains PATCH, see:
/* valid HTTP methods */
private static final String[] methods =
{ "GET", "POST", "HEAD", "OPTIONS", "PUT", "DELETE", "TRACE" }
;
Any solution or workaround on this?
Regards,
Wendy
was:
Hi,
I'm using Olingo odata2 to partial update odata service.
([http://services.odata.org/(S(3pkdpur1gd4on3iid50ckdcs))/V2/OData/OData.svc/)]
and I get below error:
* Failed to update entity because: Invalid HTTP method: PATCH
- Invalid HTTP method: PATCH Context: java.net.ProtocolException: Invalid HTTP
method: PATCH
at java.net.HttpURLConnection.setRequestMethod(HttpURLConnection.java:440
Looking at code of java.net.HttpURLConnection.setRequestMethod(), the method
does not contains PATCH, see:
/* valid HTTP methods */
private static final String[] methods = {
"GET", "POST", "HEAD", "OPTIONS", "PUT", "DELETE", "TRACE"
};
Any solution or workaround on this?
> odata2 doesn't support HttpMethod PATCH for partial update
> --
>
> Key: OLINGO-1247
> URL: https://issues.apache.org/jira/browse/OLINGO-1247
> Project: Olingo
> Issue Type: Bug
> Components: odata2-core
>Affects Versions: V2 2.0.10
>Reporter: Wendy Wang
>Priority: Major
>
> Hi,
> I'm using Olingo odata2 to partial update odata service.
> ([http://services.odata.org/(S(3pkdpur1gd4on3iid50ckdcs))/V2/OData/OData.svc/)]
> and I get below error:
> * Failed to update entity because: Invalid HTTP method: PATCH
> - Invalid HTTP method: PATCH Context: java.net.ProtocolException: Invalid
> HTTP method: PATCH
> at java.net.HttpURLConnection.setRequestMethod(HttpURLConnection.java:440
> Looking at code of java.net.HttpURLConnection.setRequestMethod(), the method
> does not contains PATCH, see:
> /* valid HTTP methods */
> private static final String[] methods =
> { "GET", "POST", "HEAD", "OPTIONS", "PUT", "DELETE", "TRACE" }
> ;
> Any solution or workaround on this?
> Regards,
> Wendy
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)