You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Robert Newson (JIRA)" <ji...@apache.org> on 2010/05/31 18:50:40 UTC

[jira] Created: (COUCHDB-781) Validate replication arguments

Validate replication arguments
------------------------------

                 Key: COUCHDB-781
                 URL: https://issues.apache.org/jira/browse/COUCHDB-781
             Project: CouchDB
          Issue Type: Improvement
          Components: Replication
            Reporter: Robert Newson


This patch checks that all keys in the JSON passed via _replicate/ are valid. This provides an information 400 error like this;

{"error":"bad_request","reason":"Unsupported key 'foo' with value 'true'"}

instead of silently accepting the request.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-781) Validate replication arguments

Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Newson updated COUCHDB-781:
----------------------------------

    Attachment: validate_replication_props.patch

test suite passes.

> Validate replication arguments
> ------------------------------
>
>                 Key: COUCHDB-781
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-781
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Replication
>            Reporter: Robert Newson
>         Attachments: validate_replication_props.patch
>
>
> This patch checks that all keys in the JSON passed via _replicate/ are valid. This provides an information 400 error like this;
> {"error":"bad_request","reason":"Unsupported key 'foo' with value 'true'"}
> instead of silently accepting the request.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-781) Validate replication arguments

Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Newson updated COUCHDB-781:
----------------------------------

    Attachment: validate_replication_props.patch

> Validate replication arguments
> ------------------------------
>
>                 Key: COUCHDB-781
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-781
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Replication
>            Reporter: Robert Newson
>         Attachments: validate_replication_props.patch
>
>
> This patch checks that all keys in the JSON passed via _replicate/ are valid. This provides an information 400 error like this;
> {"error":"bad_request","reason":"Unsupported key 'foo' with value 'true'"}
> instead of silently accepting the request.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COUCHDB-781) Validate replication arguments

Posted by "Filipe Manana (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12873716#action_12873716 ] 

Filipe Manana commented on COUCHDB-781:
---------------------------------------

Do all the tests pass?

It seems you're not validating parameter "query_params".

> Validate replication arguments
> ------------------------------
>
>                 Key: COUCHDB-781
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-781
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Replication
>            Reporter: Robert Newson
>         Attachments: validate_replication_props.patch
>
>
> This patch checks that all keys in the JSON passed via _replicate/ are valid. This provides an information 400 error like this;
> {"error":"bad_request","reason":"Unsupported key 'foo' with value 'true'"}
> instead of silently accepting the request.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-781) Validate replication arguments

Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Newson updated COUCHDB-781:
----------------------------------

    Attachment:     (was: validate_replication_props.patch)

> Validate replication arguments
> ------------------------------
>
>                 Key: COUCHDB-781
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-781
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Replication
>            Reporter: Robert Newson
>         Attachments: validate_replication_props.patch
>
>
> This patch checks that all keys in the JSON passed via _replicate/ are valid. This provides an information 400 error like this;
> {"error":"bad_request","reason":"Unsupported key 'foo' with value 'true'"}
> instead of silently accepting the request.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-781) Validate replication arguments

Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Joseph Davis updated COUCHDB-781:
--------------------------------------

    Skill Level: New Contributors Level (Easy)

> Validate replication arguments
> ------------------------------
>
>                 Key: COUCHDB-781
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-781
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Replication
>            Reporter: Robert Newson
>         Attachments: validate_replication_props.patch
>
>
> This patch checks that all keys in the JSON passed via _replicate/ are valid. This provides an information 400 error like this;
> {"error":"bad_request","reason":"Unsupported key 'foo' with value 'true'"}
> instead of silently accepting the request.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.