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

Ramesh Reddy resolved OLINGO-1008.
----------------------------------
       Resolution: Fixed
         Assignee: Ramesh Reddy
    Fix Version/s: (Java) V4 4.4.0

I modified your commit to not remove the method, but provide no-op method as 
similar check in the {{super.checkRequest}} which would have called when the 
derived class method is not existed.

I really do wish the solution is broadened where the ReferenceResolver is 
presented to avoid cross-site calls to load the metadata all the time, but the 
Olingo client code has so many wrappers, it will surely break some API. 
Although I encourage someone to provide a patch to it.

> Metadata Parser is unable to parse external references of Microsoft dynamics 
> CRM Odata metadata
> -----------------------------------------------------------------------------------------------
>
>                 Key: OLINGO-1008
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1008
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-client
>    Affects Versions: (Java) V4 4.2.0
>            Reporter: Prashant Singh
>            Assignee: Ramesh Reddy
>             Fix For: (Java) V4 4.4.0
>
>         Attachments: 
> 0001-OLINGO-1008-Removing-the-restriction-of-referenced-d.patch
>
>
> I am currently using Apache olingo 4.2.0 and facing issue while accessing the 
> microsoft CRM metadata and getting following exception:
> java.lang.IllegalArgumentException: The referenced EDMX document has the URI 
> 'http://vocabularies.odata.org/OData.Community.Keys.V1.xml' where scheme, 
> host, or port is different from the main metadata document URI 
> 'https://crmonlinebcone.crm8.dynamics.com/api/data/v8.1/$metadata'.
>       at 
> org.apache.olingo.client.core.communication.request.retrieve.XMLMetadataRequestImpl$SingleXMLMetadatRequestImpl.checkRequest(XMLMetadataRequestImpl.java:154)
>       at 
> org.apache.olingo.client.core.communication.request.AbstractODataRequest.doExecute(AbstractODataRequest.java:271)
>       at 
> org.apache.olingo.client.core.communication.request.retrieve.XMLMetadataRequestImpl$SingleXMLMetadatRequestImpl.execute(XMLMetadataRequestImpl.java:164)
>       at 
> org.apache.olingo.client.core.communication.request.retrieve.XMLMetadataRequestImpl.execute(XMLMetadataRequestImpl.java:74)
>       at 
> org.apache.olingo.client.core.communication.request.retrieve.XMLMetadataRequestImpl.execute(XMLMetadataRequestImpl.java:40)
>       at 
> org.apache.olingo.client.core.communication.request.retrieve.EdmMetadataRequestImpl.getPrivateResponse(EdmMetadataRequestImpl.java:58)
>       at 
> org.apache.olingo.client.core.communication.request.retrieve.EdmMetadataRequestImpl.execute(EdmMetadataRequestImpl.java:72)
>       at 
> org.apache.olingo.client.core.communication.request.retrieve.EdmMetadataRequestImpl.execute(EdmMetadataRequestImpl.java:35)
>       at com.bcone.apache.plingo.odata.TestOData.main(TestOData.java:40)



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

Reply via email to