Project

General

Profile

Bug #14461

Smart proxy fails to load any modules when running under ruby 2.3

Added by Dmitri Dolguikh over 4 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Core
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Related issues

Related to Foreman - Refactor #14840: Support Ruby 2.3Closed2016-04-26

Associated revisions

Revision b215df84 (diff)
Added by Dmitri Dolguikh over 4 years ago

Fixes #14461 - removed :method_missing from Proxy::Settings::Plugin

OpenStruct always returned 'nil' when calling methods for non-existing keys. Before ruby 2.3 methods for keys were defined during OpenStruct instantiation.
Starting with ruby 2.3 methods for members of the OpenStruct are defined lazily, via method_missing. Our override of the method was breaking OpenStruct (and
as a consequence Proxy::Settings::Plugin).

History

#1 Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/smart-proxy/pull/404 added

#2 Updated by Dmitri Dolguikh over 4 years ago

  • Category set to Core

#3 Updated by Anonymous over 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Dominic Cleal over 4 years ago

  • Legacy Backlogs Release (now unused) set to 141

#5 Updated by Anonymous over 4 years ago

Also available in: Atom PDF