diff options
author | Jay Doane <jaydoane@apache.org> | 2021-10-30 11:49:49 -0700 |
---|---|---|
committer | Jay Doane <jay.s.doane@gmail.com> | 2021-10-30 13:08:41 -0700 |
commit | 5a7f1d40c4f0f9327a9f4b19ce8c33a672fe818d (patch) | |
tree | cf935b89194cfd13b5453f2f14282e6d643ca567 | |
parent | 9c2de4e725f014fb56d3ffd71d5f592cf0fecc67 (diff) | |
download | couchdb-5a7f1d40c4f0f9327a9f4b19ce8c33a672fe818d.tar.gz |
fix(local.ini): straggling s/couch_httpd_auth/chttpd_auth/
The appropriately named `hack_local_ini` function in dev/run lives up
to its name by adding a random `secret` to the end of whichever
section contains the line `"; require_valid_user = false\n"`.
Recent commits [1] updated the `setup` application from
`couch_httpd_auth` to `chttpd_auth` without also changing this line
in local.ini, which had the fun effect of causing `setup` to fail with
this error:
```
[error] 2021-10-30T18:50:15.019274Z node1@127.0.0.1 <0.817.0> 85d0421b9c setup sync_admin results [{badrpc,{'EXIT',{function_clause,[{config,set,["chttpd_auth","secret",undefined,true,nil],[{file,"src/config.erl"},{line,189}]},{rpc,'-handle_call_call/6-fun-0-',5,[{file,"rpc.erl"},{line,197}]}]}}},{badrpc,{'EXIT',{function_clause,[{config,set,["chttpd_auth","secret",undefined,true,nil],[{file,"src/config.erl"},{line,189}]},{rpc,'-handle_call_call/6-fun-0-',5,[{file,"rpc.erl"},{line,197}]}]}}}] errors []
[notice] 2021-10-30T18:50:15.019530Z node1@127.0.0.1 <0.817.0> 85d0421b9c 127.0.0.1:15984 127.0.0.1 adm POST /_cluster_setup 500 ok 12
```
This change "fixes" dev/run by also updating the straggling section
name in local.ini.
[1] https://github.com/apache/couchdb/pull/3808
-rw-r--r-- | rel/overlay/etc/local.ini | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rel/overlay/etc/local.ini b/rel/overlay/etc/local.ini index 2c9e89955..398cf3e2c 100644 --- a/rel/overlay/etc/local.ini +++ b/rel/overlay/etc/local.ini @@ -43,7 +43,7 @@ ; the whitelist. ;config_whitelist = [{httpd,config_whitelist}, {log,level}, {etc,etc}] -[couch_httpd_auth] +[chttpd_auth] ; If you set this to true, you should also uncomment the WWW-Authenticate line ; above. If you don't configure a WWW-Authenticate header, CouchDB will send ; Basic realm="server" in order to prevent you getting logged out. |