Return 404 NotFound if node doesn't have ancestor

Found in

EPiServer.ContentDeliveryApi 1.0.1

Fixed in

EPiServer.ContentDeliveryApi 2.1.0

Created

Jun 22, 2018

Updated

Oct 30, 2018

State

Closed, Fixed and tested


Description

Precondition
The root node doesn't have an ancestor.

Steps to reproduce:

  1. Get the ancestor of the Root node.

({{EPCMSHost}}/api/episerver/v1.0/content/1/ancestors)

Expected:
Should return [].

Actual:
Returns 404 Not Found
"code": "NotFound",
"message": "Content was not found"