You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Jason Davies (JIRA)" <ji...@apache.org> on 2009/04/30 18:52:30 UTC

[jira] Created: (COUCHDB-341) No way to reconstruct true path in _list and _show functions

No way to reconstruct true path in _list and _show functions
------------------------------------------------------------

                 Key: COUCHDB-341
                 URL: https://issues.apache.org/jira/browse/COUCHDB-341
             Project: CouchDB
          Issue Type: Improvement
          Components: HTTP Interface
            Reporter: Jason Davies
            Priority: Minor


The req.path variable is a list of path components.  However, it is impossible, for example, to tell whether the actual path ends in '/' or not.  I propose putting the true path into req.path as a string, and using a (JavaScript) helper function to split it into components instead.  Alternatively the empty string '' could be appended to the list for paths ending in '/', but I think this is probably more confusing.

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


[jira] Updated: (COUCHDB-341) No way to reconstruct true path in _list and _show functions

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

Paul Joseph Davis updated COUCHDB-341:
--------------------------------------

    Skill Level: New Contributors Level (Easy)

> No way to reconstruct true path in _list and _show functions
> ------------------------------------------------------------
>
>                 Key: COUCHDB-341
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-341
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>            Reporter: Jason Davies
>            Priority: Minor
>
> The req.path variable is a list of path components.  However, it is impossible, for example, to tell whether the actual path ends in '/' or not.  I propose putting the true path into req.path as a string, and using a (JavaScript) helper function to split it into components instead.  Alternatively the empty string '' could be appended to the list for paths ending in '/', but I think this is probably more confusing.

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