wohali opened a new issue #1380: Fix nasty 500 error on POST to /_config when 
ini file is not writeable
URL: https://github.com/apache/couchdb/issues/1380
 
 
   Example:
   
   ```
   $ chmod a-w /opt/couchdb/etc/local.ini
   $ curl -X PUT localhost:15984/_node/_local/_config/admins/joan -d '"500"'
   {"error":"badmatch","reason":"{badrpc,{'EXIT',{{{badmatch,{error,eacces}},\n 
                 [{config_writer,save_to_file,2,\n                              
    [{file,\"src/config_writer.erl\"},{line,38}]},\n                   
{config,handle_call,3,[{file,\"src/config.erl\"},{line,251}]},\n                
   {gen_server,try_handle_call,4,\n                               
[{file,\"gen_server.erl\"},{line,615}]},\n                   
{gen_server,handle_msg,5,\n                               
[{file,\"gen_server.erl\"},{line,647}]},\n                   
{proc_lib,init_p_do_apply,3,\n                             
[{file,\"proc_lib.erl\"},{line,247}]}]},\n                 {gen_server,call,\n  
                           [config,\n                              
{set,\"admins\",\"joan\",\"500\",true,nil},\n                              
30000]}}}}","ref":1112495820}
   ```

----------------------------------------------------------------
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