You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Stefan Zoerner (JIRA)" <ji...@apache.org> on 2006/06/05 15:11:29 UTC

[jira] Created: (DIRSERVER-633) Attribute givenname is changed to gn by the server, if an entry is added

Attribute givenname is changed to gn by the server, if an entry is added
------------------------------------------------------------------------

         Key: DIRSERVER-633
         URL: http://issues.apache.org/jira/browse/DIRSERVER-633
     Project: Directory ApacheDS
        Type: Bug

    Versions: 1.0-RC3    
 Environment: ApacheDS 1.0 RC 3
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Microsoft Windows XP version 5.1 Service Pack 1
    Reporter: Stefan Zoerner


If I import an entry like this (e.g. ldapadd tool):

dn: cn=Bryan Ferry,dc=example,dc=com
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
givenname: Bryan
sn: Ferry
cn: Bryan Ferry

the data is stored to an entry with attribute "gn", not "givenname":

dn: cn=Bryan Ferry,dc=example,dc=com
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: top
gn: Bryan
sn: Ferry
cn: Bryan Ferry

It can't be found with a search like this 

$ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s sub "(givenName=Bryan)".

It is found via this search, but the attribute is missing in the result.

$ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s sub "(givenname=Bryan)" givenname
version: 1
dn: cn=Bryan Ferry,dc=example,dc=com

Note that it is important whether I use "givenName" or "givenname" -- they behave different.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (DIRSERVER-633) Attribute givenname is changed to gn by the server, if an entry is added

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-633?page=all ]

Emmanuel Lecharny resolved DIRSERVER-633.
-----------------------------------------

    Resolution: Cannot Reproduce

I have tested the issue, with the very same command, on linux, and I cannot reproduce it. I even tried with LdapBorwser, but I cannot reproduce it anymore :

test.ldif file :
----------------
dn: cn=Bryan Ferry,dc=example,dc=com
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
givenname: Bryan
sn: Ferry
cn: Bryan Ferry


[elecharny@localhost apacheds]$ ldapadd -x -D "uid=admin,ou=system" -w "secret" -h localhost -p 10389 -a -f test.ldif
adding new entry "cn=Bryan Ferry,dc=example,dc=com"


Searching with givenname :
--------------------------------------
[elecharny@localhost apacheds]$ ldapsearch -x -D "uid=admin,ou=system" -w "secret" -h localhost -p 10389 -b "dc=example,dc=com" -s sub "(givenname=Bryan)"
# extended LDIF
#
# LDAPv3
# base <dc=example,dc=com> with scope subtree
# filter: (givenname=Bryan)
# requesting: ALL
#

# Bryan Ferry, example.com
dn: cn=Bryan Ferry,dc=example,dc=com
givenname: Bryan
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: top
sn: Ferry
cn: Bryan Ferry

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1



Searching with givenName :
--------------------------------------
[elecharny@localhost apacheds]$ ldapsearch -x -D "uid=admin,ou=system" -w "secret" -h localhost -p 10389 -b "dc=example,dc=com" -s sub "(givenName=Bryan)"
# extended LDIF
#
# LDAPv3
# base <dc=example,dc=com> with scope subtree
# filter: (givenName=Bryan)
# requesting: ALL
#

# Bryan Ferry, example.com
dn: cn=Bryan Ferry,dc=example,dc=com
givenname: Bryan
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: top
sn: Ferry
cn: Bryan Ferry

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1


> Attribute givenname is changed to gn by the server, if an entry is added
> ------------------------------------------------------------------------
>
>                 Key: DIRSERVER-633
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-633
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.0-RC3
>         Environment: ApacheDS 1.0 RC 3
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Microsoft Windows XP version 5.1 Service Pack 1
>            Reporter: Stefan Zoerner
>
> If I import an entry like this (e.g. ldapadd tool):
> dn: cn=Bryan Ferry,dc=example,dc=com
> objectclass: top
> objectclass: person
> objectclass: organizationalPerson
> objectclass: inetOrgPerson
> givenname: Bryan
> sn: Ferry
> cn: Bryan Ferry
> the data is stored to an entry with attribute "gn", not "givenname":
> dn: cn=Bryan Ferry,dc=example,dc=com
> objectclass: person
> objectclass: organizationalPerson
> objectclass: inetOrgPerson
> objectclass: top
> gn: Bryan
> sn: Ferry
> cn: Bryan Ferry
> It can't be found with a search like this 
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s sub "(givenName=Bryan)".
> It is found via this search, but the attribute is missing in the result.
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s sub "(givenname=Bryan)" givenname
> version: 1
> dn: cn=Bryan Ferry,dc=example,dc=com
> Note that it is important whether I use "givenName" or "givenname" -- they behave different.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (DIRSERVER-633) Attribute givenname is changed to gn by the server, if an entry is added

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-633?page=all ]

