You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Hajo Kliemeck (JIRA)" <ji...@apache.org> on 2011/08/31 21:20:10 UTC

[jira] [Created] (DIRSERVER-1652) filtering attributes against oid and not against the name

filtering attributes against oid and not against the name
---------------------------------------------------------

                 Key: DIRSERVER-1652
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1652
             Project: Directory ApacheDS
          Issue Type: Bug
          Components: core
    Affects Versions: 2.0.0-M2
            Reporter: Hajo Kliemeck
            Priority: Minor
         Attachments: DefaultDirectoryService.diff

on the DefaultDirectoryService startup the service has to get the last CSN. Therefore it will make a lookup request to get the attribute. The Jdbm partition, which is queried, will filter all attributes which are not requested. The filtering will filter against the OID and not against the name of the attribute.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (DIRSERVER-1652) filtering attributes against oid and not against the name

Posted by "Hajo Kliemeck (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hajo Kliemeck updated DIRSERVER-1652:
-------------------------------------

    Attachment: DefaultDirectoryService.diff

> filtering attributes against oid and not against the name
> ---------------------------------------------------------
>
>                 Key: DIRSERVER-1652
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1652
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.0.0-M2
>            Reporter: Hajo Kliemeck
>            Priority: Minor
>         Attachments: DefaultDirectoryService.diff
>
>
> on the DefaultDirectoryService startup the service has to get the last CSN. Therefore it will make a lookup request to get the attribute. The Jdbm partition, which is queried, will filter all attributes which are not requested. The filtering will filter against the OID and not against the name of the attribute.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (DIRSERVER-1652) filtering attributes against oid and not against the name

Posted by "Hajo Kliemeck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13095261#comment-13095261 ] 

Hajo Kliemeck commented on DIRSERVER-1652:
------------------------------------------

yes, the request result is null. the entryCSN attribute was removed, because it doesn't match against the name. with the patch the request will work

> filtering attributes against oid and not against the name
> ---------------------------------------------------------
>
>                 Key: DIRSERVER-1652
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1652
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.0.0-M2
>            Reporter: Hajo Kliemeck
>            Priority: Minor
>         Attachments: DefaultDirectoryService.diff
>
>
> on the DefaultDirectoryService startup the service has to get the last CSN. Therefore it will make a lookup request to get the attribute. The Jdbm partition, which is queried, will filter all attributes which are not requested. The filtering will filter against the OID and not against the name of the attribute.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (DIRSERVER-1652) filtering attributes against oid and not against the name

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13094822#comment-13094822 ] 

Emmanuel Lecharny commented on DIRSERVER-1652:
----------------------------------------------

Hmmm. I don't think it make any difference, as the attrinute's name is converted later to an OID.

Is there an issue with the existing code ?

> filtering attributes against oid and not against the name
> ---------------------------------------------------------
>
>                 Key: DIRSERVER-1652
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1652
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.0.0-M2
>            Reporter: Hajo Kliemeck
>            Priority: Minor
>         Attachments: DefaultDirectoryService.diff
>
>
> on the DefaultDirectoryService startup the service has to get the last CSN. Therefore it will make a lookup request to get the attribute. The Jdbm partition, which is queried, will filter all attributes which are not requested. The filtering will filter against the OID and not against the name of the attribute.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (DIRSERVER-1652) filtering attributes against oid and not against the name

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny resolved DIRSERVER-1652.
------------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0-M3
         Assignee: Emmanuel Lecharny

Fixed with http://svn.apache.org/viewvc?rev=1164212&view=rev

You are perfectly right. We get bacj the entry directly from the backend, without any filtering, thus the attributes are named using their OID, not their name. I have modified the proposed patch by requiring all the user and operational attributes, which is faster, and the entry.get( SchemaConstants.CONTEXT_CSN_AT ) calls correctly get back the EntryCSN attribute's value.

Thanls for the JIRA !

> filtering attributes against oid and not against the name
> ---------------------------------------------------------
>
>                 Key: DIRSERVER-1652
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1652
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.0.0-M2
>            Reporter: Hajo Kliemeck
>            Assignee: Emmanuel Lecharny
>            Priority: Minor
>             Fix For: 2.0.0-M3
>
>         Attachments: DefaultDirectoryService.diff
>
>
> on the DefaultDirectoryService startup the service has to get the last CSN. Therefore it will make a lookup request to get the attribute. The Jdbm partition, which is queried, will filter all attributes which are not requested. The filtering will filter against the OID and not against the name of the attribute.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira