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 2012/09/28 19:19:07 UTC

[jira] [Created] (COUCHDB-1537) Result of show function incorrectly cached after login

Robert Newson created COUCHDB-1537:
--------------------------------------

             Summary: Result of show function incorrectly cached after login
                 Key: COUCHDB-1537
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1537
             Project: CouchDB
          Issue Type: Bug
    Affects Versions: 1.2, 1.1.1, 1.0.3
            Reporter: Robert Newson
             Fix For: 1.3


The ETag for a show/list function includes only the user's role. When not logged in, the user_ctx.roles defaults to []. When logged in as a user, but one with no roles, user_ctx.roles is also []. We return the same ETag, and thus the response post-login is a 304 response.

Including the user name will fix this, as it defaults to 'null', which cannot collide with any logged-in user name.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (COUCHDB-1537) Result of show function incorrectly cached after login

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

Benoit Chesneau commented on COUCHDB-1537:
------------------------------------------

sound good for me
                
> Result of show function incorrectly cached after login
> ------------------------------------------------------
>
>                 Key: COUCHDB-1537
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1537
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 1.0.3, 1.1.1, 1.2
>            Reporter: Robert Newson
>             Fix For: 1.3
>
>
> The ETag for a show/list function includes only the user's role. When not logged in, the user_ctx.roles defaults to []. When logged in as a user, but one with no roles, user_ctx.roles is also []. We return the same ETag, and thus the response post-login is a 304 response.
> Including the user name will fix this, as it defaults to 'null', which cannot collide with any logged-in user name.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (COUCHDB-1537) Result of show function incorrectly cached after login

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

Robert Newson resolved COUCHDB-1537.
------------------------------------

    Resolution: Fixed
      Assignee: Robert Newson
    
> Result of show function incorrectly cached after login
> ------------------------------------------------------
>
>                 Key: COUCHDB-1537
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1537
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 1.0.3, 1.1.1, 1.2
>            Reporter: Robert Newson
>            Assignee: Robert Newson
>             Fix For: 1.3
>
>
> The ETag for a show/list function includes only the user's role. When not logged in, the user_ctx.roles defaults to []. When logged in as a user, but one with no roles, user_ctx.roles is also []. We return the same ETag, and thus the response post-login is a 304 response.
> Including the user name will fix this, as it defaults to 'null', which cannot collide with any logged-in user name.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira