kazu2012 / persevere-framework

Automatically exported from code.google.com/p/persevere-framework
0 stars 0 forks source link

Remote Objects returned in an array do not have the correct references #187

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When I load an individual object, all is well:

  c = load( "http://server.com:8080/Toot/1" )
  [object Object]
  js>s( c )
  ({"id":"http://server.com:8080/Toot/1",
  "name":"Buddy",
  "masterNodeUpdateTimer":{"$ref":"http://server.com:8080/Timer/1"}
  })

But, when I do it as a query on a class (since I initially don't know the
id!), it doesn't quite get the id right ('?' instead of '/' ?), nor does it
get references contained in properties correct.

  js>ts = load( "http://server.com:8080/Toot" )
  [object Array of 1 elements]
  js>t = ts[ 0 ]
  [object Object]
  js>t.id
  http://server.com:8080/Toot?0
  js>s( t.masterNodeUpdateTimer )
  May 23, .. org.persvr.remote.JSONSerializer$Serialization getValueString
  INFO: Can not output an object of type class
org.mozilla.javascript.EcmaError to JSON
  "Can not serialize class org.mozilla.javascript.EcmaError"

Original issue reported on code.google.com by davidthi...@gmail.com on 23 May 2009 at 8:42

GoogleCodeExporter commented 8 years ago

Original comment by kris...@gmail.com on 23 May 2009 at 11:43

GoogleCodeExporter commented 8 years ago

Original comment by davidthi...@gmail.com on 24 May 2009 at 12:21