Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Return NotFound if content does not have a sub item

Found in

EPiServer.ContentDeliveryApi 1.0.1

Fixed in

EPiServer.ContentDeliveryApi 2.1.0

(Or a related package)

Created

Jun 22, 2018

Updated

Oct 30, 2018

State

Closed, Fixed and tested


Description

Note: The bug also happens in the trash folder if there is no item inside the trash.

Precondition: A search page does not have a sub item.

Step to reproduce:

  1. Get children content from search.

({{EPCMSHost}}/api/episerver/v1.0/content/32/children)

Expected:
Should return []

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