kazu2012 / persevere-framework

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

Reference queries lose results after server restart #243

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
To Reproduce:

1. Create two class definitions:
Class({
    id:"Test"
});
Class({
    id:"Foo"
});

2. POST/Create several empty instances of "Test".

3. POST/Create an empty instance of "Foo".

4. PUT/Update the "Test" instances with a "foo" reference property.
PUT /Test/1
({"id":"1",
"foo":{"$ref":"/Foo/1"}
})

PUT /Test/2
({"id":"2",
"foo":{"$ref":"/Foo/1"}
})
....

5. Query for all the Test instances that reference /Foo/1
GET /Test/[?foo=/Foo/1]

6. Results should be correct.

7. Restart the persevere server.

8. Re-issue the query:
GET /Test/[?foo=/Foo/1]

9. The result set is empty, even though /Test/ shows that the Test
instances have the reference to /Foo/1.

Persevere Version: trunk r601
OS: OSX 10.6

Original issue reported on code.google.com by rheimb...@gmail.com on 8 Sep 2009 at 7:54