U4-9652 - EntityService.GetKeyForId doesn't respect the UmbracoObjectType parameter

Created by Claus Jensen 21 Mar 2017, 10:51:14 Updated by Umbraco 29 May 2017, 09:17:28

Tags: Unscheduled

As long as you request a ''valid'' entity type in the parameter, this method will return the key for the corresponding entity ID, no matter if the entity type in the parameter actually matches the found entity.

Pretty sure it's the same for GetIdForKey.


Andy Butland 19 Apr 2017, 17:41:27

PR for this here: https://github.com/umbraco/Umbraco-CMS/pull/1894

Claus Jensen 20 Apr 2017, 08:27:46

@abutland Thanks a lot :) was very similar to the fix I had laying around in my stash for this - just haven't had time to actually get it merged in and write tests.

Priority: Minor

Type: Bug

State: Fixed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted: Pull request

Affected versions: 7.6.0, 7.5.11, 7.5.12

Due in version: 7.6.0

Sprint: Sprint 57

Story Points: 1