Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 76240 invoked from network); 25 Sep 2008 11:02:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Sep 2008 11:02:37 -0000 Received: (qmail 85372 invoked by uid 500); 25 Sep 2008 11:02:33 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 85250 invoked by uid 500); 25 Sep 2008 11:02:33 -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 85224 invoked by uid 99); 25 Sep 2008 11:02:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Sep 2008 04:02:33 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Sep 2008 11:01:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 94406234C1F5 for ; Thu, 25 Sep 2008 04:01:44 -0700 (PDT) Message-ID: <169263484.1222340504605.JavaMail.jira@brutus> Date: Thu, 25 Sep 2008 04:01:44 -0700 (PDT) From: "Norval Hope (JIRA)" To: dev@directory.apache.org Subject: [jira] Updated: (DIRSERVER-1247) removing unrequired escaping in DNs / filters In-Reply-To: <630448109.1221012104488.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DIRSERVER-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Norval Hope updated DIRSERVER-1247: ----------------------------------- Attachment: DIRSERVER-1247-escaping-2.patch This patch is the previous patch updated to the current trunk, with coding conventions respected. Note I needed the patch I submitted for DIRSERVER-1255 so I could verify this patch worked correctly on Windoze. Thanks > removing unrequired escaping in DNs / filters > --------------------------------------------- > > Key: DIRSERVER-1247 > URL: https://issues.apache.org/jira/browse/DIRSERVER-1247 > Project: Directory ApacheDS > Issue Type: Improvement > Components: ldap > Affects Versions: 1.5.4 > Reporter: Norval Hope > Fix For: 1.5.5 > > Attachments: DIRSERVER-1247-escaping-2.patch, escaping.patch > > Original Estimate: 8h > Remaining Estimate: 8h > > The current Dn and filter handling is overly restrictive in that all non-ascii characters are quoted using the \NN syntax. This is probably due to rfc 2253 being unclear about the fact that multibyte UTF-8 encoded values can be used, but this iss further clarified in rfc 4514 which superceeds 2253. The application of unrequired quoting makes debugging / reading logs much harder then it should be, as it requires manual calculations rather then just setting the file encoding on your log file / IDE windows to being UTF-8. > I have attached a patch file with the required updates to code and unit tests under /shared/ldap (some problems i had noted with earlier AD version due to unspecified encoding when converting bytes to / from Strings had already been tidied up in AD 1.5.4). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.