Defect #24970

Net::LDAP::LdapError is deprecated

Added by Pavel Rosick√Ĺ 10 months ago. Updated 4 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:LDAP
Target version:4.0.0
Resolution:Fixed Affected version:

Description

reference
http://www.rubydoc.info/gems/net-ldap/Net/LDAP/LdapError
Deprecation warning: Net::LDAP::LdapError is no longer used

please use
Net::LDAP::Error
http://www.rubydoc.info/gems/net-ldap/Net/LDAP/Error

class AuthSourceLdap < AuthSource
  NETWORK_EXCEPTIONS = [
    Net::LDAP::LdapError,
    Errno::ECONNABORTED, Errno::ECONNREFUSED, Errno::ECONNRESET,
    Errno::EHOSTDOWN, Errno::EHOSTUNREACH,
    SocketError
  ]

Associated revisions

Revision 16322
Added by Toshi MARUYAMA 10 months ago

replace depricated Net::LDAP::LdapError by Net::LDAP::Error (#24970)

Revision 16323
Added by Toshi MARUYAMA 10 months ago

revert r16322 (#24970)

Some tests fail.

Revision 16773
Added by Jean-Philippe Lang 4 months ago

LdapError is deprecated (#24970).

History

#1 Updated by Go MAEDA 10 months ago

  • Target version set to 3.4.0

From net-ldap-0.12.1/lib/net/ldap/error.rb:

class Net::LDAP
  class LdapError < StandardError
    def message
      "Deprecation warning: Net::LDAP::LdapError is no longer used. Use Net::LDAP::Error or rescue one of it's subclasses. \n" + super
    end
  end

  class Error < StandardError; end

#2 Updated by Toshi MARUYAMA 10 months ago

  • Target version changed from 3.4.0 to 4.1.0

#3 Updated by Mischa The Evil 10 months ago

  • Subject changed from Net::LDAP::LdapError is depricated to Net::LDAP::LdapError is deprecated

#4 Updated by Jean-Philippe Lang 4 months ago

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

net-ldap updated to 0.16.

#5 Updated by Jean-Philippe Lang 4 months ago

  • Target version changed from 4.1.0 to 4.0.0

Also available in: Atom PDF