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

Adrian Wasik commented on OLINGO-1181:
--------------------------------------

Are there any plans to fix this bug? I can reproduce the same by taking 
ComplexType directly as an action input parameter:
{code:java}
<Action Name="TestAction" IsBound="false">                
    <Parameter Name="ComplexInputs" Type="Collection(Namespace.ComplexInput)"/> 
           
</Action>

<ComplexType Name="ComplexInput"> 
     <Property Name="Description" Type="Edm.String"/>                
     <NavigationProperty Name="Object" Type="Namespace.Object"/>                
     <NavigationProperty Name="Objects" Type="Collection(Namespace.Object)"/>   
         
</ComplexType>

Payload example:
{    
    "ComplexInputs": [        
       {            
             "obj...@odata.bind": "Object(1)",           
             "obje...@odata.bind[
                "Object(2)",
                "Object(3)"
            ],
            "Description": "desc"        
       }    
    ]
}
{code}

> Deep-Insert: Navigation Links and Binding Links are not added for complex 
> types
> -------------------------------------------------------------------------------
>
>                 Key: OLINGO-1181
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1181
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-server
>    Affects Versions: (Java) V4 4.3.0
>            Reporter: Oliver Grande
>            Priority: Major
>
> I have an entity that has a property with a complex type. The complex type 
> has a navigation property. If I try to create a new instance of the the 
> entity including either a binding link or including a new instance the 
> navigation is pointing to the lists returned by 
> ComplexValue.getNavigationBindings() respectively  
> ComplexValue.getNavigationLinks() are empty.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to