Windows Rails 4.2에서 ASCII URL이 아닌 경우 오류 발생

6553 단어 thin

묘사

  • http://www.redmine.org/issues/19321
  • https://bz.apache.org/bugzilla/show_bug.cgi?id=57726
  • https://community.bitnami.com/t/problems-with-3-0-1-installation-see-report-inside/30195
  • 내 일본어 Windows 8.1 Pro에서
    Unexpected error while processing request: "\x80" on Windows-31J
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
    atch/middleware/static.rb:34:in `file?'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
    atch/middleware/static.rb:34:in `block in match?'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
    atch/middleware/static.rb:31:in `each'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
    atch/middleware/static.rb:31:in `detect'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
    atch/middleware/static.rb:31:in `match?'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
    atch/middleware/static.rb:107:in `call'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.6.0/lib/rack/sendfile.rb:
    113:in `call'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/engine.
    rb:518:in `call'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/applica
    tion.rb:164:in `call'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/railtie
    .rb:194:in `public_send'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/railtie
    .rb:194:in `method_missing'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/connection.r
    b:86:in `block in pre_process'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/connection.r
    b:84:in `catch'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/connection.r
    b:84:in `pre_process'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/connection.r
    b:53:in `process'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/connection.r
    b:39:in `receive_data'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.7/lib/eventmach
    ine.rb:187:in `run_machine'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.7/lib/eventmach
    ine.rb:187:in `run'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/backends/bas
    e.rb:73:in `start'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/server.rb:16
    2:in `start'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/controllers/
    controller.rb:87:in `start'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/runner.rb:20
    0:in `run_command'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/runner.rb:15
    6:in `run!'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/bin/thin:6:in `<top (
    required)>'
            c:/Ruby200-x64/bin/thin:23:in `load'
            c:/Ruby200-x64/bin/thin:23:in `<main>'
    
    windows-thin

    토론 #1

  • http://www.redmine.org/issues/19374
  • https://github.com/rails/rails/issues/19187
  • Unexpected error while processing request: "\x87" followed by "." on Windows-31J
    
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
    atch/middleware/static.rb:34:in `file?'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
    atch/middleware/static.rb:34:in `block in match?'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
    atch/middleware/static.rb:31:in `each'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
    atch/middleware/static.rb:31:in `detect'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
    atch/middleware/static.rb:31:in `match?'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
    atch/middleware/static.rb:107:in `call'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.6.0/lib/rack/sendfile.rb:
    113:in `call'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/engine.
    rb:518:in `call'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/applica
    tion.rb:164:in `call'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/railtie
    .rb:194:in `public_send'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/railtie
    .rb:194:in `method_missing'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/connection.r
    b:86:in `block in pre_process'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/connection.r
    b:84:in `catch'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/connection.r
    b:84:in `pre_process'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/connection.r
    b:53:in `process'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/connection.r
    b:39:in `receive_data'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.7/lib/eventmach
    ine.rb:187:in `run_machine'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.7/lib/eventmach
    ine.rb:187:in `run'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/backends/bas
    e.rb:73:in `start'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/server.rb:16
    2:in `start'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/controllers/
    controller.rb:87:in `start'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/runner.rb:20
    0:in `run_command'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/runner.rb:15
    6:in `run!'
            c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/bin/thin:6:in `<top (
    required)>'
            c:/Ruby200-x64/bin/thin:23:in `load'
            c:/Ruby200-x64/bin/thin:23:in `<main>'
    
    default

    토론 #2

    궤도 4-2 - 안정 브랜치 포함https://github.com/rails/rails/commit/4df216cb12e35c09ae5ec271755e581d692d0326 .

    좋은 웹페이지 즐겨찾기