You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Tobias Stolzenberger (JIRA)" <ji...@apache.org> on 2016/04/01 16:57:25 UTC
[jira] [Created] (OLINGO-926) Batch Request fails if request line
is absolute
Tobias Stolzenberger created OLINGO-926:
-------------------------------------------
Summary: Batch Request fails if request line is absolute
Key: OLINGO-926
URL: https://issues.apache.org/jira/browse/OLINGO-926
Project: Olingo
Issue Type: Bug
Components: odata2-core
Affects Versions: V2 2.0.6
Reporter: Tobias Stolzenberger
Hi,
I'm using Olingo version 2.0.6 with JPA adapter. Here I want to perform an "InsertLink Request" as defined in OData spec (2.2.7.1.2 InsertLink Request) and also on odata.org (2.10 Creating Links between Entries).
For that I do a HTTP POST request with this URL:
http://myhost/myservice/ItemEntity1_1s('A')/$links/RootEntity1Details.
This operation fails with error message: The request dispatcher does not allow the HTTP method used for the request.
Below I have pasted the relevant Stacktrace.
Regards,
Tobias Stolzenberger
2016 03 16 10:09:01#+0100#ERROR#org.apache.olingo.odata2.api.processor.ODataErrorCallback##test#http-bio-8080-exec-3#na##dev_default#Message = The request dispatcher does not allow the HTTP method used for the request. - org.apache.olingo.odata2.api.exception.ODataMethodNotAllowedException: The request dispatcher does not allow the HTTP method used for the request.
at org.apache.olingo.odata2.core.ODataRequestHandler.validateUriMethod(ODataRequestHandler.java:250)
at org.apache.olingo.odata2.core.ODataRequestHandler.validateMethodAndUri(ODataRequestHandler.java:215)
at org.apache.olingo.odata2.core.ODataRequestHandler.handle(ODataRequestHandler.java:112)
at org.apache.olingo.odata2.core.rest.ODataSubLocator.handle(ODataSubLocator.java:164)
at org.apache.olingo.odata2.core.rest.ODataSubLocator.handlePost(ODataSubLocator.java:86)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:198)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)