[jira] [Resolved] (OLINGO-1332) Header Perfer: "return=minimal" or "return=representation" return Error "Prefer Header not supported"
[ https://issues.apache.org/jira/browse/OLINGO-1332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Bolz resolved OLINGO-1332. -- Resolution: Not A Problem > Header Perfer: "return=minimal" or "return=representation" return Error > "Prefer Header not supported" > - > > Key: OLINGO-1332 > URL: https://issues.apache.org/jira/browse/OLINGO-1332 > Project: Olingo > Issue Type: Bug > Components: odata4-server >Affects Versions: (Java) V4 4.5.0 >Reporter: Jerome BAROTIN >Assignee: Michael Bolz >Priority: Major > Attachments: OLINGO-1332.patch > > > > Hi, > {color:#33}Considering the following python script :{color} > {code:java} > # -*- encoding: utf-8 -*- > import requests > headers = { > 'Content-Type': 'application/json', > 'Prefer': 'return=minimal' > } > url = "http://localhost:8080/Customers(2)" > r = requests.get(url, headers=headers)) > print(r.content){code} > If I run it on my olingo implementation, I've got the following content : > {noformat} > b'{"error":{"code":null,"message":"The Prefer header \'return=minimal\' is > not supported for this HTTP Method."}}'{noformat} > > > > > {color:#808080} {color} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (OLINGO-1332) Header Perfer: "return=minimal" or "return=representation" return Error "Prefer Header not supported"
[ https://issues.apache.org/jira/browse/OLINGO-1332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16821792#comment-16821792 ] Michael Bolz commented on OLINGO-1332: -- Yes, it looks like that the bug is in the .net "Simple.OData.Client" library. I will close this issue for now. But feel free to comment or reopen it if necessary. > Header Perfer: "return=minimal" or "return=representation" return Error > "Prefer Header not supported" > - > > Key: OLINGO-1332 > URL: https://issues.apache.org/jira/browse/OLINGO-1332 > Project: Olingo > Issue Type: Bug > Components: odata4-server >Affects Versions: (Java) V4 4.5.0 >Reporter: Jerome BAROTIN >Assignee: Michael Bolz >Priority: Major > Attachments: OLINGO-1332.patch > > > > Hi, > {color:#33}Considering the following python script :{color} > {code:java} > # -*- encoding: utf-8 -*- > import requests > headers = { > 'Content-Type': 'application/json', > 'Prefer': 'return=minimal' > } > url = "http://localhost:8080/Customers(2)" > r = requests.get(url, headers=headers)) > print(r.content){code} > If I run it on my olingo implementation, I've got the following content : > {noformat} > b'{"error":{"code":null,"message":"The Prefer header \'return=minimal\' is > not supported for this HTTP Method."}}'{noformat} > > > > > {color:#808080} {color} -- This message was sent by Atlassian JIRA (v7.6.3#76005)