You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Stefan Topfstedt (JIRA)" <ji...@apache.org> on 2011/02/01 23:52:29 UTC

[jira] Created: (CMIS-300) getObjectByPath() breaks on paths containing special chars

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


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.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (CMIS-300) getObjectByPath() breaks on paths containing special chars

Posted by "Stefan Topfstedt (JIRA)" <ji...@apache.org>.
     [ 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

        

[jira] Updated: (CMIS-300) getObjectByPath() breaks on paths containing special chars

Posted by "Stefan Topfstedt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CMIS-300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Topfstedt updated CMIS-300:
----------------------------------

    Attachment: CMIS-300.patch

> 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 nests 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