You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "matthew o'gorman (JIRA)" <ji...@apache.org> on 2011/09/19 21:34:11 UTC
[jira] [Created] (COUCHDB-1290) rewrite with variable and query
option produces a badarg error
rewrite with variable and query option produces a badarg error
--------------------------------------------------------------
Key: COUCHDB-1290
URL: https://issues.apache.org/jira/browse/COUCHDB-1290
Project: CouchDB
Issue Type: Bug
Components: HTTP Interface
Affects Versions: 1.1, 1.2
Environment: Linux geminiman 3.0.0-1-amd64 #1 SMP Sat Aug 27 16:21:11 UTC 2011 x86_64 GNU/Linux
Reporter: matthew o'gorman
Priority: Minor
This bug is similar or is the old bug https://issues.apache.org/jira/browse/COUCHDB-1074
way to expose. put in rewrites.json
[ { "from" : "foo/:blah", "to" : "_list/foo/foo", "query" : {"descending": true}}]
returns
wget http://localhost:5984/mydb/_design/mydb/_rewrite/foo/1
{"error":"unknown_error","reason":"badarg"}
wget http://localhost:5984/mydb/_design/mydb/_rewrite/foo/string
{"error":"unknown_error","reason":"badarg"}
wget http://localhost:5984/mydb/_design/mydb/_rewrite/foo/true
{"error":"unknown_error","reason":"badarg"}
it doesnt matter whats passed. removing the query from the rewrite rule and it wont complain about badargs. tested on version 1.1 as well as trunk-r1172741
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (COUCHDB-1290) rewrite with variable and query
option produces a badarg error
Posted by "matthew o'gorman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
matthew o'gorman closed COUCHDB-1290.
-------------------------------------
Resolution: Not A Problem
it seems to have been pebkac on my end you need "" around bools
> rewrite with variable and query option produces a badarg error
> --------------------------------------------------------------
>
> Key: COUCHDB-1290
> URL: https://issues.apache.org/jira/browse/COUCHDB-1290
> Project: CouchDB
> Issue Type: Bug
> Components: HTTP Interface
> Affects Versions: 1.1, 1.2
> Environment: Linux geminiman 3.0.0-1-amd64 #1 SMP Sat Aug 27 16:21:11 UTC 2011 x86_64 GNU/Linux
> Reporter: matthew o'gorman
> Priority: Minor
>
> This bug is similar or is the old bug https://issues.apache.org/jira/browse/COUCHDB-1074
> way to expose. put in rewrites.json
> [ { "from" : "foo/:blah", "to" : "_list/foo/foo", "query" : {"descending": true}}]
> returns
> wget http://localhost:5984/mydb/_design/mydb/_rewrite/foo/1
> {"error":"unknown_error","reason":"badarg"}
> wget http://localhost:5984/mydb/_design/mydb/_rewrite/foo/string
> {"error":"unknown_error","reason":"badarg"}
> wget http://localhost:5984/mydb/_design/mydb/_rewrite/foo/true
> {"error":"unknown_error","reason":"badarg"}
> it doesnt matter whats passed. removing the query from the rewrite rule and it wont complain about badargs. tested on version 1.1 as well as trunk-r1172741
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (COUCHDB-1290) rewrite with variable and query
option produces a badarg error
Posted by "Nathan Vander Wilt (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13164645#comment-13164645 ]
Nathan Vander Wilt commented on COUCHDB-1290:
---------------------------------------------
Is this a dupe of [#COUCHDB-1193]?
> rewrite with variable and query option produces a badarg error
> --------------------------------------------------------------
>
> Key: COUCHDB-1290
> URL: https://issues.apache.org/jira/browse/COUCHDB-1290
> Project: CouchDB
> Issue Type: Bug
> Components: HTTP Interface
> Affects Versions: 1.1, 1.2
> Environment: Linux geminiman 3.0.0-1-amd64 #1 SMP Sat Aug 27 16:21:11 UTC 2011 x86_64 GNU/Linux
> Reporter: matthew o'gorman
> Priority: Minor
>
> This bug is similar or is the old bug https://issues.apache.org/jira/browse/COUCHDB-1074
> way to expose. put in rewrites.json
> [ { "from" : "foo/:blah", "to" : "_list/foo/foo", "query" : {"descending": true}}]
> returns
> wget http://localhost:5984/mydb/_design/mydb/_rewrite/foo/1
> {"error":"unknown_error","reason":"badarg"}
> wget http://localhost:5984/mydb/_design/mydb/_rewrite/foo/string
> {"error":"unknown_error","reason":"badarg"}
> wget http://localhost:5984/mydb/_design/mydb/_rewrite/foo/true
> {"error":"unknown_error","reason":"badarg"}
> it doesnt matter whats passed. removing the query from the rewrite rule and it wont complain about badargs. tested on version 1.1 as well as trunk-r1172741
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (COUCHDB-1290) rewrite with variable and query
option produces a badarg error
Posted by "matthew o'gorman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13108099#comment-13108099 ]
matthew o'gorman commented on COUCHDB-1290:
-------------------------------------------
I spoke to soon it does seem to be fixed in r1172741 will have to play with a bit more and see why i thought otherwise.
> rewrite with variable and query option produces a badarg error
> --------------------------------------------------------------
>
> Key: COUCHDB-1290
> URL: https://issues.apache.org/jira/browse/COUCHDB-1290
> Project: CouchDB
> Issue Type: Bug
> Components: HTTP Interface
> Affects Versions: 1.1, 1.2
> Environment: Linux geminiman 3.0.0-1-amd64 #1 SMP Sat Aug 27 16:21:11 UTC 2011 x86_64 GNU/Linux
> Reporter: matthew o'gorman
> Priority: Minor
>
> This bug is similar or is the old bug https://issues.apache.org/jira/browse/COUCHDB-1074
> way to expose. put in rewrites.json
> [ { "from" : "foo/:blah", "to" : "_list/foo/foo", "query" : {"descending": true}}]
> returns
> wget http://localhost:5984/mydb/_design/mydb/_rewrite/foo/1
> {"error":"unknown_error","reason":"badarg"}
> wget http://localhost:5984/mydb/_design/mydb/_rewrite/foo/string
> {"error":"unknown_error","reason":"badarg"}
> wget http://localhost:5984/mydb/_design/mydb/_rewrite/foo/true
> {"error":"unknown_error","reason":"badarg"}
> it doesnt matter whats passed. removing the query from the rewrite rule and it wont complain about badargs. tested on version 1.1 as well as trunk-r1172741
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira