You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Paul Carey (JIRA)" <ji...@apache.org> on 2008/12/14 17:39:44 UTC
[jira] Created: (COUCHDB-177) Malformed JSON returned by keys based
query
Malformed JSON returned by keys based query
-------------------------------------------
Key: COUCHDB-177
URL: https://issues.apache.org/jira/browse/COUCHDB-177
Project: CouchDB
Issue Type: Bug
Components: JavaScript View Server
Affects Versions: 0.9
Reporter: Paul Carey
Attachments: keys_based_query.sh
If not all keys exist for a keys based query on a reduce view, malformed JSON may be returned.
The attached test case queries a view that returns an array commencing with a comma character.
{"rows":[,{"key":"1","value":1}]}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (COUCHDB-177) Malformed JSON returned by keys
based query
Posted by "Chris Anderson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Anderson resolved COUCHDB-177.
------------------------------------
Resolution: Fixed
fixed in r727156
> Malformed JSON returned by keys based query
> -------------------------------------------
>
> Key: COUCHDB-177
> URL: https://issues.apache.org/jira/browse/COUCHDB-177
> Project: CouchDB
> Issue Type: Bug
> Components: JavaScript View Server
> Affects Versions: 0.9
> Reporter: Paul Carey
> Attachments: COUCHDB-177.patch, keys_based_query.sh
>
>
> If not all keys exist for a keys based query on a reduce view, malformed JSON may be returned.
> The attached test case queries a view that returns an array commencing with a comma character.
> {"rows":[,{"key":"1","value":1}]}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (COUCHDB-177) Malformed JSON returned by keys based
query
Posted by "Paul Carey (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Carey updated COUCHDB-177:
-------------------------------
Attachment: keys_based_query.sh
> Malformed JSON returned by keys based query
> -------------------------------------------
>
> Key: COUCHDB-177
> URL: https://issues.apache.org/jira/browse/COUCHDB-177
> Project: CouchDB
> Issue Type: Bug
> Components: JavaScript View Server
> Affects Versions: 0.9
> Reporter: Paul Carey
> Attachments: keys_based_query.sh
>
>
> If not all keys exist for a keys based query on a reduce view, malformed JSON may be returned.
> The attached test case queries a view that returns an array commencing with a comma character.
> {"rows":[,{"key":"1","value":1}]}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (COUCHDB-177) Malformed JSON returned by keys based
query
Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Joseph Davis updated COUCHDB-177:
--------------------------------------
Attachment: COUCHDB-177.patch
This fixes it. The couch_httpd_view reduce output method wasn't respecting the AccSeparator character returned after couch_view:reduce_fold.
> Malformed JSON returned by keys based query
> -------------------------------------------
>
> Key: COUCHDB-177
> URL: https://issues.apache.org/jira/browse/COUCHDB-177
> Project: CouchDB
> Issue Type: Bug
> Components: JavaScript View Server
> Affects Versions: 0.9
> Reporter: Paul Carey
> Attachments: COUCHDB-177.patch, keys_based_query.sh
>
>
> If not all keys exist for a keys based query on a reduce view, malformed JSON may be returned.
> The attached test case queries a view that returns an array commencing with a comma character.
> {"rows":[,{"key":"1","value":1}]}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.