My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 257: ID sort order AND ID fully qualified behavior
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 beau.croteau, Nov 02, 2009
What steps will reproduce the problem?
1. Create class 'example_simple'
2. Add 10 objects to the class with {name:'A...J'}
3. Attempt to filter and sort:
http://localhost:8080/example_simple%5B?name=%27*%27][/id]

What is the expected output? What do you see instead?
[{id:1, id:2, id:3...}]
Also, flip flops between fully qualified ID and int-only ID for specific
queries.

What version of the product are you using? On what operating system?
R605 from Source and RC 2.

Please provide any additional information below.
You'll get something like the default back:
http://localhost:8080/example_simple
{}&&[
{"id":"example_simple/1",
       "name":"a"
},
{"id":"example_simple/2",
       "name":"b"
}
...


But when you sort by id (it drops the 'example_simple' prefix)
http://localhost:8080/example_simple%5B/id%5D
{}&&[
{"id":"1",
       "name":"a"
},
{"id":"2",
       "name":"b"
}
...

And worse filter then sort (back to what look like ints, but they're
really sorted strings):
http://localhost:8080/example_simple%5B?name=%27*%27][/id]
{}&&[
{"id":"1",
       "name":"a"
},
{"id":"10",
       "name":"E"
}
Comment 1 by beau.croteau, Nov 02, 2009
Expected Output response is in the 'additional information' section.
Sign in to add a comment

Hosted by Google Code