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

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 5.3
    • 5.1, 5.2, 5.3-dev
    • Platform > REST API v2

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            henningp henningp
            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