Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 76699 invoked from network); 25 Feb 2006 09:22:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Feb 2006 09:22:06 -0000 Received: (qmail 52071 invoked by uid 500); 25 Feb 2006 09:22:05 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 51555 invoked by uid 500); 25 Feb 2006 09:22:03 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 51528 invoked by uid 99); 25 Feb 2006 09:22:02 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Feb 2006 01:22:01 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 07F57DD for ; Sat, 25 Feb 2006 10:21:40 +0100 (CET) Message-ID: <542149408.1140859300030.JavaMail.jira@ajax.apache.org> Date: Sat, 25 Feb 2006 10:21:40 +0100 (CET) From: "Antonio Fiol (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Commented: (COCOON-1775) LdapTransformer: LDAP attributes may not contain ";" In-Reply-To: <677984080.1139995091131.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/COCOON-1775?page=comments#action_12367762 ] Antonio Fiol commented on COCOON-1775: -------------------------------------- I will try, but don't expect it in less than one week. I'm overloaded at the moment. I'll take the second approach if nobody asks otherwise. > LdapTransformer: LDAP attributes may not contain ";" > ---------------------------------------------------- > > Key: COCOON-1775 > URL: http://issues.apache.org/jira/browse/COCOON-1775 > Project: Cocoon > Type: Bug > Components: Blocks: Naming > Versions: 2.1.8 > Reporter: Antonio Fiol > Assignee: Jean-Baptiste Quenot > > I found a case where the LDAP attribute name is: > description;lang-en > LDAPTransformer tries to create an element such as: > something > This is not valid XML and causes an exception. > In fact, this attribute naming scheme complies both with RFC 2596 [1] and RFC 2252 [2], so the behaviour of LDAPTransformer is somehow wrong. > Three possible approaches: > - Investigate further on the meaning of name;something other than name;lang-something and try to map that into meaningful XML attributes. > e.g. description;lang-en --> > - Split the attribute name at the first ";" and put the rest as an attribute. For example, the attribute could be called "attrs". > e.g. description;lang-en --> > - Remove the ";" character or change it into something else. > e.g. description;lang-en --> > IMHO the third approach is the worst because it defeats the LDAP purpose of ";" which is to specify a characteristic of what is specified before. And I don't have a strong opinion whether the first approach is better than the second or vice-versa. -- 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