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

[REST] GET Content request fails when the content has no locations

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: 5.1, 5.2, 5.3-dev
    • Fix Version/s: 5.3
    • Component/s: Platform > REST API v2
    • Labels:

      Description

      Currently, GET requests to /content/objects/{$objectId} fail with a HTTP 500 when the content has not been published, i.e. the only version is in DRAFT status, or if it lacks locations.

      This happens because objects that exist only as a draft do not yet have a location, but the controller method does not take this into account when calling the LocationService.

        Issue Links

          Activity

          Hide
          Bertrand Dunogier added a comment -

          PR ezpublish-kernel#726 by Henning Petersen.

          Show
          Bertrand Dunogier added a comment - PR ezpublish-kernel#726 by Henning Petersen.
          Show
          André Rømcke added a comment - Fixed in : https://github.com/ezsystems/ezpublish-kernel/commit/6f748831e7175f63b8a7c9ad454a14c055142ee1
          Hide
          Marcos Loureiro (Inactive) added a comment -

          QA Approved

          Show
          Marcos Loureiro (Inactive) added a comment - QA Approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Henning Petersen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h