プロジェクト

全般

プロフィール

Vote #77151

完了

net-ldap 0.12.0 - 0.12.1 dropped support of UTF-8

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
LDAP_28
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
28
version_id:
99
issue_org_id:
21923
author_id:
103744
assigned_to_id:
1
comments:
5
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Issue #17618 (migration to net-ldap 0.12), dropped support of UTF-8, I always get Encoding::CompatibilityError ACSII-8BIT and UTF-8 (for any language except english of cource).
And you catch this error here #21453 and fixed by adding force_encoding (maybe there was need to stop and check net-ldap).
net-ldap 0.13 fixed for this, but dropped support ruby 1.9.3 (RM 3.2 still support).

So, just info for others devs, which need to make any LDAP connections and read data.
Commit from net-ldap 0.13 https://github.com/ruby-ldap/ruby-net-ldap/commit/ecce488daed676351b561e39a2dae1147983c939


  class Net::BER::BerIdentifiedString
    def initialize args
      super
      current_encoding = encoding
      if current_encoding == Encoding::BINARY
        force_encoding('UTF-8')
        force_encoding(current_encoding) unless valid_encoding?
      end
    end
  end

Its take my 3 hours to find error and try to fix this (not just simple force_encoding, was need general solution). Save your time.


journals

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
net-ldap was updated to 0.16 in r16773.
--------------------------------------------------------------------------------


related_issues

relates,New,6166,Support german umlauts and whitespaces in login string

Admin Redmine さんが約4年前に更新

  • カテゴリLDAP_28 にセット
  • 対象バージョン4.0.0_99 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0