Skip to content

Conversation

@joakimlundbeck
Copy link

(Done with @perlun)

We ran into this exception in a customer environment. Unclear exactly why, but here is the stack trace. Adding the rescue clause here seems to work quite OK...

OK to merge?

Hash: ""\xC3"" on ASCII-8BIT
  org/jruby/RubyString.java:7597:in `encode'
  net/ber/core_ext/string.rb:32:in `raw_utf8_encoded'
    self.encode('UTF-8').force_encoding('ASCII-8BIT')
  net/ber/core_ext/string.rb:15:in `to_ber'
    raw_string = raw_utf8_encoded
  net/ldap/filter.rb:528:in `to_ber'
    [@left.to_s.to_ber, unescape(@right).to_ber].to_ber_contextspecific(3)
  net/ldap.rb:1449:in `search'
    request = [

@perlun
Copy link
Contributor

perlun commented May 17, 2014

Any news about this one? Just rant into it again in another environment...

perlun added a commit to ecraft/ruby-net-ldap that referenced this pull request May 23, 2014
@perlun
Copy link
Contributor

perlun commented Jun 2, 2014

For those who can't wait (like us), there is a fix available in our fork: https://github.com/ecraft/ruby-net-ldap. Basically just net-ldap 0.5.1 + this fix.

@schaary schaary closed this Aug 4, 2014
astratto pushed a commit to astratto/ruby-net-ldap that referenced this pull request Dec 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants