Directory Studio
  1. Directory Studio
  2. DIRSTUDIO-463

Browsing the directory produce too many search requests

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.4.0
    • Component/s: studio-ldapbrowser
    • Labels:
      None

      Description

      Browsing the directory produce too many search requests.

      an example:

      Expanding "ou=people" containing 20000 user accounts will produce one search request to get all DNs contained in "ou=people" and !Unable to render embedded object: File (additionally) not found.! 20000 search requests for each founds DNs. Why?!?

      The same scenario under Directory Studio 2.x only produce a single search request...

      This is easy to observe in the Search Logs of Directory Studio.

        Activity

        Hide
        Pierre-Arnaud Marcelot added a comment -

        I can confirm this.

        First, I thought this was because the "Check for children" option was checked in the "LDAP > Browser" preference page...
        But, even with this option disabled, Studio keeps doing an additional search for each search result.
        This search to be executed whether the option is checked or not.
        I think the real bug is here...

        Show
        Pierre-Arnaud Marcelot added a comment - I can confirm this. First, I thought this was because the "Check for children" option was checked in the "LDAP > Browser" preference page... But, even with this option disabled, Studio keeps doing an additional search for each search result. This search to be executed whether the option is checked or not. I think the real bug is here...
        Hide
        Stefan Seelmann added a comment -

        This is really a bad bug. Raised to blocker

        Show
        Stefan Seelmann added a comment - This is really a bad bug. Raised to blocker
        Hide
        Pierre-Arnaud Marcelot added a comment -

        Stefan,

        Can you confirm the additional search request is related to the "Check for children" option ?

        Thanks.

        Show
        Pierre-Arnaud Marcelot added a comment - Stefan, Can you confirm the additional search request is related to the "Check for children" option ? Thanks.
        Hide
        Galinette added a comment -

        No.

        I start Directory Studio with default config (deleted directory $HOME/.ApacheDirectoryStudio ), I create a new connection and I get the same problem with either option "Fetch subentries while browsing" enabled or disabled.

        Show
        Galinette added a comment - No. I start Directory Studio with default config (deleted directory $HOME/.ApacheDirectoryStudio ), I create a new connection and I get the same problem with either option "Fetch subentries while browsing" enabled or disabled.
        Hide
        Stefan Seelmann added a comment -

        I introduced this annoying behaviour with commit http://svn.apache.org/viewvc?view=rev&revision=691556, sorry for that.

        @Pierre-Arnaud:
        It has nothing to do with the "Check for children" option. This option fetches the attributes "hasSubordinates", "numSubordinates" or "subordinateCount", but only if they are present in the server's schema.

        Show
        Stefan Seelmann added a comment - I introduced this annoying behaviour with commit http://svn.apache.org/viewvc?view=rev&revision=691556 , sorry for that. @Pierre-Arnaud: It has nothing to do with the "Check for children" option. This option fetches the attributes "hasSubordinates", "numSubordinates" or "subordinateCount", but only if they are present in the server's schema.
        Hide
        Pierre-Arnaud Marcelot added a comment -

        Ok, I see.

        Thanks Stefan.

        Show
        Pierre-Arnaud Marcelot added a comment - Ok, I see. Thanks Stefan.
        Show
        Stefan Seelmann added a comment - Fixed in trunk: http://svn.apache.org/viewvc?rev=745657&view=rev http://svn.apache.org/viewvc?rev=748543&view=rev
        Hide
        Pierre-Arnaud Marcelot added a comment -

        Apache Directory Studio version 1.4.0 has been released.

        Show
        Pierre-Arnaud Marcelot added a comment - Apache Directory Studio version 1.4.0 has been released.

          People

          • Assignee:
            Stefan Seelmann
            Reporter:
            Galinette
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development