Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-300

getObjectByPath() breaks on paths containing special chars

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • cmis-phplib
    • None
    • Alf CE 3.4.c
      PHP 5.2.10

    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.

      Attachments

        1. CMIS-300.patch
          0.5 kB
          Stefan Topfstedt

        Activity

          People

            richardm Richard McKnight
            stefan776 Stefan Topfstedt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: