[
https://issues.apache.org/jira/browse/OLINGO-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13823604#comment-13823604
]
Christian Amend commented on OLINGO-69:
---------------------------------------
We did this because we thought that if somebody doesn´t want to use Complex
Types a call to this method would show the client by giving the 501 not
implemented.
Unfortunately this doesn´t hold true for uri parsing because when a type for a
function import is specified this is done via a full qualified name. So we do
not know what type this is and have to determine this by calling getComplexType
and then getEntityType if the first call returns null. If there is no
ComplexType this results in the unwanted exception.
So I think we have to refactor the EdmProvider to return null in case it isn´t
implemented.
> EdmProvider throws 'not implemented'
> --------------------------------------
>
> Key: OLINGO-69
> URL: https://issues.apache.org/jira/browse/OLINGO-69
> Project: Olingo
> Issue Type: Bug
> Components: odata2-core
> Affects Versions: V2 1.0.0
> Reporter: Stephan Klevenz
> Attachments: FunctionImportOutPut.xml
>
>
> A not implemented exception is thrown in case of the following function call
> url:
> http://localhost:/HelpValue.svc/getHelpValueNotOlderThan?URI='ValueHelp://ALIAS/Country'¬OlderThan=123456789L.
> [EXCEPTION]
> org.apache.olingo.odata2.api.exception.ODataNotImplementedException
> at
> org.apache.olingo.odata2.api.edm.provider.EdmProvider.getComplexType(EdmProvider.java:43)
>
> at
> org.apache.olingo.odata2.core.edm.provider.EdmImplProv.createComplexType(EdmImplProv.java:47)
>
> at org.apache.olingo.odata2.core.edm.EdmImpl.getComplexType(EdmImpl.java:97)
> at
> org.apache.olingo.odata2.core.edm.provider.EdmTypedImplProv.getType(EdmTypedImplProv.java:34)
>
> at
> org.apache.olingo.odata2.core.uri.UriParserImpl.handleFunctionImport(UriParserImpl.java:444)
>
> at
> org.apache.olingo.odata2.core.uri.UriParserImpl.handleNormalInitialSegment(UriParserImpl.java:169)
>
> at
> org.apache.olingo.odata2.core.uri.UriParserImpl.handleResourcePath(UriParserImpl.java:136)
>
> at
> org.apache.olingo.odata2.core.uri.UriParserImpl.parse(UriParserImpl.java:90)
> at
> org.apache.olingo.odata2.core.ODataRequestHandler.handle(ODataRequestHandler.java:72)
>
> at
> org.apache.olingo.odata2.core.rest.ODataSubLocator.handle(ODataSubLocator.java:121)
>
> at
> org.apache.olingo.odata2.core.rest.ODataSubLocator.handlePost(ODataSubLocator.java:63)
>
--
This message was sent by Atlassian JIRA
(v6.1#6144)