Issue Details (XML | Word | Printable)

Key: DIRSERVER-752
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alex Karasulu
Reporter: mbah tenjoh-okwen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

Alias Problem

Created: 29/Sep/06 04:50 PM   Updated: 02/Oct/06 12:47 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 1.5.0, 1.0

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File Licensed for inclusion in ASF works AddAliasTest.java 2006-10-01 06:27 PM Stefan Zoerner 4 kB
Environment: windows XP

Resolution Date: 02/Oct/06 12:47 AM


 Description  « Hide
    hello
     I would like to know if apacheDS supports aliasing and if so what do I need to do in other to add a
    sub context of object class type "alias". Each time I try to add one I get an error report. I use JNDI and so the error i get is of type javax.naming.NamingException .
    I will appreciate your help
    thanks


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Stefan Zoerner added a comment - 30/Sep/06 11:30 AM
Type "Test" is not appropriate here, I have modified it to "Bug", because the user reported an error he gets.

Stefan Zoerner added a comment - 30/Sep/06 11:32 AM
The information the reporter provieded is not sufficient to help. At least a JNDI source code fragment is needed (what exactly has been tried to create an alias), and a stack trace would be helpful as well.

ApacheDS does support alias entries, btw.

Stefan Zoerner added a comment - 01/Oct/06 06:27 PM
Here is a JUnit test, which tries to add the following to the directory (below dc=example,dc=com). It fails on ApacheDS 1.0 RC4.

---
dn: ou=favorite,dc=example,dc=com
ou: favorite
objectclass: organizationalUnit
objectclass: top

dn: ou=bestFruit,dc=example,dc=com
aliasedobjectname: ou=favorite,dc=example,dc=com
ou: bestFruit
objectclass: alias
objectclass: top
---

The test contains two cases. testAddAlias succeeds in adding both entries, but the deletion afterwards fails. testAddAliasInContainer creates a container entry below the suffix and tries to add the entry and the alias within this container. Here, already the creation of the alias fails.

Both test cases pass IBM Tivoli Directory Server 6.0, but fail on OpenLDAP and Sun Java System Directory Server due to Schema vialations. Thus, I am not sure whether the test is valid.

Alex Karasulu added a comment - 02/Oct/06 12:47 AM
Committed revision 451847 for 1.0 here:

   http://svn.apache.org/viewvc?view=rev&revision=451847

Committed revision 451848 for 1.1 here:

   http://svn.apache.org/viewvc?view=rev&revision=451848