danielfernandez opened a new pull request #55: [OLINGO-1395] Fixed parsing 
error when ReturnType contains Annotation
URL: https://github.com/apache/olingo-odata4/pull/55
 
 
   This fixes 
[[OLINGO-1395]](https://issues.apache.org/jira/browse/OLINGO-1395), includes 
modification to test case to cover this fix.
   
   The current EDM parsing infrastructure does not take into account the 
possibility that a `<ReturnType>` element contains an `<Annotation>`.
   
   This causes that a structure such as this (from a Cognos TM1 service):
   
   ```xml
   <ReturnType Type="tm1.Hierarchy" Nullable="false">
        <Annotation Term="Core.Description">
                <String>The newly created all leaves hierarchy.</String>
        </Annotation>
   </ReturnType>
   ```
   
   ...ends up messing the close tags, and closing the element containing the 
`<ReturnType>` before it should, causing the rest of the EDM to be ignored and 
the service being inaccessible.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to