My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 243: Reference queries lose results after server restart
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by rheimb...@gmail.com, Sep 8, 2009
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

Sign in to add a comment

Powered by Google Project Hosting