karishma-tirthani / odata4j

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

EntitySetType and EntitySetName may have different values in InMemoryProducer #110

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It's possible to create a OData feed that exports entities set by a given name 
that does not equal to the name of type. 

See https://nuget.org/api/v2/$metadata as an example.

Original issue reported on code.google.com by Eugene.P...@gmail.com on 8 Jan 2012 at 1:38

GoogleCodeExporter commented 8 years ago
Please take a look to the patch fixing the issue or take a look to the branch 
https://Eugene.Petrenko@code.google.com/r/eugenepetrenko-bugfix/

Original comment by Eugene.P...@gmail.com on 8 Jan 2012 at 2:38

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by john.spurlock on 8 Jan 2012 at 5:26

GoogleCodeExporter commented 8 years ago
This issue was closed by revision ec459f586681.

Original comment by john.spurlock on 8 Jan 2012 at 5:39

GoogleCodeExporter commented 8 years ago
Fix generated Feed edit link name. 

Original comment by Eugene.P...@gmail.com on 9 Jan 2012 at 9:34

Attachments:

GoogleCodeExporter commented 8 years ago
Integrated as revision 3845fe80d6f8

Also removed now unused entitySetName method arg.

Original comment by john.spurlock on 10 Jan 2012 at 12:47

GoogleCodeExporter commented 8 years ago
One more small patch

Original comment by Eugene.P...@gmail.com on 10 Jan 2012 at 3:07

Attachments:

GoogleCodeExporter commented 8 years ago
Why is this commented out?

Original comment by john.spurlock on 15 Jan 2012 at 10:16

GoogleCodeExporter commented 8 years ago
The right part of the patch was diff -r 22a7a5c95830 -r adde8cfe18e1 
odata4j-core/src/main/java/org/odata4j/format/xml/XmlFormatWriter.java
--- 
a/odata4j-core/src/main/java/org/odata4j/format/xml/XmlFormatWriter.java    Tue 
Jan 10 15:14:24 2012 +0400
+++ 
b/odata4j-core/src/main/java/org/odata4j/format/xml/XmlFormatWriter.java    Tue 
Jan 10 19:05:50 2012 +0400
@@ -210,8 +210,7 @@
     writer.endElement("author");

     if (isResponse) {
-      writeElement(writer, "link", null, "rel", "edit", "title",
-          entitySetName, "href", relid);
+      writeElement(writer, "link", null, "rel", "edit", "title", 
ees.getType().getName(), "href", relid);
     }

It seems you have it in the repository. 

The commented part was by mistake added to the library. The right patch for the 
part is in the Issue 111 
(https://code.google.com/p/odata4j-patches/source/browse/Issue-111-hasStream-in-
metadata)

Original comment by Eugene.P...@gmail.com on 16 Jan 2012 at 10:54