You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Christian Amend (JIRA)" <ji...@apache.org> on 2017/05/08 08:00:15 UTC

[jira] [Resolved] (OLINGO-1121) Can not create entities via to one navigation property

     [ https://issues.apache.org/jira/browse/OLINGO-1121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Amend resolved OLINGO-1121.
-------------------------------------
    Resolution: Won't Fix
      Assignee: Christian Amend

The V2 specification does not allow POST requests on navigation to one. POST methods are only allowed for collections:

As specified in [RFC5023] section 9.2, insert requests use the HTTP POST method and the request
URI must represent an AtomPub Collection. Because a collection maps to a conceptual schema
definition language (CSDL) in an Entity Data Model, the HTTP request line URI MUST be any valid
data service URI, as defined in URI Format: Resource Addressing Rules (section 2.2.3), which
identifies a collection of entities.

> Can not create entities via to one navigation property
> ------------------------------------------------------
>
>                 Key: OLINGO-1121
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1121
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-core
>    Affects Versions: V2 2.0.8
>            Reporter: Oliver Grande
>            Assignee: Christian Amend
>
> I try to create three entities via a $batch request with three POSTs. One "top-level" entity and two related ones. One of the navigation properties is a "To One" and the other one is a "To Many" relation.
> Whereas the "Top Level" and the "To Many" are processed without any problem, the To One aborts with an  ODataMethodNotAllowedException. 
> Some debugging showed that the "To Many" gets UriType URI6B, where as "To One" gets UriType URI6A. Later in ODataRequestHandler. validateUriMethod POST is forbidden for URI6A.
> Please enable POST for URI6A  as well.
> Regards,
> Oliver



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)