Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8185935

com.sun.jndi.ldap.BerEncoder.encodeLength is hardcoded to handle only 16MB strings

XMLWordPrintable

      A DESCRIPTION OF THE REQUEST :
      Seems like the method throws a "String too long" exception when a large string of data which is over 16MB in length is downloaded

      JUSTIFICATION :
      We use jndi to update binary data in ldap. The data can be of various lengths

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Should be able to update any size binary data in ldap
      ACTUAL -
      Get a error of javax.naming.CommunicationException: string too long

      with the base exception happening at
      Caused by: com.sun.jndi.ldap.Ber$EncodeException: string too long
              at com.sun.jndi.ldap.BerEncoder.encodeLength(BerEncoder.java:383)


      CUSTOMER SUBMITTED WORKAROUND :
      no workaround. Probably write in a different language

            aefimov Aleksej Efimov
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: