When the server is having authentication issues not related to Quickbuild it can generate not well formed XML in response to Rest API queries
The & in the errorMessage needs to be encoded or wrapped in CDATA
E.g. a query of
https://quickbuild/rest/configurations?parent_id=10242&recursive=true
Generate an XML response that include the following XML snippet
{code:xml}
<com.pmease.quickbuild.model.Configuration>
<id>165682</id>
<disabled>false</disabled>
<parent>10242</parent>
<name>skype.stratus.config.namespace</name>
<description>Stratus namespaced configuration library</description>
<statusDate>2014-05-02T11:08:57.380+01:00</statusDate>
<errorMessage>javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903C5, comment: AcceptSecurityContext error, data 52e, v2580�]
caused by: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903C5, comment: AcceptSecurityContext error, data 52e, v2580�]</errorMessage>
<pluginSettingDOMs/>
<data>
<entry>
<string>mavenGavs</string>
<linked-hash-set>
<com.pmease.quickbuild.plugin.builder.maven.Gav>
<groupId>skype.stratus.config</groupId>
<artifactId>namespace</artifactId>
<version>1.0</version>
</com.pmease.quickbuild.plugin.builder.maven.Gav>
</linked-hash-set>
</entry>
</data>
<stepDOMs/>
<repositoryDOMs/>
<aggregationDOMs/>
<variables/>
<notifications/>
<promotions/>
</com.pmease.quickbuild.model.Configuration>
{code}
This means the XML parser reading this data fails