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

GET /content/objects/<contentId>/relations doesn't match specifications

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • None
    • 5.0, 5.1, 2.1.0, 1.13.1, 2.0.2, 1.7.7
    • Platform > REST API v2
    • None

    Description

      The current implementation returns a wrong location:

      $ ezhttp GET /content/objects/2861/relations
      
      Status: 307 Temporary Redirect
      [...]Location: /api/ezp/v2/content/objects/2861/relations?versionNumber=1
      

      The specifications expect this format:

      HTTP/1.1 307 Temporary Redirect
      Location: /content/objects/<ID>/versions/<currentversion>/relations
      

      https://github.com/ezsystems/ezpublish-kernel/blob/master/doc/specifications/rest/REST-API-V2.rst#13251load-relations-of-content

      Attachments

        Activity

          People

            andrew.longosz@ibexa.co Andrew Longosz
            bertrand.dunogier@ibexa.co Bertrand Dunogier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: