Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-58487

A slash character cannot be sent to REST api

    Details

    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 6.2.3 CE GA4
    • Fix Version/s: None
    • Labels:
      None
    • Fix Priority:
      3

      Description

      When using REST api of the portal services, it is not possible to pass either a slash or backslash character as part of a data string in the URL.

      Steps to reproduce:
      1) Make a sample DDL list in the GUI. Make sure that one of the collums is of type 'text'
      2) Go to http://portal-instance/api/jsonws?signature=%2Fddlrecord%2Fadd-record-5-groupId-recordSetId-displayIndex-fieldsMap-serviceContext
      3) Fill the required fields. Make sure, the string going to the 'text' column includes a '/' character.
      4) Hit invoke
      5) Click the URL example and copy the sample URL. Note: the '/' character has been replaced with %2F
      6) Paste the URL into the browser address line and call it.

      Expected result:
      A new identical record is created in the DDL. Record info is returned in the page.

      Actual results:
      Nothing happens. No response from the portal returned, indicating an invalid URL was invoked.

      I suppose, that the URL entities are unescaped before processing the parameters. It then crashes on an unexpected backslash, that is reserved for parameter separation.

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            Abhoras Jan Beran
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              6 years, 13 weeks, 6 days ago

                Packages

                Version Package