[
https://issues.apache.org/jira/browse/OLINGO-1042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15645065#comment-15645065
]
Michael Bolz commented on OLINGO-1042:
--------------------------------------
Hi [~Michele EnergySys],
This is not a bug, it is a design decision based on the OData specification
with its {{URI}} types (see section
[2.2.3.5|https://msdn.microsoft.com/en-us/library/dd541212.aspx]) which is
reflected in Olingo in the {{org.apache.olingo.odata2.core.uri.UriType}} class
and {{org.apache.olingo.odata2.core.Dispatcher->dispatch()}} method.
According to this a function import which results in a collection (EntitySet)
is dispatch to the {{readEntitySet(...)}}.
Best Regards, Michael
> FunctionImportProcessor.executeFunctionImport() not invoked during function
> execution
> -------------------------------------------------------------------------------------
>
> Key: OLINGO-1042
> URL: https://issues.apache.org/jira/browse/OLINGO-1042
> Project: Olingo
> Issue Type: Question
> Components: odata2-core
> Affects Versions: V2 2.0.7
> Reporter: M Carissimi
> Assignee: Michael Bolz
>
> Hello
> I have implemented some functions on my OData v2 service and they appear on
> the $metadata as follow
> {code}
> <FunctionImport Name="UserAllowedApplications"
> ReturnType="Collection(myproducer.Application)" EntitySet="Application"
> m:HttpMethod="GET"/>
> {code}
> When I invoke a function using a GET request, the
> EntitySetProcessor.readEntitySet() method ins invoked instead of
> FunctionImportProcessor.executeFunctionImport().
> This seems to be the incorrect behaviour... is there anything that I can do
> to ensure the correct method is invoked?
> Thanks
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)