Bug 16304 - XML reader error when parsing device plist from the Developer Portal
Summary: XML reader error when parsing device plist from the Developer Portal
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: master
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2013-11-17 07:48 UTC by Jeffrey Stedfast
Modified: 2014-08-04 15:00 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Jeffrey Stedfast 2013-11-17 07:48:07 UTC
ERROR [2013-11-16 20:43:40Z]: Failed to synchronize with Apple's Developer Portal. System.Xml.XmlException: Referenced character was not allowed in XML. Normalization is True, checkCharacters = True Line 139, position 32. at Mono.Xml2.XmlTextReader.ReadCharacterReference () [0x001a3] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1712 at Mono.Xml2.XmlTextReader.ReadReference (Boolean ignoreEntityReferences) [0x00015] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1664 at Mono.Xml2.XmlTextReader.ReadText (Boolean notWhitespace) [0x00048] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1599 at Mono.Xml2.XmlTextReader.ReadContent () [0x0015a] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1295 at Mono.Xml2.XmlTextReader.Read () [0x00141] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System.XML/System.Xml/XmlTextReader.cs:573 at System.Xml.XmlTextReader.Read () [0x0006b] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System.XML/System.Xml/XmlTextReader2.cs:566 at System.Xml.XmlReader.ReadStartElement () [0x0002f] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System.XML/System.Xml/XmlReader.cs:763 at System.Xml.XmlReader.ReadElementContentAsString () [0x0002e] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System.XML/System.Xml/XmlReader.cs:1159 at Xamarin.MacDev.PropertyListFormat+XmlFormat+Context.ReadString () [0x00007] in /Users/builder/data/lanes/monodevelop-lion-license-sync/844a84fe/source/md-addins/Xamarin.MacDev/PListObject.cs:1809 at Xamarin.MacDev.PropertyListFormat+ReadWriteContext.ReadObject () [0x000da] in /Users/builder/data/lanes/monodevelop-lion-license-sync/844a84fe/source/md-addins/Xamarin.MacDev/PListObject.cs:2008 at Xamarin.MacDev.PropertyListFormat+XmlFormat+Context.ReadDict (Xamarin.MacDev.PDictionary dict) [0x000ac] in /Users/builder/data/lanes/monodevelop-lion-license-sync/844a84fe/source/md-addins/Xamarin.MacDev/PListObject.cs:1858 at Xamarin.MacDev.PropertyListFormat+ReadWriteContext.ReadObject () [0x00107] in /Users/builder/data/lanes/monodevelop-lion-license-sync/844a84fe/source/md-addins/Xamarin.MacDev/PListObject.cs:2017 at Xamarin.MacDev.PropertyListFormat+XmlFormat+Context.ReadArray (Xamarin.MacDev.PArray array) [0x0009e] in /Users/builder/data/lanes/monodevelop-lion-license-sync/844a84fe/source/md-addins/Xamarin.MacDev/PListObject.cs:1831 at Xamarin.MacDev.PropertyListFormat+ReadWriteContext.ReadObject () [0x000f2] in /Users/builder/data/lanes/monodevelop-lion-license-sync/844a84fe/source/md-addins/Xamarin.MacDev/PListObject.cs:2012 at Xamarin.MacDev.PropertyListFormat+XmlFormat+Context.ReadDict (Xamarin.MacDev.PDictionary dict) [0x000ac] in /Users/builder/data/lanes/monodevelop-lion-license-sync/844a84fe/source/md-addins/Xamarin.MacDev/PListObject.cs:1858 at Xamarin.MacDev.PropertyListFormat+ReadWriteContext.ReadObject () [0x00107] in /Users/builder/data/lanes/monodevelop-lion-license-sync/844a84fe/source/md-addins/Xamarin.MacDev/PListObject.cs:2017 at Xamarin.MacDev.PObject.FromStream (System.IO.Stream stream) [0x00016] in /Users/builder/data/lanes/monodevelop-lion-license-sync/844a84fe/source/md-addins/Xamarin.MacDev/PListObject.cs:311 at Xamarin.MacDev.AppleDeveloperServices.RequestPlist (Xamarin.MacDev.AppleDeveloperServicesContext ctx, System.String uri, Xamarin.MacDev.PDictionary post, System.Int32& code) [0x0013f] in /Users/builder/data/lanes/monodevelop-lion-license-sync/844a84fe/source/md-addins/Xamarin.MacDev/Encrypted/AppleDeveloperServices.cs:239 at Xamarin.MacDev.AppleDeveloperServices.ListDevicesForTeam (Xamarin.MacDev.AppleDeveloperServicesContext ctx, Xamarin.MacDev.AppleTeam team, System.String platform) [0x00059] in /Users/builder/data/lanes/monodevelop-lion-license-sync/844a84fe/source/md-addins/Xamarin.MacDev/Encrypted/AppleDeveloperServices.cs:831 at Xamarin.MacDev.AppleDeveloperServices.SyncAlotOfDevices (Xamarin.MacDev.AppleDeveloperServicesContext ctx, Xamarin.MacDev.AppleTeam team) [0x00072] in /Users/builder/data/lanes/monodevelop-lion-license-sync/844a84fe/source/md-addins/Xamarin.MacDev/Encrypted/AppleDeveloperServices.cs:369 at Xamarin.MacDev.AppleDeveloperServices.GetRequestedInfo (Xamarin.MacDev.AppleDeveloperServicesContext ctx, AppleDeveloperServiceActions actions) [0x000d7] in /Users/builder/data/lanes/monodevelop-lion-license-sync/844a84fe/source/md-addins/Xamarin.MacDev/Encrypted/AppleDeveloperServices.cs:647
Comment 1 Jeffrey Stedfast 2013-11-18 14:58:52 UTC
Apparently there were some emoji characters in the device name.

http://en.wikipedia.org/wiki/Emoji

I've tried a few random emoji characters in an Xcode Info.plist and they parsed fine in XS, so it may be that Apple's server is using a different plist-xml implementation?

Or perhaps it depends on the emoji character?

Not sure.
Comment 2 Mikayla Hutchinson [MSFT] 2013-11-18 15:40:43 UTC
My guess is that the wrong encoding is being used when reading the stream from the server.
Comment 3 Jeffrey Stedfast 2013-11-19 14:06:38 UTC
This is the forum thread: http://forums.xamarin.com/discussion/10297/error-adding-account-in-xamarin-studio-preferences

There's an image attachment on the forums to show which emoji he had, so that might be helpful.
Comment 4 Jeffrey Stedfast 2014-08-04 15:00:17 UTC
closing since we've removed the Developer Portal integration