Closed cih997 closed 10 years ago
I was not able to replicate in my WEBrick dev env. I'll test on Apache/Passenger. You can comment line 31 and 41 if it's urgent.
I commented those lines and works fine now.
Can you please test if version 0.1.3 solves your issue?
Works like a charm. Good work.
Redmine 2.4.1 Branch develop
Log:
Started GET "/login_audit" for 130.255.153.214 at Mon Nov 25 15:00:45 +0100 2013
SyntaxError (/var/www/aspexi-prod/redmine/plugins/redmine_login_audit/app/controllers/login_audit_controller.rb:31: syntax error, unexpected ':', expecting kEND redirect_to action: 'index', status: :found ^ /var/www/aspexi-prod/redmine/plugins/redmine_login_audit/app/controllers/login_audit_controller.rb:31: syntax error, unexpected ',', expecting kEND redirect_to action: 'index', status: :found ^ /var/www/aspexi-prod/redmine/plugins/redmine_login_audit/app/controllers/login_audit_controller.rb:41: syntax error, unexpected ':', expecting kEND redirect_to action: 'index', status: :found ^ /var/www/aspexi-prod/redmine/plugins/redmine_login_audit/app/controllers/login_audit_controller.rb:41: syntax error, unexpected ',', expecting kEND redirect_to action: 'index', status: :found ^): activesupport (3.2.15) lib/active_support/dependencies.rb:251:in
require' activesupport (3.2.15) lib/active_support/dependencies.rb:251:in
require' activesupport (3.2.15) lib/active_support/dependencies.rb:236:inload_dependency' activesupport (3.2.15) lib/active_support/dependencies.rb:251:in
require' activesupport (3.2.15) lib/active_support/dependencies.rb:359:inrequire_or_load' activesupport (3.2.15) lib/active_support/dependencies.rb:502:in
load_missing_constant' activesupport (3.2.15) lib/active_support/dependencies.rb:192:inconst_missing' activesupport (3.2.15) lib/active_support/dependencies.rb:190:in
each' activesupport (3.2.15) lib/active_support/dependencies.rb:190:inconst_missing' activesupport (3.2.15) lib/active_support/inflector/methods.rb:219:in
constantize' activesupport (3.2.15) lib/active_support/inflector/methods.rb:218:ineach' activesupport (3.2.15) lib/active_support/inflector/methods.rb:218:in
constantize' activesupport (3.2.15) lib/active_support/dependencies.rb:554:inget' actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:69:in
controller_reference' actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:54:incontroller' actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:32:in
call' journey (1.0.4) lib/journey/router.rb:68:incall' journey (1.0.4) lib/journey/router.rb:56:in
each' journey (1.0.4) lib/journey/router.rb:56:incall' actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:608:in
call' rack-openid (1.3.1) lib/rack/openid.rb:98:incall' actionpack (3.2.15) lib/action_dispatch/middleware/best_standards_support.rb:17:in
call' rack (1.4.5) lib/rack/etag.rb:23:incall' rack (1.4.5) lib/rack/conditionalget.rb:25:in
call' actionpack (3.2.15) lib/action_dispatch/middleware/head.rb:14:incall' actionpack (3.2.15) lib/action_dispatch/middleware/params_parser.rb:21:in
call' actionpack (3.2.15) lib/action_dispatch/middleware/flash.rb:242:incall' rack (1.4.5) lib/rack/session/abstract/id.rb:210:in
context' rack (1.4.5) lib/rack/session/abstract/id.rb:205:incall' actionpack (3.2.15) lib/action_dispatch/middleware/cookies.rb:341:in
call' activerecord (3.2.15) lib/active_record/query_cache.rb:64:incall' activerecord (3.2.15) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in
call' actionpack (3.2.15) lib/action_dispatch/middleware/callbacks.rb:28:incall' activesupport (3.2.15) lib/active_support/callbacks.rb:405:in
_run848220475call4callbacks' activesupport (3.2.15) lib/active_support/callbacks.rb:405:insend' activesupport (3.2.15) lib/active_support/callbacks.rb:405:in
run_callback' activesupport (3.2.15) lib/active_support/callbacks.rb:385:in_run_call_callbacks' activesupport (3.2.15) lib/active_support/callbacks.rb:81:in
send' activesupport (3.2.15) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (3.2.15) lib/action_dispatch/middleware/callbacks.rb:27:in
call' actionpack (3.2.15) lib/action_dispatch/middleware/remote_ip.rb:31:incall' actionpack (3.2.15) lib/action_dispatch/middleware/debug_exceptions.rb:16:in
call' actionpack (3.2.15) lib/action_dispatch/middleware/show_exceptions.rb:56:incall' railties (3.2.15) lib/rails/rack/logger.rb:32:in
call_app' railties (3.2.15) lib/rails/rack/logger.rb:16:incall' activesupport (3.2.15) lib/active_support/tagged_logging.rb:22:in
tagged' railties (3.2.15) lib/rails/rack/logger.rb:16:incall' actionpack (3.2.15) lib/action_dispatch/middleware/request_id.rb:22:in
call' rack (1.4.5) lib/rack/methodoverride.rb:21:incall' rack (1.4.5) lib/rack/runtime.rb:17:in
call' activesupport (3.2.15) lib/active_support/cache/strategy/local_cache.rb:72:incall' rack (1.4.5) lib/rack/lock.rb:15:in
call' actionpack (3.2.15) lib/action_dispatch/middleware/static.rb:63:incall' rack-cache (1.2) lib/rack/cache/context.rb:136:in
forward' rack-cache (1.2) lib/rack/cache/context.rb:245:infetch' rack-cache (1.2) lib/rack/cache/context.rb:185:in
lookup' rack-cache (1.2) lib/rack/cache/context.rb:66:incall!' rack-cache (1.2) lib/rack/cache/context.rb:51:in
call' railties (3.2.15) lib/rails/engine.rb:484:incall' railties (3.2.15) lib/rails/application.rb:231:in
call' railties (3.2.15) lib/rails/railtie/configurable.rb:30:insend' railties (3.2.15) lib/rails/railtie/configurable.rb:30:in
method_missing' passenger (3.0.12) lib/phusion_passenger/rack/request_handler.rb:96:inprocess_request' passenger (3.0.12) lib/phusion_passenger/abstract_request_handler.rb:513:in
accept_and_process_next_request' passenger (3.0.12) lib/phusion_passenger/abstract_request_handler.rb:274:inmain_loop' passenger (3.0.12) lib/phusion_passenger/rack/application_spawner.rb:206:in
start_request_handler' passenger (3.0.12) lib/phusion_passenger/rack/application_spawner.rb:171:insend' passenger (3.0.12) lib/phusion_passenger/rack/application_spawner.rb:171:in
handle_spawn_application' passenger (3.0.12) lib/phusion_passenger/utils.rb:479:insafe_fork' passenger (3.0.12) lib/phusion_passenger/rack/application_spawner.rb:166:in
handle_spawn_application' passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:357:in `send__' passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:357:inserver_main_loop' passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:206:in
start_synchronously' passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:180:instart' passenger (3.0.12) lib/phusion_passenger/rack/application_spawner.rb:129:in
start' passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:253:inspawn_rack_application' passenger (3.0.12) lib/phusion_passenger/abstract_server_collection.rb:132:in
lookup_or_add' passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:246:inspawn_rack_application' passenger (3.0.12) lib/phusion_passenger/abstract_server_collection.rb:82:in
synchronize' passenger (3.0.12) lib/phusion_passenger/abstract_server_collection.rb:79:insynchronize' passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:244:in
spawn_rack_application' passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:137:inspawn_application' passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:275:in
handle_spawn_application' passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:357:in__send__' passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:357:in
server_main_loop' passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' passenger (3.0.12) helper-scripts/passenger-spawn-server:99