forrestzhu / odata4j

Automatically exported from code.google.com/p/odata4j
0 stars 0 forks source link

Projecting a nonexistent property returns an empty <entry> element #77

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run the Northwind sample and run the query 
2. http://localhost:8886/JPAProducerExample.svc/Orders?$top=1&$select=OrderId
3.

What is the expected output? What do you see instead?

Expected result is an exception from the server because the property "OrderId" 
does 
not exist on the "Order" type in the model.

Instead, we see that I get an empty <entry> element without any properties in 
the m:properties element.

<entry><id>http://localhost:8886/JPAProducerExample.svc/Orders(10248)</id><title

type="text"></title><updated>2011-10-06T03:31:09Z</updated><author><name></name>
</author><link rel="edit" title="Orders" href="Orders(10248)"></link><category 
term="NorthwindModel.Orders" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"></category
>
  <content type="application/xml">  
    <m:properties></m:properties>
  </content>
</entry>

Original issue reported on code.google.com by PhaniRaj...@gmail.com on 6 Oct 2011 at 3:32