You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by ji...@apache.org on 2004/05/31 05:34:01 UTC

[jira] Commented: (DIRSNICKERS-53) AddRequest: create digester rules to decode

The following comment has been added to this issue:

     Author: Alex Karasulu
    Created: Sun, 30 May 2004 8:33 PM
       Body:
Here's what the ASN.1 says an AddRequest looks like:

        LDAPString ::= OCTET STRING

        LDAPDN ::= LDAPString

        AttributeDescription ::= LDAPString

        AttributeValue ::= OCTET STRING

        AttributeList ::= SEQUENCE OF SEQUENCE 
        {
                type    AttributeDescription,
                vals    SET OF AttributeValue 
        }

        AddRequest ::= [APPLICATION 8] SEQUENCE 
        {
                entry           LDAPDN,
                attributes      AttributeList 
        }

Here's the tag nesting anatomy of an add request with three attributes in the entry: 

16 [0x10000000][80]
        2 [0x02000000][1]
        8 [0x48000000][73] - AddRequest
                 4 [0x04000000][17] - entry (LDAPDN)
                16 [0x10000000][52] - AttributeList (SEQ_OF_SEQ)
                        16 [0x10000000][30] - SEQUENCE
                                4 [0x04000000][11] - type (AttributeDescription)
				17 [0x11000000][15] - vals SET OF AttributeValue
                                        4 [0x04000000][8] 
                                        4 [0x04000000][3]
                        16 [0x10000000][18] - SEQUENCE
                                 4 [0x04000000][2] - type (AttributeDescription)
                                17 [0x11000000][12] - vals SET OF AttributeValue
                                        4 [0x04000000][10]
        0 [0x80000000][0]

Rule #0 pushes messageId onto int stack
Rule #1 AddRequestRule 
 o pop int stack to instantiate AddRequest 
 o push AddRequest onto object stack
 o pops object stack on finish 
Rule #2 AddRequestEntryDnRule
 o collects entry dn octet string
 o sets the entry dn name on AddRequest
Rule #3 AttributeListRule
 o instantiates Attributes object
 o sets Attributes of AddRequest that is at top of stack
 o pushes Attributes onto object stack
 o pops object stack on finish
Rule #4 AttributeRule
 o collects attribute name ("type") octet string
 o instantiates Attribute object with name
 o adds Attribute to Attributes object at the top of stack
 o pushes Attribute object onto object stack
 o pops Attribute object off of object stack on finish
Rule #5 AttributeValueRule
 o collects attribute value octet string
 o adds attribute value to Attribute object at the top of the stack


---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/DIRSNICKERS-53?page=comments#action_35829

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/DIRSNICKERS-53

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: DIRSNICKERS-53
    Summary: AddRequest: create digester rules to decode
       Type: Task

     Status: In Progress
   Priority: Major

    Project: Directory Snickers
 Components: 
             LDAP Provider

   Assignee: Alex Karasulu
   Reporter: Alex Karasulu

    Created: Fri, 28 May 2004 11:04 PM
    Updated: Sun, 30 May 2004 8:33 PM
    Due:     Sun, 30 May 2004 12:00 AM

Description:
The digester rules to create and build a AddRequest need to be created and test cases for decoding should pass.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira