Directory Studio
  1. Directory Studio
  2. DIRSTUDIO-768

Error while searching using a filter on a binary attribute

    Details

      Description

      I'm connecting to several Novell eDirectory servers.
      When using the Apache Directory LDAP Client API provider I get an error when I perform a search that returns no results. If I switch to JNDI I get no error.
      I get the following error:

      Error while performing search

      • org.apache.directory.shared.ldap.codec.api.MessageEncoderException: ERR_00004_PDU_BUFFER_SIZE_TOO_SMALL The PDU buffer size is too small !
        org.apache.directory.shared.ldap.model.exception.LdapException: org.apache.directory.shared.ldap.codec.api.MessageEncoderException: ERR_00004_PDU_BUFFER_SIZE_TOO_SMALL The PDU buffer size is too small !
        at org.apache.directory.ldap.client.api.LdapNetworkConnection.searchAsync(LdapNetworkConnection.java:1697)
        at org.apache.directory.ldap.client.api.LdapNetworkConnection.search(LdapNetworkConnection.java:1717)
        at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper$3.run(DirectoryApiConnectionWrapper.java:522)
        at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.runAndMonitor(DirectoryApiConnectionWrapper.java:1161)
        at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.checkConnectionAndRunAndMonitor(DirectoryApiConnectionWrapper.java:1095)
        at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.search(DirectoryApiConnectionWrapper.java:560)
        at org.apache.directory.studio.ldapbrowser.core.jobs.SearchRunnable.search(SearchRunnable.java:501)
        at org.apache.directory.studio.ldapbrowser.core.jobs.SearchRunnable.searchAndUpdateModel(SearchRunnable.java:318)
        at org.apache.directory.studio.ldapbrowser.core.jobs.SearchRunnable.run(SearchRunnable.java:192)
        at org.apache.directory.studio.connection.core.jobs.StudioConnectionJob.run(StudioConnectionJob.java:109)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
        Caused by: org.apache.directory.shared.ldap.codec.api.MessageEncoderException: ERR_00004_PDU_BUFFER_SIZE_TOO_SMALL The PDU buffer size is too small !
        at org.apache.directory.shared.ldap.codec.api.LdapEncoder.encodeMessage(LdapEncoder.java:213)
        at org.apache.directory.shared.ldap.codec.protocol.mina.LdapProtocolEncoder.encode(LdapProtocolEncoder.java:61)
        at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:322)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:509)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1400(DefaultIoFilterChain.java:46)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:808)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:734)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:509)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:501)
        at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:490)
        at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:435)
        at org.apache.directory.ldap.client.api.LdapNetworkConnection.writeRequest(LdapNetworkConnection.java:3945)
        at org.apache.directory.ldap.client.api.LdapNetworkConnection.searchAsync(LdapNetworkConnection.java:1691)
        ... 10 more

      org.apache.directory.shared.ldap.codec.api.MessageEncoderException: ERR_00004_PDU_BUFFER_SIZE_TOO_SMALL The PDU buffer size is too small !

        Issue Links

          Activity

          Hide
          Emmanuel Lecharny added a comment -

          This is a known bug, which has been fixed in trunk. As we have a release pending, you'll be able to test the new version tomorrow, I guess.

          Show
          Emmanuel Lecharny added a comment - This is a known bug, which has been fixed in trunk. As we have a release pending, you'll be able to test the new version tomorrow, I guess.
          Hide
          Pierre-Arnaud Marcelot added a comment -

          Aleks,

          Does the SNAPSHOT version of Studio I built for DIRSTUDIO-777 (Renaming entry fails when using Apache Directory LDAP API) also resolves this bug?

          Thanks!

          Show
          Pierre-Arnaud Marcelot added a comment - Aleks, Does the SNAPSHOT version of Studio I built for DIRSTUDIO-777 (Renaming entry fails when using Apache Directory LDAP API) also resolves this bug? Thanks!
          Hide
          Aleks M added a comment -

          Pierre, yes it does.
          I can't reproduce it now.

          Show
          Aleks M added a comment - Pierre, yes it does. I can't reproduce it now.
          Hide
          Pierre-Arnaud Marcelot added a comment - - edited

          This issue depends on DIRAPI-70 (Ldap filter syntax wich represent a binary value using escape sequence syntax).

          Show
          Pierre-Arnaud Marcelot added a comment - - edited This issue depends on DIRAPI-70 (Ldap filter syntax wich represent a binary value using escape sequence syntax).
          Hide
          Pierre-Arnaud Marcelot added a comment -

          Thanks for the confirmation Aleks.

          Fixed!

          Show
          Pierre-Arnaud Marcelot added a comment - Thanks for the confirmation Aleks. Fixed!
          Hide
          Pierre-Arnaud Marcelot added a comment -

          I edited the title to something more meaningful.

          Show
          Pierre-Arnaud Marcelot added a comment - I edited the title to something more meaningful.
          Hide
          Pierre-Arnaud Marcelot added a comment -

          Closing the issue as version 2.0.0-M3 has been released now.

          Show
          Pierre-Arnaud Marcelot added a comment - Closing the issue as version 2.0.0-M3 has been released now.

            People

            • Assignee:
              Pierre-Arnaud Marcelot
              Reporter:
              Aleks M
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development