Return-Path: Delivered-To: apmail-incubator-chemistry-dev-archive@minotaur.apache.org Received: (qmail 77588 invoked from network); 1 Feb 2011 22:55:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2011 22:55:23 -0000 Received: (qmail 69195 invoked by uid 500); 1 Feb 2011 22:55:23 -0000 Delivered-To: apmail-incubator-chemistry-dev-archive@incubator.apache.org Received: (qmail 69040 invoked by uid 500); 1 Feb 2011 22:55:22 -0000 Mailing-List: contact chemistry-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chemistry-dev@incubator.apache.org Delivered-To: mailing list chemistry-dev@incubator.apache.org Received: (qmail 68991 invoked by uid 99); 1 Feb 2011 22:55:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 22:55:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 22:55:21 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 67BDA188CD3 for ; Tue, 1 Feb 2011 22:54:31 +0000 (UTC) Date: Tue, 1 Feb 2011 22:54:31 +0000 (UTC) From: "Stefan Topfstedt (JIRA)" To: chemistry-dev@incubator.apache.org Message-ID: <129438330.3920.1296600871421.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <599699476.3918.1296600749032.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Updated: (CMIS-300) getObjectByPath() breaks on paths containing special chars 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/CMIS-300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stefan Topfstedt updated CMIS-300: ---------------------------------- Description: Turns out that the URL-encoding of blank spaces and percentage-signs as provided by CMISRepositoryWrapper::handleSpaces() is insufficient. I am running into problems with retrieving spaces by path where the name of the space contains hash pounds. Hash pounds need to be properly encoded as well. Using rawurlencode() instead of the the nested str_replace()-calls seems to be the fix. Please see attached patch file. was: Turns out that the URL-encoding of blank spaces and percentage-signs as provided by CMISRepositoryWrapper::handleSpaces() is insufficient. I am running into problems with retrieving spaces by path where the name of the space contains hash pounds. Hash pounds need to be properly encoded as well. Using rawurlencode() instead of the the nests str_replace() calls seems to be the fix. Please see attached patch file. > getObjectByPath() breaks on paths containing special chars > ---------------------------------------------------------- > > Key: CMIS-300 > URL: https://issues.apache.org/jira/browse/CMIS-300 > Project: Chemistry > Issue Type: Bug > Components: cmis-phplib > Environment: Alf CE 3.4.c > PHP 5.2.10 > Reporter: Stefan Topfstedt > Attachments: CMIS-300.patch > > > Turns out that the URL-encoding of blank spaces and percentage-signs as provided by CMISRepositoryWrapper::handleSpaces() is insufficient. > I am running into problems with retrieving spaces by path where the name of the space contains hash pounds. Hash pounds need to be properly encoded as well. > Using rawurlencode() instead of the the nested str_replace()-calls seems to be the fix. > Please see attached patch file. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira