Uploaded image for project: 'Directory Client API'
  1. Directory Client API
  2. DIRAPI-201

Incossistent Import-Package in org.apache.directory.api.ldap.model

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-M19
    • Fix Version/s: 1.0.0-M25
    • Environment:
      Eclipse LUNA, standard install of LDAP Browser via update site.

      Description

      Hi.

      It seems that packages in ldap.studio jars import org.apache.commons.collections with restriction version >= 3.2.1. But, in org.apache.directory.api.ldap.model jar there is restriction for org.apache.commons.collections with version >= 3.2.0 < 4.0.0.

      In most cases, where you have only one version of org.apache.commons.collections, this will work fine. But, in my situation i have 3.2.0 installed, as 3.2.1.

      And Eclipse equinox have a problem with this, because it detects that not all requirements for org.apache.directory.* can be resolved in the consistent way, and it prevents loading of those classes. This results in LDAP browser or schema not working, in Eclipse.

      Solution is quite easy - Import-Package directive in org.apache.directory.api.ldap.model jar needs to be changed to include only 3.2.1 or higher version of org.apache.commons.collection.

      Since this bug prevents from LDAP working in Eclipse LUNO, this should be a critical bug.

      I did manually change org.apache.directory.api.ldap.model jar, and can confirm that with this change, LDAP stuff is woring in LUNO.

      Regards,

      H.

        Activity

        Hide
        hiborg Hrvoje Habjanic added a comment -

        Eh ... Actually Eclipse release name is LUNA ... not LUNO ... Sorry about that.

        H.

        Show
        hiborg Hrvoje Habjanic added a comment - Eh ... Actually Eclipse release name is LUNA ... not LUNO ... Sorry about that. H.
        Hide
        elecharny Emmanuel Lecharny added a comment -

        All the pom Import-Packages/Export-Packages have been updated to only import one single version.

        Show
        elecharny Emmanuel Lecharny added a comment - All the pom Import-Packages/Export-Packages have been updated to only import one single version.
        Hide
        elecharny Emmanuel Lecharny added a comment -
        Show
        elecharny Emmanuel Lecharny added a comment - Done with commit http://svn.apache.org/r1635419
        Hide
        elecharny Emmanuel Lecharny added a comment -

        Closing the resolved issues.

        Show
        elecharny Emmanuel Lecharny added a comment - Closing the resolved issues.

          People

          • Assignee:
            elecharny Emmanuel Lecharny
            Reporter:
            hiborg Hrvoje Habjanic
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development