We have moved to GitHub Issues
Created by Wouter van der Beek 10 Sep 2015, 07:37:39 Updated by Sebastiaan Janssen 23 Sep 2015, 10:26:49
Is duplicated by: U4-7088
Is duplicated by: U4-7132
What did you do?
What did you expect to happen? I expected the package to be published
What actually happened? YSOD displaying a NULL reference exception. The package was not published.
After further testing it appears the error is thrown when any or all of the following are included: templates, languages, data types
Looks like happens when you select a template to package.
Repro - by creating a package and adding just 1 template to the package.
Also applies to datatypes apparently @zpqrtbnk - see U4-7088
Cause: the CreatedPackage class at some point does templates.Append(template.ToXml(packageManifest)) where template.ToXml(packageManifest) is supposed to return the template as an XmlNode belonging to the packageManifest XmlDocument. But due to an issue in XmlExtensions.GetXmlNode(...) the original packageManifest XmlDocument is cleared in the way. And then nothing works.
The weird thing is that all this seems to have been in place for ages (eg, 2yrs) so it's surprising the issue pops now?!
Pushed 5dac5ed88b1ba50ae7da8dbb8b4f78851267df53 - fixes the issue, and a more general issue with XmlExtensions.GetXmlNode().
Backwards Compatible: True
Affected versions: 7.3.0
Due in version: 7.3.0