Project

General

Profile

Actions

Feature #21923

closed

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

Added by Vasil Kovalevsky almost 9 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
LDAP
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

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.


Related issues

Related to Redmine - Feature #6166: Support german umlauts and whitespaces in login stringNew2010-08-18

Actions
Actions #1

Updated by Toshi MARUYAMA almost 9 years ago

  • Tracker changed from Defect to Feature
  • Target version set to 4.0.0
Actions #2

Updated by Toshi MARUYAMA almost 9 years ago

  • Category set to LDAP
Actions #3

Updated by Toshi MARUYAMA almost 9 years ago

  • Related to Feature #6166: Support german umlauts and whitespaces in login string added
Actions #4

Updated by Toshi MARUYAMA over 8 years ago

  • Description updated (diff)
Actions #5

Updated by Jean-Philippe Lang over 7 years ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

net-ldap was updated to 0.16 in r16773.

Actions

Also available in: Atom PDF