Yuji Yamano

Results 11 issues of Yuji Yamano

Nginx::SSL#servername doesn't work in content handler. Not sure if it's a bug or unexpected usage. Other SSL methods might have similar issue. I get SIGSEGV without ssl handshake handler. With...

Nginx::Request#authority doesn't return userinfo. ``` % curl http://yyamano:pass@localhost:58080/authority localhost:58080 % curl http://localhost:58080/authority localhost:58080 ``` ``` location /authority { mruby_content_handler_code 'Nginx.rputs Nginx::Request.new.authority.to_s'; } ``` It just returns HOST header field that...

Nginx::Request#content_type doesn't return Content-Type of request. It looks Nginx::Request#content_type() and Nginx::Request#content_type=() are for HTTP response, not HTTP request. Very confusing name to me. ``` location /foo { mruby_content_handler_code ' r...

I get a SIGSEGV with the following configuration. ``` location /read-request-in-mruby_set { mruby_enable_read_request_body on; mruby_set_code $body ' req = Nginx::Request.new rc = req.read_body Nginx.log Nginx::LOG_ERR, "rc:#{rc}" body = req.get_body Nginx.log...

valgrind reports invalid reads. ``` % curl http://localhost:58080/redirect/internal ``` ``` ==31904== Invalid read of size 8 ==31904== at 0x5499E1: ngx_mrb_run (ngx_http_mruby_module.c:820) ==31904== by 0x54D211: ngx_http_mruby_rewrite_inline_handler (ngx_http_mruby_module.c:1995) ==31904== by 0x4AC259: ngx_http_core_rewrite_phase...

The following configuration can cause an infinite loop. ``` location /content_handler_with_header_filter { mruby_content_handler_code 'Nginx.rputs "OK"'; mruby_output_header_filter_code 'Nginx::Request.new.headers_out["X-New-Header"] = "header_filetr"'; } location /content_handler_with_body_filter { mruby_content_handler_code 'Nginx.rputs "OK"'; mruby_output_body_filter_code ' f =...

mruby_content_handler_code doesn't allow HTTP status 200 with empty body. nginx allow it and the HTTP spec is not clear to me. What do you think? I get the error message...

I can't install zabbix-agent from source with the following configuration: ``` "zabbix": { "agent": { "servers": [ "zabbix.example.com" ], "version": "2.0.6", "install_method": "source" } } ``` Here is error message....

The change is based on http://blogs.msdn.com/b/vsofficedeveloper/archive/2008/05/08/office-2007-open-xml-mime-types.aspx

LOG_EMERG is defined twice in ap_mrb_core.c. https://github.com/matsumoto-r/mod_mruby/blob/master/src/ap_mrb_core.c#L253 https://github.com/matsumoto-r/mod_mruby/blob/master/src/ap_mrb_core.c#L257 I just found it with code inspection, not sure if it might be a real problem.