MoveContentEventArgs.ContentLink should be updated when content is moved between providers

Found in

EPiServer.CMS.Core 7.0.586.0

Fixed in

EPiServer.CMS.Core 11.1.0

Created

Apr 03, 2017

Updated

Nov 21, 2017

Area

CMS Core

State

Closed, Fixed and tested


Description

When a content item is moved between content providers, the ContentLink for the content provider should change. However, the property MoveContentEventArgs.ContentLink is never updated, so an event handler that tries to load the content using args.ContentLink faces a ContentNotFoundException.

Breaking change
Update eventArgs.ContentLink when moving between providers (as we do with args.Content), there is a property MoveContentEventArgs.OriginalContentLink that holds the "old" reference.