You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2019/06/27 12:09:04 UTC

[GitHub] [couchdb] UncleSamSwiss opened a new issue #2064: Effect of password change is delayed

UncleSamSwiss opened a new issue #2064: Effect of password change is delayed
URL: https://github.com/apache/couchdb/issues/2064
 
 
   ## Description
   
   In our automated tests, we do the following:
   
   1. Create user with password 1
   2. Update user to password 2
   3. Delete _users database
   3. Create _users database
   4. Create user with password 1
   
   When you now immediately try to log in with the user (using password 1), you get a 401:
   ```
   [warning] 2019-06-27T11:31:29.263041Z nonode@nohost <0.527.5> 109d2500ae couch_httpd_auth: Authentication failed for user john from 172.22.0.6
   [notice] 2019-06-27T11:31:29.263390Z nonode@nohost <0.527.5> 109d2500ae couchdb:5984 172.22.0.6 undefined POST /_session 401 ok 1
   ```
   
   After about 2 seconds, the CouchDB log shows the following messages:
   
   ```
   [warning] 2019-06-27T11:31:31.279927Z nonode@nohost <0.860.5> -------- couch_db calculate_start_seq uuid prefix mismatch db: <<"shards/e0000000-ffffffff/_users.1561635086">>, seq: 0, uuid: <<"0f8be62">>, epoch_node: undefined
   [warning] 2019-06-27T11:31:31.279960Z nonode@nohost <0.861.5> -------- couch_db calculate_start_seq uuid prefix mismatch db: <<"shards/c0000000-dfffffff/_users.1561635086">>, seq: 0, uuid: <<"7731681">>, epoch_node: undefined
   [warning] 2019-06-27T11:31:31.280027Z nonode@nohost <0.862.5> -------- couch_db calculate_start_seq uuid prefix mismatch db: <<"shards/a0000000-bfffffff/_users.1561635086">>, seq: 0, uuid: <<"c0a50b8">>, epoch_node: undefined
   [warning] 2019-06-27T11:31:31.280124Z nonode@nohost <0.863.5> -------- couch_db calculate_start_seq uuid prefix mismatch db: <<"shards/80000000-9fffffff/_users.1561635086">>, seq: 3, uuid: <<"07dcdfe">>, epoch_node: nonode@nohost
   [warning] 2019-06-27T11:31:31.280865Z nonode@nohost <0.865.5> -------- couch_db calculate_start_seq uuid prefix mismatch db: <<"shards/40000000-5fffffff/_users.1561635086">>, seq: 2, uuid: <<"1876e25">>, epoch_node: nonode@nohost
   [warning] 2019-06-27T11:31:31.280737Z nonode@nohost <0.864.5> -------- couch_db calculate_start_seq uuid prefix mismatch db: <<"shards/60000000-7fffffff/_users.1561635086">>, seq: 1, uuid: <<"bec5a93">>, epoch_node: nonode@nohost
   [warning] 2019-06-27T11:31:31.281044Z nonode@nohost <0.866.5> -------- couch_db calculate_start_seq uuid prefix mismatch db: <<"shards/20000000-3fffffff/_users.1561635086">>, seq: 0, uuid: <<"e4e6d33">>, epoch_node: undefined
   [warning] 2019-06-27T11:31:31.281464Z nonode@nohost <0.868.5> -------- couch_db calculate_start_seq uuid prefix mismatch db: <<"shards/00000000-1fffffff/_users.1561635086">>, seq: 2, uuid: <<"f676c77">>, epoch_node: nonode@nohost
   ```
   
   Immediately after those messages, the user can log in with password 1.
   
   ## Steps to Reproduce
   
   See above. Be aware that you will have to script it, otherwise you are most certainly too slow to reproduce the behaviour.
   
   ## Expected Behaviour
   
   In any situation, when a new user is created with a given password or his password is changed, he should be able to log in immediately.
   
   ## Your Environment
   
   CouchDB running inside Docker (official image):
   ```
   {"couchdb":"Welcome","version":"2.3.1","git_sha":"c298091a4","uuid":"b785c78402c2be32ae80009e14b9e814","features":["pluggable-storage-engines","scheduler"],"vendor":{"name":"The Apache Software Foundation"}}
   ```
   
   ## Additional context
   
   Note: if you don't change the password; everything works like a charm.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services