Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 96711 invoked from network); 10 Mar 2010 10:22:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Mar 2010 10:22:19 -0000 Received: (qmail 11973 invoked by uid 500); 10 Mar 2010 10:21:49 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 11770 invoked by uid 500); 10 Mar 2010 10:21:49 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 11456 invoked by uid 99); 10 Mar 2010 10:21:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Mar 2010 10:21:48 +0000 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; Wed, 10 Mar 2010 10:21:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4182C234C4BD for ; Wed, 10 Mar 2010 10:21:27 +0000 (UTC) Message-ID: <1332365005.174391268216487267.JavaMail.jira@brutus.apache.org> Date: Wed, 10 Mar 2010 10:21:27 +0000 (UTC) From: "angela (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-2553) spi2davex: Batch fails to create/modify properties with non-ascii characters names In-Reply-To: <1350226275.173111268212169865.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-2553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843507#action_12843507 ] angela commented on JCR-2553: ----------------------------- thanks to alex saar for the initial test-case (only slightly adjusted) and the issue reporting. > spi2davex: Batch fails to create/modify properties with non-ascii characters names > ---------------------------------------------------------------------------------- > > Key: JCR-2553 > URL: https://issues.apache.org/jira/browse/JCR-2553 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-jcr-servlet, jackrabbit-spi2dav > Affects Versions: 2.0.0 > Reporter: angela > Assignee: angela > Fix For: 2.1.0 > > > the spi2davex batch implementation fails upon creation/modification of all property types that have their value sent as > separate stringpart or binarypart AND contain non-ascii characters in their property name. > from what i've seen this is due to a limitation in HttpClient 3.x Part#sendDispositionHeader that always writes the part name > as ascii-bytes. in a related discussion [1] specification compliance and usability were addressed. > looking at the server-side part revealed that org.apache.commons.fileupload.FileUploadBase#FileItemIteratorImpl > is prepared to receive non-ascii characters in a header value. > a simple test also showed that curl is perfectly able to send utf-8 part names. > based on this information and given the fact that spi2dav and the server-sided part are intended to communicate > with one other rather than with any kind of custom clients, i suggest to add a simple fix by patching the parts used > within spi2davex. > btw: in HttpClient 4.x there seems to be a workaround for this problem [2] > [1] http://www.mail-archive.com/httpclient-dev@jakarta.apache.org/msg04637.html > [2] https://issues.apache.org/jira/browse/HTTPCLIENT-293 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.