[jira] [Comment Edited] (OLINGO-1247) odata2 doesn't support HttpMethod PATCH for partial update

2018-03-14 Thread Wendy Wang (JIRA)

[ 
https://issues.apache.org/jira/browse/OLINGO-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16399847#comment-16399847
 ] 

Wendy Wang edited comment on OLINGO-1247 at 3/15/18 3:18 AM:
-

Hi Oliver,

Thanks for your response. Yes, we can use MERGE in a Http URL through Postman, 
but I'm writing a java application to modify data. As what I said before, 
there's a validate Http method list and Merge/Patch are not in it.

Here's the document I referenced:
h5. [{color:#59afe1}How to use Apache Olingo as Client Library-Update the 
data{color}|https://olingo.apache.org/doc/odata2/tutorials/OlingoV2BasicClientSample.html#updatedata]

Unlucky, in this doc, it says "{color:#59afe1}{color:#205081}_MERGE/PATCH_ it 
is also possible to send only the _to be updated_ data as _POST Body_ and 
omitting the unchanged data. But this is (currently) not shown within this 
sample{color}.{color}"

How can I use them ? 

Regards,

Wendy

 


was (Author: wendy_3g):
Hi Oliver,

Thanks for your response. Yes, we can use MERGE in a Http URL through Postman, 
but I'm writing a java application to modify data. As what I said before, 
there's a validate Http method list and Merge/Patch are not in it.

Here's the document I referenced:
h5. [{color:#59afe1}How to use Apache Olingo as Client Library-Update the 
data{color}|https://olingo.apache.org/doc/odata2/tutorials/OlingoV2BasicClientSample.html#updatedata]

Regards,

Wendy

 

> 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)


[jira] [Updated] (OLINGO-1247) odata2 doesn't support HttpMethod PATCH for partial update

2018-03-14 Thread Wendy Wang (JIRA)

 [ 
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)


[jira] [Comment Edited] (OLINGO-1247) odata2 doesn't support HttpMethod PATCH for partial update

2018-03-14 Thread Wendy Wang (JIRA)

[ 
https://issues.apache.org/jira/browse/OLINGO-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16399847#comment-16399847
 ] 

Wendy Wang edited comment on OLINGO-1247 at 3/15/18 3:14 AM:
-

Hi Oliver,

Thanks for your response. Yes, we can use MERGE in a Http URL through Postman, 
but I'm writing a java application to modify data. As what I said before, 
there's a validate Http method list and Merge/Patch are not in it.

Here's the document I referenced:
h5. [{color:#59afe1}How to use Apache Olingo as Client Library-Update the 
data{color}|https://olingo.apache.org/doc/odata2/tutorials/OlingoV2BasicClientSample.html#updatedata]

Regards,

Wendy

 


was (Author: wendy_3g):
Hi Oliver,

Thanks for your response. Yes, we can use MERGE in a Http URL through Postman, 
but I'm writing a java application to modify data. As what I said before, 
there's a validate Http method list and Merge/Patch are not in it.

Here's the document I referenced:
h5. [{color:#59afe1}How to use Apache Olingo as Client Library-Update the 
data{color}|https://olingo.apache.org/doc/odata2/tutorials/OlingoV2BasicClientSample.html#updatedata]

 

 

> 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? 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (OLINGO-1247) odata2 doesn't support HttpMethod PATCH for partial update

2018-03-14 Thread Wendy Wang (JIRA)

[ 
https://issues.apache.org/jira/browse/OLINGO-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16399847#comment-16399847
 ] 

Wendy Wang commented on OLINGO-1247:


Hi Oliver,

Thanks for your response. Yes, we can use MERGE in a Http URL through Postman, 
but I'm writing a java application to modify data. As what I said before, 
there's a validate Http method list and Merge/Patch are not in it.

Here's the document I referenced:
h5. [{color:#59afe1}How to use Apache Olingo as Client Library-Update the 
data{color}|https://olingo.apache.org/doc/odata2/tutorials/OlingoV2BasicClientSample.html#updatedata]

 

 

> 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? 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (OLINGO-1191) Code improvements

2018-03-14 Thread Ramya (JIRA)

[ 
https://issues.apache.org/jira/browse/OLINGO-1191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16399818#comment-16399818
 ] 

Ramya commented on OLINGO-1191:
---

Added more code improvements as part of the commit 
https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=commit;h=1a739d46bf82d918eb6086714a87341af1ebca95

> Code improvements
> -
>
> Key: OLINGO-1191
> URL: https://issues.apache.org/jira/browse/OLINGO-1191
> Project: Olingo
>  Issue Type: Improvement
>Affects Versions: (Java) V4 4.4.0
>Reporter: Archana Rai
>Priority: Minor
> Fix For: (Java) V4 4.0.0
>
>
> Some code check related improvements for making the code better.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)