Return-Path: Delivered-To: apmail-incubator-directory-dev-archive@www.apache.org Received: (qmail 75616 invoked from network); 25 Jan 2005 11:31:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 25 Jan 2005 11:31:09 -0000 Received: (qmail 87171 invoked by uid 500); 25 Jan 2005 11:31:09 -0000 Delivered-To: apmail-incubator-directory-dev-archive@incubator.apache.org Received: (qmail 87134 invoked by uid 500); 25 Jan 2005 11:31:09 -0000 Mailing-List: contact directory-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list directory-dev@incubator.apache.org Received: (qmail 87118 invoked by uid 99); 25 Jan 2005 11:31:08 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from relais.videotron.ca (HELO relais.videotron.ca) (24.201.245.36) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 25 Jan 2005 03:31:07 -0800 Received: from [192.168.0.122] ([66.131.110.157]) by VL-MO-MR011.ip.videotron.ca (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0IAV007FZELU78@VL-MO-MR011.ip.videotron.ca> for directory-dev@incubator.apache.org; Tue, 25 Jan 2005 06:29:55 -0500 (EST) Date: Tue, 25 Jan 2005 06:29:27 -0500 From: Vincent Tence Subject: Re: [asn.1] sitedocs update for 0.3 dev cycle - new refactoring page is up In-reply-to: <20050125055858.FPRC2518.imf25aec.mail.bellsouth.net@mail.bellsouth.net> To: Apache Directory Developers List Reply-to: vtence@videotron.ca Message-id: <41F62D97.3030400@videotron.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0 (X11/20050106) X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime References: <20050125055858.FPRC2518.imf25aec.mail.bellsouth.net@mail.bellsouth.net> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Sounds a sensible approach. I'm on it. - Vincent Alex Karasulu wrote: >>Also on a separate note. Perhaps I've done the wrong thing here in >> >>>trying to get others interested in asn1 by refactoring it. A massive >>>restructuring may not have been the best route to go. Perhaps we can >>>see if you can first massage out the Snacc4J deps instead. I'm >>>realizing my approach to cross reactivity might have been flawed :( . > > >>You're doing good here, no worry. There's been a lot of work put into the >>asn1 suproject obviously and you're right it's pretty hard to just jump in >>and understand everything straight. Focusing on the snacc dependency is a >>good idea. Do you have more details on this? > > > Well yeah I had an crazy (overdone) solution outlined in the JIRA on this: > > http://issues.apache.org/jira/browse/DIRSNICKERS-61 > > Half the stuff I said is a crock of %2&^@%#(s^@F#. Perhaps I was out > of my mind. > > However I've changed my mind on the approach and think the best way to > do it is to just embed the bytes into the testcase in a byte array for the PDU. > You can use the LDAP common library to generate the PDU by setting the > provider to use the Snacc4J and dump the result to a file. Then use the > contents of the file to build the byte[]. Basically instead of all this XML and > base64 stuff just put the bytes into a testcase constant and the Req/Resp > object used for the comparison is also a testcase constant. > Then you can decode the byte[] with our asn1 lib and compare with this > object. Conversely you can encode with our lib and compare with the > byte[]. > > It does stink that you have to write a little program for generating the PDU > and generate one for each test case in the libraries tests. > > Does this help? > > Thanks, > Alex