Project

General

Profile

Bug #28600

Ruby 2.7 FrozenError with LDAP auth sources

Added by Anonymous 7 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Authentication
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:

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 coreNew

Associated revisions

Revision a4872320 (diff)
Added by Michael Moll 7 months ago

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

Ruby 2.7 freezes generated empty strings by default.

History

#1 Updated by Anonymous 7 months ago

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

#2 Updated by Anonymous 7 months ago

#3 Updated by The Foreman Bot 7 months 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 7 months ago

  • Fixed in Releases 2.0.0 added

#5 Updated by Anonymous 7 months ago

  • Status changed from Ready For Testing to Closed

#6 Updated by The Foreman Bot 3 months ago

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

#7 Updated by Tomer Brisker 3 months ago

  • Fixed in Releases 1.24.3 added

Also available in: Atom PDF