You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Thomas Vander Stichele (JIRA)" <ji...@apache.org> on 2011/03/29 13:20:05 UTC

[jira] [Created] (COUCHDB-1109) errors when requesting missing lists/views/shows are not helpful

errors when requesting missing lists/views/shows are not helpful
----------------------------------------------------------------

                 Key: COUCHDB-1109
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1109
             Project: CouchDB
          Issue Type: Improvement
          Components: HTTP Interface
    Affects Versions: 1.0.2
            Reporter: Thomas Vander Stichele
            Priority: Minor


While doing the training, we implemented an example list function that should have been called customers.js but I accidentally called it customer.js

So I get:

$ curl -X GET http://localhost:5984/bank/_design/demo/_list/customers/by_name?reduce=false
{"error":"not_found","reason":"missing function"}




--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (COUCHDB-1109) errors when requesting missing lists/views/shows are not helpful

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

Filipe Manana commented on COUCHDB-1109:
----------------------------------------

Hi Thomas, thanks for the patch. Looks good, do you think it can be reformatted so that it doesn't add lines exceeding 80 characters? (this is a convention we follow). I would also prefer to have the curly brackets, even if they're not mandatory for a single statement if block.

> errors when requesting missing lists/views/shows are not helpful
> ----------------------------------------------------------------
>
>                 Key: COUCHDB-1109
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1109
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 1.0.2
>            Reporter: Thomas Vander Stichele
>            Priority: Minor
>         Attachments: missing-function.patch
>
>
> While doing the training, we implemented an example list function that should have been called customers.js but I accidentally called it customer.js
> So I get:
> $ curl -X GET http://localhost:5984/bank/_design/demo/_list/customers/by_name?reduce=false
> {"error":"not_found","reason":"missing function"}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (COUCHDB-1109) errors when requesting missing lists/views/shows are not helpful

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

Filipe Manana closed COUCHDB-1109.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2

Applied to trunk, thanks Thomas.

> errors when requesting missing lists/views/shows are not helpful
> ----------------------------------------------------------------
>
>                 Key: COUCHDB-1109
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1109
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 1.0.2
>            Reporter: Thomas Vander Stichele
>            Priority: Minor
>             Fix For: 1.2
>
>         Attachments: missing-function.patch, not_found.patch
>
>
> While doing the training, we implemented an example list function that should have been called customers.js but I accidentally called it customer.js
> So I get:
> $ curl -X GET http://localhost:5984/bank/_design/demo/_list/customers/by_name?reduce=false
> {"error":"not_found","reason":"missing function"}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (COUCHDB-1109) errors when requesting missing lists/views/shows are not helpful

Posted by "Thomas Vander Stichele (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-1109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13012431#comment-13012431 ] 

Thomas Vander Stichele commented on COUCHDB-1109:
-------------------------------------------------

With the attached patch, I now get:

$ curl -X GET http://localhost:5984/bank/_design/demo/_list/customers/by_name?reduce=false
{"error":"not_found","reason":"missing lists function customers on design doc _design/demo"}

That actually tells me where to look for the reason why it's not working.

> errors when requesting missing lists/views/shows are not helpful
> ----------------------------------------------------------------
>
>                 Key: COUCHDB-1109
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1109
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 1.0.2
>            Reporter: Thomas Vander Stichele
>            Priority: Minor
>         Attachments: missing-function.patch
>
>
> While doing the training, we implemented an example list function that should have been called customers.js but I accidentally called it customer.js
> So I get:
> $ curl -X GET http://localhost:5984/bank/_design/demo/_list/customers/by_name?reduce=false
> {"error":"not_found","reason":"missing function"}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (COUCHDB-1109) errors when requesting missing lists/views/shows are not helpful

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

Thomas Vander Stichele updated COUCHDB-1109:
--------------------------------------------

    Attachment: missing-function.patch

> errors when requesting missing lists/views/shows are not helpful
> ----------------------------------------------------------------
>
>                 Key: COUCHDB-1109
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1109
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 1.0.2
>            Reporter: Thomas Vander Stichele
>            Priority: Minor
>         Attachments: missing-function.patch
>
>
> While doing the training, we implemented an example list function that should have been called customers.js but I accidentally called it customer.js
> So I get:
> $ curl -X GET http://localhost:5984/bank/_design/demo/_list/customers/by_name?reduce=false
> {"error":"not_found","reason":"missing function"}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (COUCHDB-1109) errors when requesting missing lists/views/shows are not helpful

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

Thomas Vander Stichele updated COUCHDB-1109:
--------------------------------------------

    Attachment: not_found.patch

updated patch after suggestions.

> errors when requesting missing lists/views/shows are not helpful
> ----------------------------------------------------------------
>
>                 Key: COUCHDB-1109
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1109
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 1.0.2
>            Reporter: Thomas Vander Stichele
>            Priority: Minor
>         Attachments: missing-function.patch, not_found.patch
>
>
> While doing the training, we implemented an example list function that should have been called customers.js but I accidentally called it customer.js
> So I get:
> $ curl -X GET http://localhost:5984/bank/_design/demo/_list/customers/by_name?reduce=false
> {"error":"not_found","reason":"missing function"}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira