Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Critical
-
Resolution: Cannot Reproduce
-
Affects Version/s: 1.1.1
-
Fix Version/s: None
-
Component/s: library
-
Security Level: Public
-
Labels:None
Description
A view has been created and it's being queried properly, but the compound keys seem to be getting quoted.
Is there a workaround for this approach? Is something like the ComplexKey class used in Java needed here in PHP?
A basic investigation shows:
GET /default/_design/debug/_view/user2hour?startkey=%22%5C%22%5Buser_event%5D%5C%22%22&endkey=%22%5C%22%5Buser_event__%5D%5C%22%22&group=true << doesn't work
GET /default/_design/debug/_view/user2hour?startkey=%5B%22user_event%22%5D&endkey=%5B%22user_event__%22%5D&group=true HTTP/1.1 << works
So it seems it's extra quoting that's going on.
See also:
http://www.couchbase.com/forums/thread/view-array-key-started-behave-differently-http-request-and-php-api
Is there a workaround for this approach? Is something like the ComplexKey class used in Java needed here in PHP?
A basic investigation shows:
GET /default/_design/debug/_view/user2hour?startkey=%22%5C%22%5Buser_event%5D%5C%22%22&endkey=%22%5C%22%5Buser_event__%5D%5C%22%22&group=true << doesn't work
GET /default/_design/debug/_view/user2hour?startkey=%5B%22user_event%22%5D&endkey=%5B%22user_event__%22%5D&group=true HTTP/1.1 << works
So it seems it's extra quoting that's going on.
See also:
http://www.couchbase.com/forums/thread/view-array-key-started-behave-differently-http-request-and-php-api
Activity
Matt Ingenthron
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
A view has been created and it's being queried properly, but the compound keys seem to be getting quoted.
Is there a workaround for this approach? Is something like the ComplexKey class used in Java needed here in PHP? See also: http://www.couchbase.com/forums/thread/view-array-key-started-behave-differently-http-request-and-php-api |
A view has been created and it's being queried properly, but the compound keys seem to be getting quoted.
Is there a workaround for this approach? Is something like the ComplexKey class used in Java needed here in PHP? A basic investigation shows: GET /default/_design/debug/_view/user2hour?startkey=%22%5C%22%5Buser_event%5D%5C%22%22&endkey=%22%5C%22%5Buser_event__%5D%5C%22%22&group=true << doesn't work GET /default/_design/debug/_view/user2hour?startkey=%5B%22user_event%22%5D&endkey=%5B%22user_event__%22%5D&group=true HTTP/1.1 << works So it seems it's extra quoting that's going on. See also: http://www.couchbase.com/forums/thread/view-array-key-started-behave-differently-http-request-and-php-api |
Matt Ingenthron
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Assignee | Michael Nitschinger [ daschl ] | Mark Nunberg [ mnunberg ] |
| Resolution | Cannot Reproduce [ 5 ] |
Michael, once you have an idea what it is, can you please reassign it to Trond for a proper fix?