Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-3649

Rewritten URLs: (single and double) quotes not rewritten raise MalformedPathException

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Top
    • Resolution: Fixed
    • r2.12.00
    • r2.12.03
    • None
    • None
    • WinXP sp3
      Fx 3.5.5
      Sun JDK 1.6.0_14-b08
      Hippo CMS version 2.12.00-SNAPSHOT build 21321
      (Hippo Repository 2.12.00-SNAPSHOT build 21321)

    Description

      (Single or double) quotes in the name of new folders and documents must be rewritten.

      Steps:
      1. log in to CMS quickstart as 'admin'
      2. click "To the documents', then demosite and open the commands menu, select "Add new folder..."
      3. name it 'newf' or "newf" (including the quotes)
      4. notice that the URL name matches exactly the Name
      5. press OK

      Exp: system should carry on and perform the task OR provide pertinent feedback as to why it can't

      Act: a message pops up saying "An error occur, please retry.". An exception is raised as follows,

      23.01.2010 11:23:18 ERROR [org.hippoecm.addon.workflow.CompatibilityWorkflowPlugin$WorkflowAction$WorkflowDialog.onOk():201] Error during workflow execution
      javax.jcr.RepositoryException: failed to resolve path 'newf' relative to node /content/documents/demosite: ''newf'' is not a valid path. ''' not a valid name character.: ''newf'' is not a valid path. ''' not a valid name character.

      Note: the error is reported accurately, and I think that the quotes should be rewritten upfront.

      Attached the error stack

      Attachments

        Activity

          People

            spelissier Sylvain Pélissier (Inactive)
            spelissier Sylvain Pélissier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified