I can’t reproduce this, could you include the full document contents (change 
password to "" but leave it in if it existed)?


On 5 Feb 2014, at 17:19, Nathan Vander Wilt <[email protected]> wrote:

> I'm trying to manually set a new password for a user, but I get a 500 with a 
> concerning stacktrace when I do so.
> 
> Basically what I'm doing is pulling up the _users/org.couchdb.user:doc in 
> Futon, deleting the password_sha and salt fields, and adding a new field 
> `password` with the desired password. When I save I get the stacktrace below.
> 
> This is CouchDB 1.3.0 on Erlang R15B02. Is this indicative of trouble with my 
> build? Oddly when my app's middleware does IIRC the same thing it's fine (but 
> it might be using special logic for Cloudant to hash the password locally…) 
> Additionally other users *are* able to login so it can't be a completely 
> borked ability to hash things as if OpenSSL lib was wrong or whatever? 
> (Although maybe sha works but pbkdf2 doesn't?)
> 
> thanks,
> -natevw
> 
> 
> 
> 
> 
> 
> 
> [Wed, 05 Feb 2014 17:04:02 GMT] [error] [<0.30827.19>] Badarg error in HTTP 
> request
> [Wed, 05 Feb 2014 17:04:02 GMT] [info] [<0.30827.19>] Stacktrace: 
> [{crypto,sha_mac_n,
>                                    [7XXXX,
>                                     <<XX,XX,XX,XX,XX,XX,XX,XX,XX,XX,XX,XX,
>                                       XX,XX,XX,XX,XX,XX,XX,XX,XX,XX,XX,XX,
>                                       XX,XX,XX,XX,XX,XX,XX,XX,XX,XX,XX,XX>>,
>                                     20],
>                                    []},
>                                   {couch_passwords,pbkdf2,7,
>                                    [{file,
>                                      
> "/home/natevw/build-couchdb/dependencies/couchdb/src/couchdb/couch_passwords.erl"},
>                                     {line,83}]},
>                                   {couch_passwords,pbkdf2,6,
>                                    [{file,
>                                      
> "/home/natevw/build-couchdb/dependencies/couchdb/src/couchdb/couch_passwords.erl"},
>                                     {line,74}]},
>                                   {couch_passwords,pbkdf2,4,
>                                    [{file,
>                                      
> "/home/natevw/build-couchdb/dependencies/couchdb/src/couchdb/couch_passwords.erl"},
>                                     {line,65}]},
>                                   {couch_passwords,pbkdf2,3,
>                                    [{file,
>                                      
> "/home/natevw/build-couchdb/dependencies/couchdb/src/couchdb/couch_passwords.erl"},
>                                     {line,54}]},
>                                   {couch_users_db,save_doc,1,
>                                    [{file,
>                                      
> "/home/natevw/build-couchdb/dependencies/couchdb/src/couchdb/couch_users_db.erl"},
>                                     {line,68}]},
>                                   {couch_db,'-before_docs_update/2-fun-0-',
>                                    3,
>                                    [{file,
>                                      
> "/home/natevw/build-couchdb/dependencies/couchdb/src/couchdb/couch_db.erl"},
>                                     {line,887}]},
>                                   {lists,map,2,
>                                    [{file,"lists.erl"},{line,1173}]}]

Reply via email to