ILYA created COUCHDB-2649:
-----------------------------
Summary: get_user_creds doesn't follow its spec
Key: COUCHDB-2649
URL: https://issues.apache.org/jira/browse/COUCHDB-2649
Project: CouchDB
Issue Type: Bug
Security Level: public (Regular issues)
Reporter: ILYA
According to the spec
https://github.com/apache/couchdb-couch/blob/master/src/couch_auth_cache.erl#L46
. get_user_creds suppose to return {ok, list(), term()}. However it doesn't do
that
https://github.com/apache/couchdb-couch/blob/master/src/couch_auth_cache.erl#L60
https://github.com/apache/couchdb-couch/blob/master/src/couch_auth_cache.erl#L64
Same function in chttpd_auth_cache.erl is also affected.
https://github.com/apache/couchdb-chttpd/blob/master/src/chttpd_auth_cache.erl#L40:L44
This bug causes a failure here
https://github.com/apache/couchdb-couch/blob/master/src/couch_httpd_auth.erl#L84
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)