You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Sumit (JIRA)" <ji...@apache.org> on 2017/01/13 09:04:26 UTC

[jira] [Commented] (OLINGO-1008) Metadata Parser is unable to parse external references of Microsoft dynamics CRM Odata metadata

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

Sumit commented on OLINGO-1008:
-------------------------------

Any update on this ?

From the history of the file XmlMetadataRequestImpl.java, I was able to locate the commit with which this change was introduced - https://github.com/apache/olingo-odata4/commit/096946a70dc0dd22825c06d22d5aac2f6efe66bc#diff-44f0efe830f2a116dbc6a537db243591R134

But the intention behind the check (of referenced document and original metadata document having same host,scheme) is still unclear.


> 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
>
> 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.4#6332)