Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22412

[REST API] get url aliases list not retrieving the list

    Details

      Description

      Doing an authorized request to:

      GET /content/locations/<location-path>/urlaliases
      Accept: application/vnd.ez.api.UrlAliasRefList+json
      

      Will always return an empty UrlAlias list:

       
       
          {
             "UrlAliasRefList":
             {
                 "_media-type": "application/vnd.ez.api.UrlAliasRefList+json",
                 "_href": "/api/ezp/v2/content/locations/2/1264/urlaliases",
                 "UrlAlias":
                 [
                 ]
             }
          }
      

      Steps:

      1. create an object (ex: article)
      2. create a new UrlAlias for it
      3. make a request equal to the above example
      4. verify that the UrlAlias is not returned

        Issue Links

          Activity

          Hide
          Joao Inacio (Inactive) added a comment - - edited
          Show
          Joao Inacio (Inactive) added a comment - - edited Unless the 'custom' parameter is specifically set to 'false', it will return only custom aliases, possibly an empty list. Ref: https://github.com/ezsystems/ezpublish-kernel/blob/master/doc/specifications/rest/REST-API-V2.rst#list-urlaliases-for-location (see also https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/REST/Server/Controller/URLAlias.php#L91 )

            People

            • Assignee:
              Unassigned
              Reporter:
              Marcos Loureiro (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: