You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <di...@incubator.apache.org> on 2005/09/30 11:38:48 UTC

[jira] Created: (DIRLDAP-58) getPrefix and getSuffix have inversed semantic

getPrefix and getSuffix have inversed semantic
----------------------------------------------

         Key: DIRLDAP-58
         URL: http://issues.apache.org/jira/browse/DIRLDAP-58
     Project: Directory LDAP
        Type: Bug
    Reporter: Emmanuel Lecharny
 Assigned to: Emmanuel Lecharny 
    Priority: Minor


The LdapName getprefix and getSuffix return a result which is inversed :
Name name = parser.parse( "cn=HomeDir,cn=John,ou=Marketing,ou=East" ) ;
Name prefix = name.getPrefix( 0 ); 
// returns "cn=HomeDir,cn=John,ou=Marketing,ou=East" instead of "".

The Names are indexed from end to start, though the element 0 is the last NameComponent.

-- 
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-206) getPrefix and getSuffix have inversed semantic

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

Emmanuel Lecharny closed DIRSERVER-206.
---------------------------------------


duplicated

> getPrefix and getSuffix have inversed semantic
> ----------------------------------------------
>
>                 Key: DIRSERVER-206
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-206
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: pre-1.0
>            Reporter: Emmanuel Lecharny
>         Assigned To: Emmanuel Lecharny
>            Priority: Minor
>             Fix For: pre-1.0
>
>
> The LdapName getprefix and getSuffix return a result which is inversed :
> Name name = parser.parse( "cn=HomeDir,cn=John,ou=Marketing,ou=East" ) ;
> Name prefix = name.getPrefix( 0 ); 
> // returns "cn=HomeDir,cn=John,ou=Marketing,ou=East" instead of "".
> The Names are indexed from end to start, though the element 0 is the last NameComponent.

-- 
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

        

Re: [jira] Resolved: (DIRLDAP-58) getPrefix and getSuffix have inversed semantic

Posted by Trustin Lee <tr...@gmail.com>.
2005/10/6, Alex Karasulu <ao...@bellsouth.net>:
>
> Trustin Lee wrote:
>
> > I've tried the latest LdapName, but it still behaves different from
> > Java 5 LdapName. You can run this example by yourself to test:
> >
> > http://issues.apache.org/jira/browse/DIREVE-248
> > <http://issues.apache.org/jira/browse/DIREVE-248>
> >
> > I saw you already checked in your fix, but I guess it still doesn't
> > work correctly. Please let me know if I understood something wrong.
>
> I must have botched this up ... if you can please feel free to reopen
> this one.
> Alex
>
>
I've realized DIRLDAP-37 (http://issues.apache.org/jira/browse/DIRLDAP-37)
is already open, which is the original one. I'm sorry for the confusion!

Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/

Re: [jira] Resolved: (DIRLDAP-58) getPrefix and getSuffix have inversed semantic

Posted by Alex Karasulu <ao...@bellsouth.net>.
Trustin Lee wrote:

> I've tried the latest LdapName, but it still behaves different from 
> Java 5 LdapName.  You can run this example by yourself to test:
>
> http://issues.apache.org/jira/browse/DIREVE-248 
> <http://issues.apache.org/jira/browse/DIREVE-248>
>
> I saw you already checked in your fix, but I guess it still doesn't 
> work correctly.  Please let me know if I understood something wrong.

I must have botched this up ... if you can please feel free to reopen 
this one. 
Alex


Re: [jira] Resolved: (DIRLDAP-58) getPrefix and getSuffix have inversed semantic

Posted by Trustin Lee <tr...@gmail.com>.
I've tried the latest LdapName, but it still behaves different from Java 5
LdapName. You can run this example by yourself to test:

http://issues.apache.org/jira/browse/DIREVE-248

I saw you already checked in your fix, but I guess it still doesn't work
correctly. Please let me know if I understood something wrong.

Thanks,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/

Re: [jira] Resolved: (DIRLDAP-58) getPrefix and getSuffix have inversed semantic

Posted by Alex Karasulu <ao...@bellsouth.net>.
Emmanuel Lecharny wrote:

>Hmmm... My bad. I should have looked at JIRA first !
>
>Well, this is a serious issue, I guess. One more in the - long - list !
>
>On Fri, 2005-09-30 at 12:19 +0200, Trustin Lee (JIRA) wrote:
>  
>
>>     [ http://issues.apache.org/jira/browse/DIRLDAP-58?page=all ]
>>     
>>Trustin Lee resolved DIRLDAP-58:
>>--------------------------------
>>
>>    Resolution: Duplicate
>>
>>DIRLDAP-37 and DIREVE-248 already explains this issue.
>>    
>>
I thought I fixed this POS.  Is it still out there?

Alex


Re: [jira] Resolved: (DIRLDAP-58) getPrefix and getSuffix have inversed semantic

Posted by Emmanuel Lecharny <el...@apache.org>.
Hmmm... My bad. I should have looked at JIRA first !

Well, this is a serious issue, I guess. One more in the - long - list !

On Fri, 2005-09-30 at 12:19 +0200, Trustin Lee (JIRA) wrote:
>      [ http://issues.apache.org/jira/browse/DIRLDAP-58?page=all ]
>      
> Trustin Lee resolved DIRLDAP-58:
> --------------------------------
> 
>     Resolution: Duplicate
> 
> DIRLDAP-37 and DIREVE-248 already explains this issue.
> 
> > getPrefix and getSuffix have inversed semantic
> > ----------------------------------------------
> >
> >          Key: DIRLDAP-58
> >          URL: http://issues.apache.org/jira/browse/DIRLDAP-58
> >      Project: Directory LDAP
> >         Type: Bug
> >     Reporter: Emmanuel Lecharny
> >     Assignee: Emmanuel Lecharny
> >     Priority: Minor
> 
> >
> > The LdapName getprefix and getSuffix return a result which is inversed :
> > Name name = parser.parse( "cn=HomeDir,cn=John,ou=Marketing,ou=East" ) ;
> > Name prefix = name.getPrefix( 0 ); 
> > // returns "cn=HomeDir,cn=John,ou=Marketing,ou=East" instead of "".
> > The Names are indexed from end to start, though the element 0 is the last NameComponent.
> 



[jira] Resolved: (DIRLDAP-58) getPrefix and getSuffix have inversed semantic

Posted by "Trustin Lee (JIRA)" <di...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/DIRLDAP-58?page=all ]
     
Trustin Lee resolved DIRLDAP-58:
--------------------------------

    Resolution: Duplicate

DIRLDAP-37 and DIREVE-248 already explains this issue.

> getPrefix and getSuffix have inversed semantic
> ----------------------------------------------
>
>          Key: DIRLDAP-58
>          URL: http://issues.apache.org/jira/browse/DIRLDAP-58
>      Project: Directory LDAP
>         Type: Bug
>     Reporter: Emmanuel Lecharny
>     Assignee: Emmanuel Lecharny
>     Priority: Minor

>
> The LdapName getprefix and getSuffix return a result which is inversed :
> Name name = parser.parse( "cn=HomeDir,cn=John,ou=Marketing,ou=East" ) ;
> Name prefix = name.getPrefix( 0 ); 
> // returns "cn=HomeDir,cn=John,ou=Marketing,ou=East" instead of "".
> The Names are indexed from end to start, though the element 0 is the last NameComponent.

-- 
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