Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(local.ini): straggling s/couch_httpd_auth/chttpd_auth/ #3810

Merged
merged 1 commit into from
Oct 30, 2021
Merged

Commits on Oct 30, 2021

  1. 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] #3808
    jaydoane committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    00c1091 View commit details
    Browse the repository at this point in the history