[openstreetmap/openstreetmap-website] Mismatch between configuration and actual values for setting (Issue #3509)
Tom Hughes
notifications at github.com
Wed Mar 23 18:44:39 UTC 2022
Yes this is the trace of it getting loaded:
```
/usr/local/share/gems/ruby/3.0.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/redirecting.rb:13:in `block in <module:Redirecting>': ActionController (RuntimeError)
from /usr/local/share/gems/ruby/3.0.0/gems/activesupport-7.0.2.3/lib/active_support/concern.rb:136:in `class_eval'
from /usr/local/share/gems/ruby/3.0.0/gems/activesupport-7.0.2.3/lib/active_support/concern.rb:136:in `append_features'
from /usr/local/share/gems/ruby/3.0.0/gems/actionpack-7.0.2.3/lib/action_controller/base.rb:255:in `include'
from /usr/local/share/gems/ruby/3.0.0/gems/actionpack-7.0.2.3/lib/action_controller/base.rb:255:in `block in <class:Base>'
from /usr/local/share/gems/ruby/3.0.0/gems/actionpack-7.0.2.3/lib/action_controller/base.rb:254:in `each'
from /usr/local/share/gems/ruby/3.0.0/gems/actionpack-7.0.2.3/lib/action_controller/base.rb:254:in `<class:Base>'
from /usr/local/share/gems/ruby/3.0.0/gems/actionpack-7.0.2.3/lib/action_controller/base.rb:166:in `<module:ActionController>'
from /usr/local/share/gems/ruby/3.0.0/gems/actionpack-7.0.2.3/lib/action_controller/base.rb:7:in `<main>'
from /usr/local/share/gems/ruby/3.0.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /usr/local/share/gems/ruby/3.0.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /usr/local/share/gems/ruby/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
from /usr/local/share/gems/ruby/3.0.0/gems/oauth-plugin-0.5.1/lib/oauth-plugin.rb:19:in `block in <class:OAuthRailtie>'
from /usr/local/share/gems/ruby/3.0.0/gems/railties-7.0.2.3/lib/rails/initializable.rb:32:in `instance_exec'
from /usr/local/share/gems/ruby/3.0.0/gems/railties-7.0.2.3/lib/rails/initializable.rb:32:in `run'
from /usr/local/share/gems/ruby/3.0.0/gems/railties-7.0.2.3/lib/rails/initializable.rb:61:in `block in run_initializers'
from /usr/share/ruby/tsort.rb:228:in `block in tsort_each'
from /usr/share/ruby/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /usr/share/ruby/tsort.rb:431:in `each_strongly_connected_component_from'
from /usr/share/ruby/tsort.rb:349:in `block in each_strongly_connected_component'
from /usr/share/ruby/tsort.rb:347:in `each'
from /usr/share/ruby/tsort.rb:347:in `call'
from /usr/share/ruby/tsort.rb:347:in `each_strongly_connected_component'
from /usr/share/ruby/tsort.rb:226:in `tsort_each'
from /usr/share/ruby/tsort.rb:205:in `tsort_each'
from /usr/local/share/gems/ruby/3.0.0/gems/railties-7.0.2.3/lib/rails/initializable.rb:60:in `run_initializers'
from /usr/local/share/gems/ruby/3.0.0/gems/railties-7.0.2.3/lib/rails/application.rb:372:in `initialize!'
from /home/tom/src/osm/rails/config/environment.rb:5:in `<main>'
```
which as you say comes from `oauth-plugin` specifically from this code:
```ruby
if Rails::VERSION::MAJOR >= 3
module OAuth
module Plugin
class OAuthRailtie < Rails::Railtie
initializer "oauth-plugin.configure_rails_initialization" do |app|
ActionController::Base.send :include, OAuth::Controllers::ApplicationControllerMethods
end
end
end
end
end
```
which causes `ActionController::Base` to autoload when then initialiser runs.
What I'm not sure about is how easy it is to monkey patch that...
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3509#issuecomment-1076695415
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/3509/1076695415 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220323/e8562785/attachment.htm>
More information about the rails-dev
mailing list