U4-9242 - XmlWhiteSpace nodes appear in Xml cache

Created by Stephan 05 Dec 2016, 08:19:25 Updated by Sebastiaan Janssen 20 Feb 2017, 13:08:46

Subtask of: deploy-118

During Deploy operation the Xml cache ends up containing some unexpected XmlWhiteSpace nodes and that can break some looks foreach (XmlElement elt in nodes) - need to figure out ''what'' is creating these whitespaces (and/or fix the loops for foreach (var elt in nodes.OfType<XmlElement>()).


Stephan 05 Dec 2016, 17:51:52

Current status: cannot repro. It happened in the middle of me debugging issues with Core databases and other multi-threading issues - so maybe weird things were happening that don't happen normally.

That being said... White-space Xml elements in the Xml cache are perfectly valid, only the foreach (XmlElement... cannot handle them. So, all loops have been fixed (see description) to support whitespaces.

Suggesting we close the issue.

Stephan 06 Dec 2016, 08:02:34

Commit: https://github.com/umbraco/Umbraco-CMS/commit/3e8f85a4b4f89083162d3c955ccc84b74351af95

Priority: Normal

Type: Task

State: Fixed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version: 7.5.5

Sprint: Sprint 48

Story Points: 1.5