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

friendlyUrlPath property is being ignored when POSTing a new web content using Headless API

    Details

      Description

      Steps to reproduce

      1. Start Liferay DXP 7.2
      2. In the default site, go to Configuration > Setting and take note of the Site ID
      3. Go to the Global site
      4. Go to Content & Data > Web content, then Structures tab and take note of the Basic Web Content structure ID
      5. Download the attached webcontent.json file;
        1. Replace the 0 in "contentStructureId": 0, by the structure ID you took note of in step 4
      6. Execute curl -v -X POST "http://localhost:8080/o/headless-delivery/v1.0/sites/<<siteId>>/structured-contents" -H "accept: application/json" -H "Content-Type: application/json" -d "@webcontent.json" -u [email protected]:test in a terminal (replacing <<siteId>> with the site id you took note of in step 2)

      Expected Results

      The content is created and its friendly url has the value set on the json file, which is thisisfriendly.

      Actual Results

      The content is created and its friendly url has the value atitle, which is the title, as if the friendly url hadn't been set

        Attachments

          Activity

            People

            Assignee:
            cleydyr.albuquerque Cleydyr Albuquerque
            Reporter:
            cleydyr.albuquerque Cleydyr Albuquerque
            Participants of an Issue:
            Recent user:
            Yunlin "Steven" Sun
            Engineering Assignee:
            Javier Gamarra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 12 weeks, 4 days ago

                Packages

                Version Package
                7.1.10 DXP FP19
                7.1.10.5 SP5
                7.1.X
                7.2.10 DXP FP7
                7.2.X