Alex Karasulu closed DIRSERVER-633.
-----------------------------------

    Assignee: Stefan Zoerner

Closing this issue since we merged fixing changes into the 1.0 branch.  

> Attribute givenname is changed to gn by the server, if an entry is added
> ------------------------------------------------------------------------
>
>                 Key: DIRSERVER-633
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-633
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.0-RC3
>         Environment: ApacheDS 1.0 RC 3
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Microsoft Windows XP version 5.1 Service Pack 1
>            Reporter: Stefan Zoerner
>         Assigned To: Stefan Zoerner
>         Attachments: bryan.ldif
>
>
> If I import an entry like this (e.g. ldapadd tool):
> dn: cn=Bryan Ferry,dc=example,dc=com
> objectclass: top
> objectclass: person
> objectclass: organizationalPerson
> objectclass: inetOrgPerson
> givenname: Bryan
> sn: Ferry
> cn: Bryan Ferry
> the data is stored to an entry with attribute "gn", not "givenname":
> dn: cn=Bryan Ferry,dc=example,dc=com
> objectclass: person
> objectclass: organizationalPerson
> objectclass: inetOrgPerson
> objectclass: top
> gn: Bryan
> sn: Ferry
> cn: Bryan Ferry
> It can't be found with a search like this 
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s sub "(givenName=Bryan)".
> It is found via this search, but the attribute is missing in the result.
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s sub "(givenname=Bryan)" givenname
> version: 1
> dn: cn=Bryan Ferry,dc=example,dc=com
> Note that it is important whether I use "givenName" or "givenname" -- they behave different.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (DIRSERVER-633) Attribute givenname is changed to gn by the server, if an entry is added

Posted by "Stefan Zoerner (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-633?page=all ]

Stefan Zoerner updated DIRSERVER-633:
-------------------------------------

    Attachment: bryan.ldif

I am able to reproduce the problem with the attached LDIF file (added for completeness) on Apache DS 1.0 RC3, but not on the current optimization branch (Revision 427216). Great! This issue caused me a lot of problems. I'll close it when the code is merged into the 1.0 branch. 

> Attribute givenname is changed to gn by the server, if an entry is added
> ------------------------------------------------------------------------
>
>                 Key: DIRSERVER-633
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-633
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.0-RC3
>         Environment: ApacheDS 1.0 RC 3
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Microsoft Windows XP version 5.1 Service Pack 1
>            Reporter: Stefan Zoerner
>         Attachments: bryan.ldif
>
>
> If I import an entry like this (e.g. ldapadd tool):
> dn: cn=Bryan Ferry,dc=example,dc=com
> objectclass: top
> objectclass: person
> objectclass: organizationalPerson
> objectclass: inetOrgPerson
> givenname: Bryan
> sn: Ferry
> cn: Bryan Ferry
> the data is stored to an entry with attribute "gn", not "givenname":
> dn: cn=Bryan Ferry,dc=example,dc=com
> objectclass: person
> objectclass: organizationalPerson
> objectclass: inetOrgPerson
> objectclass: top
> gn: Bryan
> sn: Ferry
> cn: Bryan Ferry
> It can't be found with a search like this 
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s sub "(givenName=Bryan)".
> It is found via this search, but the attribute is missing in the result.
> $ ldapsearch -h localhost -p 10389 -b "dc=example,dc=com" -s sub "(givenname=Bryan)" givenname
> version: 1
> dn: cn=Bryan Ferry,dc=example,dc=com
> Note that it is important whether I use "givenName" or "givenname" -- they behave different.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira