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

Michael Bolz resolved OLINGO-20.
--------------------------------

    Resolution: Fixed

Fixed in 
{{odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/XmlEntryConsumer.java}}
and added tests in 
{{odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/XmlEntityConsumerTest.java}}.

See commit {{b591a99a8aa479b2f3a3e0a9ed2883b2cb528f13}}.
                
> EntityProviderException caused by checkAllMandatoryNamespacesAvailable() 
> (application/atom+xml)
> -----------------------------------------------------------------------------------------------
>
>                 Key: OLINGO-20
>                 URL: https://issues.apache.org/jira/browse/OLINGO-20
>             Project: Olingo
>          Issue Type: Bug
>            Reporter: Michael Bolz
>            Assignee: Michael Bolz
>             Fix For: 1.0.0
>
>
> During deserialization an EntityProviderException is caused 
> bycheckAllMandatoryNamespacesAvailable()  although processed XML content 
> (application/atom+xml) is valid.
> Example:
> {code}
> POST https://localhost:8080/ref.web/ReferenceScenario.svc/Rooms
> {code}
> {code}
> <?xml version='1.0' encoding='utf-8'?>
> <entry xmlns="http://www.w3.org/2005/Atom"; 
> xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"; 
> xml:base="https://localhost:8080/ref.web/ReferenceScenario.svc/";>
>       <id>https://localhost:8080/ref.web/ReferenceScenario.svc/Rooms('1')</id>
>       <title type="text">Room 1</title>
>       <updated>2013-09-18T14:33:34.208Z</updated>
>       <category term="RefScenario.Room" 
> scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
>       <link href="Rooms('1')" rel="edit" title="Room"/>
>       <link href="Rooms('1')/nr_Employees" 
> rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/nr_Employees";
>  title="nr_Employees" type="application/atom+xml;type=feed"/>
>       <link href="Rooms('1')/nr_Building" 
> rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/nr_Building";
>  title="nr_Building" type="application/atom+xml;type=entry"/>
>       <content type="application/xml">
>               <m:properties 
> xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata";>
>                       <d:Id>1</d:Id>
>                       <d:Name>Room 1</d:Name>
>                       <d:Seats>1</d:Seats>
>                       <d:Version>1</d:Version>
>               </m:properties>
>       </content>
> </entry>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to