eiri commented on issue #1238: Fix users_db_security.js delete/recreate _users 
DB
URL: https://github.com/apache/couchdb/issues/1238#issuecomment-377274171
 
 
   1. Totally agree, this test and the whole javascript suite are **really** 
hard to follow. It'd be amazing to revive Russel's suggestion to migrate it to 
Elixir.
   
   2. I think it's not that `pbkdf` or `bcrypt` don't work as expected, but 
rather hashing on heavily restricted CI hosts is not able to complete [within 5 
sec](https://github.com/apache/couchdb/blob/master/test/javascript/tests/users_db_security.js#L110)
   
   In the logs from the failed jenkins' test I found:
   ```
   [notice] 2018-03-28T17:21:33.282844Z [email protected] <0.32515.3> a82be2eaf1 
127.0.0.1:15984 127.0.0.1 undefined PUT /_users/org.couchdb.user%3Ajchris 201 
ok 511
   [warning] 2018-03-28T17:21:38.285265Z [email protected] <0.32515.3> 59932a5bfc 
couch_httpd_auth: Authentication failed for user jchris from 127.0.0.1
   [notice] 2018-03-28T17:21:38.285724Z [email protected] <0.32515.3> 59932a5bfc 
127.0.0.1:15984 127.0.0.1 undefined POST /_session 401 ok 2
   ```
   
   And when I insert something like
   ```javascript
       if (scheme == "bcrypt") {
         wait(500);
       }
       else {
         wait(5000);
       }
   ```
   at line 110 of `users_db_security.js` I'm getting the same failure and stack 
trace.

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


With regards,
Apache Git Services

Reply via email to