Headless API returns BAD REQUEST when a friendlyURL contains a forward slash


  • The Headless API returns "HTTP Status 400 - Bad Request" when a / is included in a friendly URL

    The error can be thrown using these steps:

    - Login to Liferay as Admin
    - Go to the headless API page: http://localhost:8080/o/api
    - Locate getSiteSitePage API
    - Fill the parameters of siteId, and friendlyUrlPath with "aaa/bbb"
    - Press the Execute button



  • DXP 7.4 U58


  • At the time of writing (Mar 2023), the behavior is being addressed by Liferay on ticket LPS-175904. Please look out for this fix in a future product release
Este artigo foi útil?
Utilizadores que acharam útil: 0 de 1