We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
First, thanks for your work on this very cool middleware.
Running Rails 2.3.2 under Passenger 2.2.1. Not certain whether this is an issue with Passenger or rack-esi.
From http://kitchen.local/blogs/1/posts/new, the directive <esi:include src="http://kitchen.local/blogs/1/page_header" /> works fine.
However, <esi:include src="/blogs/1/page_header" /> instead seems to want to include "/blogs/new".
The inclusion_env in get_local_fragment() looks correct to me. Here's the development.log:
Processing PostsController#new (for 127.0.0.1 at 2009-04-23 17:54:09) [GET] Parameters: {"blog_id"=>"1"} Post Columns (2.1ms) SHOW FIELDS FROM `posts` Rendering template within layouts/admin Rendering posts/edit Completed in 36ms (View: 16, DB: 2) | 200 OK [http://kitchen.local/blogs/1/posts/new] Processing BlogsController#new (for 127.0.0.1 at 2009-04-23 17:54:09) [GET] Parameters: {"blog_id"=>"1"} ActionController::UnknownAction (No action responded to new. Actions: page_header and show): passenger (2.2.1) lib/phusion_passenger/rack/request_handler.rb:74:in `process_request' passenger (2.2.1) lib/phusion_passenger/abstract_request_handler.rb:203:in `main_loop' passenger (2.2.1) lib/phusion_passenger/railz/application_spawner.rb:340:in `start_request_handler' passenger (2.2.1) lib/phusion_passenger/railz/application_spawner.rb:298:in `handle_spawn_application' passenger (2.2.1) lib/phusion_passenger/utils.rb:181:in `safe_fork' passenger (2.2.1) lib/phusion_passenger/railz/application_spawner.rb:296:in `handle_spawn_application' passenger (2.2.1) lib/phusion_passenger/abstract_server.rb:337:in `__send__' passenger (2.2.1) lib/phusion_passenger/abstract_server.rb:337:in `main_loop' passenger (2.2.1) lib/phusion_passenger/abstract_server.rb:187:in `start_synchronously' passenger (2.2.1) lib/phusion_passenger/abstract_server.rb:154:in `start' passenger (2.2.1) lib/phusion_passenger/railz/application_spawner.rb:192:in `start' passenger (2.2.1) lib/phusion_passenger/spawn_manager.rb:257:in `spawn_rails_application' passenger (2.2.1) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' passenger (2.2.1) lib/phusion_passenger/spawn_manager.rb:251:in `spawn_rails_application' passenger (2.2.1) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' passenger (2.2.1) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' passenger (2.2.1) lib/phusion_passenger/spawn_manager.rb:250:in `spawn_rails_application' passenger (2.2.1) lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application' passenger (2.2.1) lib/phusion_passenger/spawn_manager.rb:282:in `handle_spawn_application' passenger (2.2.1) lib/phusion_passenger/abstract_server.rb:337:in `__send__' passenger (2.2.1) lib/phusion_passenger/abstract_server.rb:337:in `main_loop' passenger (2.2.1) lib/phusion_passenger/abstract_server.rb:187:in `start_synchronously' Rendering rescues/layout (not_found) /!\ FAILSAFE /!\ Thu Apr 23 17:54:09 -0400 2009 Status: 500 Internal Server Error esi:include failed to include fragment /blogs/1/page_header /Users/eshepard/Documents/code/kitchen/lib/rack/esi.rb:76:in `process_esi' /Users/eshepard/Documents/code/kitchen/lib/rack/esi.rb:68:in `gsub!' /Users/eshepard/Documents/code/kitchen/lib/rack/esi.rb:68:in `process_esi' /Users/eshepard/Documents/code/kitchen/lib/rack/esi.rb:20:in `call' /Users/eshepard/Documents/code/kitchen/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/head.rb:9:in `call' /Users/eshepard/Documents/code/kitchen/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/methodoverride.rb:24:in `call' /Users/eshepard/Documents/code/kitchen/vendor/rails/actionpack/lib/action_controller/params_parser.rb:15:in `call' /Users/eshepard/Documents/code/kitchen/vendor/rails/actionpack/lib/action_controller/rewindable_input.rb:25:in `call' /Users/eshepard/Documents/code/kitchen/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:93:in `call' /Users/eshepard/Documents/code/kitchen/vendor/rails/activesupport/lib/active_support/cache/strategy/local_cache.rb:24:in `call' /Users/eshepard/Documents/code/kitchen/vendor/rails/actionpack/lib/action_controller/reloader.rb:9:in `call' /Users/eshepard/Documents/code/kitchen/vendor/rails/actionpack/lib/action_controller/failsafe.rb:11:in `call' /Users/eshepard/Documents/code/kitchen/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/lock.rb:11:in `call' /Users/eshepard/Documents/code/kitchen/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/lock.rb:11:in `synchronize' /Users/eshepard/Documents/code/kitchen/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/lock.rb:11:in `call' /Users/eshepard/Documents/code/kitchen/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:106:in `call' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/rack/request_handler.rb:74:in `process_request' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_request_handler.rb:203:in `main_loop' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/railz/application_spawner.rb:340:in `start_request_handler' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/railz/application_spawner.rb:298:in `handle_spawn_application' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/utils.rb:181:in `safe_fork' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/railz/application_spawner.rb:296:in `handle_spawn_application' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_server.rb:337:in `__send__' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_server.rb:337:in `main_loop' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_server.rb:187:in `start_synchronously' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_server.rb:154:in `start' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/railz/application_spawner.rb:192:in `start' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/spawn_manager.rb:257:in `spawn_rails_application' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/spawn_manager.rb:251:in `spawn_rails_application' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/spawn_manager.rb:250:in `spawn_rails_application' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/spawn_manager.rb:282:in `handle_spawn_application' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_server.rb:337:in `__send__' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_server.rb:337:in `main_loop' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_server.rb:187:in `start_synchronously' /Library/Ruby/Gems/1.8/gems/passenger-2.2.1/bin/passenger-spawn-server:55
The text was updated successfully, but these errors were encountered:
Can you post the inclusion_envs for both the local and the fully qualified path?
Sorry, something went wrong.
No branches or pull requests
First, thanks for your work on this very cool middleware.
Running Rails 2.3.2 under Passenger 2.2.1. Not certain whether this is an issue with Passenger or rack-esi.
From http://kitchen.local/blogs/1/posts/new, the directive
<esi:include src="http://kitchen.local/blogs/1/page_header" /> works fine.
However, <esi:include src="/blogs/1/page_header" /> instead seems to want to include
"/blogs/new".
The inclusion_env in get_local_fragment() looks correct to me. Here's the development.log:
The text was updated successfully, but these errors were encountered: