U4-10271 - Using 'GetValue' should return a null if the property does not exist on the DocumentType rather than throw

Created by Warren Buckley 08 Aug 2017, 14:10:09 Updated by Shannon Deminick 09 Aug 2017, 09:45:08

Subtask of: U4-9609

This has come from a customer support case, without debugging against Umbraco core & Articulate it was hard to know exactly what property is missing when Articulate is trying to use GetValue

So this should now report what node and what propertyAlias we are trying to fetch for a specific document type alias. This will help the customer and first line support identify a problem. Especially if the property has been removed or renamed.

2 Attachments

Comments

Warren Buckley 08 Aug 2017, 15:14:30

PR for this is here - https://github.com/umbraco/Umbraco-CMS/pull/2112 Attached before & after screenshots showing the exception details (private files based off customer support site)


Warren Buckley 09 Aug 2017, 09:33:18

@Shandem updated to return nulls instead of throwing & ready for a quick review - have updated title of issue to reflect this for changelog for our releases.


Priority: Normal

Type: Task

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version: 7.6.6

Sprint:

Story Points:

Cycle: 3