Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 38039 invoked from network); 7 Dec 2006 16:34:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Dec 2006 16:34:54 -0000 Received: (qmail 87040 invoked by uid 500); 7 Dec 2006 16:35:02 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 86995 invoked by uid 500); 7 Dec 2006 16:35:01 -0000 Mailing-List: contact dev-help@directory.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 dev@directory.apache.org Received: (qmail 86984 invoked by uid 99); 7 Dec 2006 16:35:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Dec 2006 08:35:01 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=HTML_00_10,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of elecharny@gmail.com designates 64.233.162.230 as permitted sender) Received: from [64.233.162.230] (HELO nz-out-0102.google.com) (64.233.162.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Dec 2006 08:34:50 -0800 Received: by nz-out-0102.google.com with SMTP id i28so334599nzi for ; Thu, 07 Dec 2006 08:34:29 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=frT8tW150MaHgnXpyC0hFkBeo3ae3YUqP5xwNtaAzc5h3niX3G8SRU8Cn5Ee0DY6p97mwY1KsQQpjpb4TfPWDr/NCSfXXKYCOm072NAA/fXe1r5hS51/HWrqH9mbNMg34BVKul47jwI+dTotH1/nWtPz2AeZlcKstQl+s8G/N6I= Received: by 10.64.249.18 with SMTP id w18mr3795564qbh.1165509269689; Thu, 07 Dec 2006 08:34:29 -0800 (PST) Received: by 10.65.84.15 with HTTP; Thu, 7 Dec 2006 08:34:29 -0800 (PST) Message-ID: Date: Thu, 7 Dec 2006 17:34:29 +0100 From: "Emmanuel Lecharny" Reply-To: elecharny@apache.org To: "Apache Directory Developers List" Subject: Binary attributes MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_39819_17625259.1165509269648" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_39819_17625259.1165509269648 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, while I'm writting some SyntaxCheckers, a question popped in my mind : do w= e still have to take care of binary attributes ? This is a list of attributes type which is set into server.xml to express the fact that those attributes are considered as binary, and not as text, thus their values are stored as byte[] insteado of UTF-8 Strings. Each attribute has a type, and must respect a Syntax, which already describ= e the type of data that can be stored into an attribute values. Be it DirectoryString for instance, then the attribute value is an UTF-8 String, as stated by RFC 4517. If we neeed to store a binary value like a jpeg file= , we can use the Jpeg syntax for the Attribute type. Otherwise, the OctetString Syntax is able to handle any kind of value, for 0 byte to whatever. I guess we can relax a little bit the decoder checks by considering that al= l attribute values are byte[], and let the Schema Interceptor deal with badly written values, checking them with their associated Syntax. wdyt ? --=20 Cordialement, Emmanuel L=E9charny ------=_Part_39819_17625259.1165509269648 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,

while I'm writting some SyntaxCheckers, a question popped in my = mind : do we still have to take care of binary attributes ? This is a list = of attributes type which is set into server.xml to express the fact that th= ose attributes are considered as binary, and not as text, thus their values= are stored as byte[] insteado of UTF-8 Strings.

Each attribute has a type, and must respect a Syntax, which already= describe the type of data that can be stored into an attribute values. Be = it DirectoryString for instance, then the attribute value is an UTF-8 Strin= g, as stated by RFC 4517. If we neeed to store a binary value like a jpeg f= ile, we can use the Jpeg syntax for the Attribute type. Otherwise, the Octe= tString Syntax is able to handle any kind of value, for 0 byte to whatever.

I guess we can relax a little bit the decoder checks by considering= that all attribute values are byte[], and let the Schema Interceptor deal = with badly written values, checking them with their associated Syntax.

wdyt ?

--
Cordialement,
Emmanuel L=E9charny ------=_Part_39819_17625259.1165509269648--