Project

General

Profile

Bug #28600

Ruby 2.7 FrozenError with LDAP auth sources

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

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

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

Related to Foreman - Bug #7548: Cannot use UTF8 characters as a user's login, firstname or lastnameClosed2014-09-19
Blocks Foreman - Refactor #28587: Support Ruby 2.7 in coreResolved

Associated revisions

Revision a4872320 (diff)
Added by Michael Moll about 3 years ago

Fixes #28600 - don't change encoding of empty strings

Ruby 2.7 freezes generated empty strings by default.

History

#1 Updated by Anonymous over 3 years ago

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

#2 Updated by Anonymous over 3 years ago

#3 Updated by The Foreman Bot about 3 years ago

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

#4 Updated by The Foreman Bot about 3 years ago

  • Fixed in Releases 2.0.0 added

#5 Updated by Anonymous about 3 years ago

  • Status changed from Ready For Testing to Closed

#6 Updated by The Foreman Bot almost 3 years ago

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

#7 Updated by Tomer Brisker almost 3 years ago

  • Fixed in Releases 1.24.3 added

Also available in: Atom PDF