From: quintus@... Date: 2015-12-29T12:22:26+00:00 Subject: [ruby-core:72592] [Ruby trunk - Bug #11924] [Open] $ gem server is broken for documentation browsing Issue #11924 has been reported by Marvin G��lker. ---------------------------------------- Bug #11924: $ gem server is broken for documentation browsing https://bugs.ruby-lang.org/issues/11924 * Author: Marvin G��lker * Status: Open * Priority: Normal * Assignee: * ruby -v: * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- The `$ gem server` command is broken. The gemserver doesn���t find the stylesheets and javascripts, so that the browser only shows the unstyled, bare HTML. Sample commandline session: ~~~~ % gem list ffi *** LOCAL GEMS *** ffi (1.9.10) % gem rdoc --overwrite ffi Parsing documentation for ffi-1.9.10 Installing ri documentation for ffi-1.9.10 % gem which ffi /home/quintus/.gem/ruby/2.2.0/gems/ffi-1.9.10/lib/ffi.rb % gem server Server started at http://0.0.0.0:8808 Server started at http://[::]:8808 localhost.localdomain - - [29/Dec/2015:13:12:46 CET] "GET /doc_root/ffi-1.9.10/ HTTP/1.1" 200 14339 - -> /doc_root/ffi-1.9.10/ localhost.localdomain - - [29/Dec/2015:13:12:47 CET] "GET /doc_root/css/rdoc.css HTTP/1.1" 404 2048 http://localhost:8808/doc_root/ffi-1.9.10/ -> /doc_root/css/rdoc.css localhost.localdomain - - [29/Dec/2015:13:12:47 CET] "GET /doc_root/css/fonts.css HTTP/1.1" 404 2048 http://localhost:8808/doc_root/ffi-1.9.10/ -> /doc_root/css/fonts.css localhost.localdomain - - [29/Dec/2015:13:12:47 CET] "GET /doc_root/ffi-1.9.10/js/navigation.js HTTP/1.1" 404 14114 http://localhost:8808/doc_root/ffi-1.9.10/ -> /doc_root/ffi-1.9.10/js/navigation.js localhost.localdomain - - [29/Dec/2015:13:12:47 CET] "GET /doc_root/ffi-1.9.10/js/search.js HTTP/1.1" 404 14110 http://localhost:8808/doc_root/ffi-1.9.10/ -> /doc_root/ffi-1.9.10/js/search.js localhost.localdomain - - [29/Dec/2015:13:12:47 CET] "GET /doc_root/ffi-1.9.10/js/searcher.js HTTP/1.1" 404 14112 http://localhost:8808/doc_root/ffi-1.9.10/ -> /doc_root/ffi-1.9.10/js/searcher.js localhost.localdomain - - [29/Dec/2015:13:12:47 CET] "GET /doc_root/ffi-1.9.10/js/search_index.js HTTP/1.1" 200 60522 http://localhost:8808/doc_root/ffi-1.9.10/ -> /doc_root/ffi-1.9.10/js/search_index.js localhost.localdomain - - [29/Dec/2015:13:13:00 CET] "GET /doc_root/ffi-1.9.10/ HTTP/1.1" 200 14339 - -> /doc_root/ffi-1.9.10/ localhost.localdomain - - [29/Dec/2015:13:13:00 CET] "GET /doc_root/js/jquery.js HTTP/1.1" 200 91669 http://localhost:8808/doc_root/ffi-1.9.10/ -> /doc_root/js/jquery.js localhost.localdomain - - [29/Dec/2015:13:13:00 CET] "GET /doc_root/js/darkfish.js HTTP/1.1" 200 4666 http://localhost:8808/doc_root/ffi-1.9.10/ -> /doc_root/js/darkfish.js localhost.localdomain - - [29/Dec/2015:13:13:00 CET] "GET /doc_root/css/fonts.css HTTP/1.1" 404 2048 http://localhost:8808/doc_root/ffi-1.9.10/ -> /doc_root/css/fonts.css localhost.localdomain - - [29/Dec/2015:13:13:00 CET] "GET /doc_root/css/rdoc.css HTTP/1.1" 404 2048 http://localhost:8808/doc_root/ffi-1.9.10/ -> /doc_root/css/rdoc.css localhost.localdomain - - [29/Dec/2015:13:13:00 CET] "GET /doc_root/css/fonts.css HTTP/1.1" 404 2048 http://localhost:8808/doc_root/ffi-1.9.10/ -> /doc_root/css/fonts.css localhost.localdomain - - [29/Dec/2015:13:13:00 CET] "GET /doc_root/css/rdoc.css HTTP/1.1" 404 2048 http://localhost:8808/doc_root/ffi-1.9.10/ -> /doc_root/css/rdoc.css localhost.localdomain - - [29/Dec/2015:13:13:00 CET] "GET /doc_root/ffi-1.9.10/js/navigation.js HTTP/1.1" 404 14114 http://localhost:8808/doc_root/ffi-1.9.10/ -> /doc_root/ffi-1.9.10/js/navigation.js localhost.localdomain - - [29/Dec/2015:13:13:00 CET] "GET /doc_root/ffi-1.9.10/js/search_index.js HTTP/1.1" 200 60522 http://localhost:8808/doc_root/ffi-1.9.10/ -> /doc_root/ffi-1.9.10/js/search_index.js localhost.localdomain - - [29/Dec/2015:13:13:00 CET] "GET /doc_root/ffi-1.9.10/js/search.js HTTP/1.1" 404 14110 http://localhost:8808/doc_root/ffi-1.9.10/ -> /doc_root/ffi-1.9.10/js/search.js localhost.localdomain - - [29/Dec/2015:13:13:00 CET] "GET /doc_root/ffi-1.9.10/js/searcher.js HTTP/1.1" 404 14112 http://localhost:8808/doc_root/ffi-1.9.10/ -> /doc_root/ffi-1.9.10/js/searcher.js ~~~~ Output of `$ gem -v`: `2.4.5.1` Notice the 404 errors when the web page is accessed. Expected behaviour is to correctly serve the CSS and JS files at the path where the documentation references them. Greetings Marvin -- https://bugs.ruby-lang.org/ Unsubscribe: