Project

General

Profile

Actions

Bug #28600

closed

Ruby 2.7 FrozenError with LDAP auth sources

Added by Anonymous over 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Authentication
Target version:
-
Fixed in Releases:
Found in Releases:

Description

2019-12-31T01:15:47 [D|app|] Backtrace for 'Error during authentication against 'LDAP-ldap-server'' error (FrozenError): can't modify frozen String: "" 
 | /home/mmoll/mystuff/gitrepos/theforeman/foreman/app/models/auth_sources/auth_source_ldap.rb:74:in `force_encoding'
 | /home/mmoll/mystuff/gitrepos/theforeman/foreman/app/models/auth_sources/auth_source_ldap.rb:74:in `block in authenticate'
 | /home/mmoll/mystuff/gitrepos/theforeman/foreman/app/models/auth_sources/auth_source_ldap.rb:74:in `each'
 | /home/mmoll/mystuff/gitrepos/theforeman/foreman/app/models/auth_sources/auth_source_ldap.rb:74:in `authenticate'
 | /home/mmoll/mystuff/gitrepos/theforeman/foreman/app/models/auth_source.rb:96:in `block in authenticate'
 | /home/mmoll/mystuff/gitrepos/theforeman/foreman/vendor/ruby/2.7.0/gems/activerecord-5.2.1/lib/active_record/relation/batches.rb:70:in `block (2 levels) in find_each'
 | /home/mmoll/mystuff/gitrepos/theforeman/foreman/vendor/ruby/2.7.0/gems/activerecord-5.2.1/lib/active_record/relation/batches.rb:70:in `each'
 | /home/mmoll/mystuff/gitrepos/theforeman/foreman/vendor/ruby/2.7.0/gems/activerecord-5.2.1/lib/active_record/relation/batches.rb:70:in `block in find_each'
 | /home/mmoll/mystuff/gitrepos/theforeman/foreman/vendor/ruby/2.7.0/gems/activerecord-5.2.1/lib/active_record/relation/batches.rb:136:in `block in find_in_batches'
 | /home/mmoll/mystuff/gitrepos/theforeman/foreman/vendor/ruby/2.7.0/gems/activerecord-5.2.1/lib/active_record/relation/batches.rb:238:in `block in in_batches'
 | /home/mmoll/mystuff/gitrepos/theforeman/foreman/vendor/ruby/2.7.0/gems/activerecord-5.2.1/lib/active_record/relation/batches.rb:222:in `loop'
 | /home/mmoll/mystuff/gitrepos/theforeman/foreman/vendor/ruby/2.7.0/gems/activerecord-5.2.1/lib/active_record/relation/batches.rb:222:in `in_batches'
 | /home/mmoll/mystuff/gitrepos/theforeman/foreman/vendor/ruby/2.7.0/gems/activerecord-5.2.1/lib/active_record/relation/batches.rb:135:in `find_in_batches'
 | /home/mmoll/mystuff/gitrepos/theforeman/foreman/vendor/ruby/2.7.0/gems/activerecord-5.2.1/lib/active_record/relation/batches.rb:69:in `find_each'
 | /home/mmoll/mystuff/gitrepos/theforeman/foreman/app/models/auth_source.rb:93:in `authenticate'
 | /home/mmoll/mystuff/gitrepos/theforeman/foreman/test/models/auth_sources/auth_source_ldap_test.rb:75:in `block in <class:AuthSourceLdapTest>'
[...]

Related issues 2 (0 open2 closed)

Related to Foreman - Bug #7548: Cannot use UTF8 characters as a user's login, firstname or lastnameClosedTimo Goebel09/19/2014Actions
Blocks Foreman - Refactor #28587: Support Ruby 2.7 in coreResolvedActions
Actions #1

Updated by Anonymous over 4 years ago

  • Related to Bug #7548: Cannot use UTF8 characters as a user's login, firstname or lastname added
Actions #2

Updated by Anonymous over 4 years ago

Actions #3

Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Anonymous
  • Pull request https://github.com/theforeman/foreman/pull/7311 added
Actions #4

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases 2.0.0 added
Actions #5

Updated by Anonymous over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions #6

Updated by The Foreman Bot almost 4 years ago

  • Pull request https://github.com/theforeman/foreman/pull/7615 added
Actions #7

Updated by Tomer Brisker almost 4 years ago

  • Fixed in Releases 1.24.3 added
Actions

Also available in: Atom PDF