Defect #24970

Net::LDAP::LdapError is deprecated

Added by Pavel Rosick√Ĺ 5 months ago. Updated 5 months ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:LDAP
Target version:3.5.0
Resolution: 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 5 months ago

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

Revision 16323
Added by Toshi MARUYAMA 5 months ago

revert r16322 (#24970)

Some tests fail.

History

#1 Updated by Go MAEDA 5 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 5 months ago

  • Target version changed from 3.4.0 to 3.5.0

#3 Updated by Mischa The Evil 5 months ago

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

Also available in: Atom PDF