|
|
|
[
Permlink
| « Hide
]
Robin Shen [03/May/14 01:21 AM]
QB does able to encode the character "&" in resulting XML. And I verified it to be true when requesting the XML directly into a file. The reason you are seeing this probably because that you are viewing this in browser, and the browser automatically converts "&" to "&" for readability.
So this config Id is not showing the problem now but another one is, so downloaded the curl with curl e.g.
curl -k -u username:password -o curl.xml "https://quickbuild/rest/configurations?parent_id=48976&recursive=true" The XML snippet from this is <com.pmease.quickbuild.model.Configuration> <id>48986</id> <disabled>false</disabled> <parent>48976</parent> <name>skype.portal</name> <description>The Portal</description> <statusDate>2014-05-05T14:37:53.708+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</groupId> <artifactId>portal</artifactId> <version>1.73-SNAPSHOT</version> </com.pmease.quickbuild.plugin.builder.maven.Gav> </linked-hash-set> </entry> </data> <stepDOMs/> <repositoryDOMs/> <aggregationDOMs/> <variables/> <notifications/> <promotions/> </com.pmease.quickbuild.model.Configuration> So XML syntax check again gives that there is an invalid character on line with for the errorMessage element This was originally picked up by a user running a script against the Rest API. It is therefore not a browser converting & to & Can you please take a mysql dump of your database and send to [robin AT pmease DOT com]? I am wondering what character is actaully storing in database as every & has been encoded correctly at my side. If you care about the sensitive information, you may reproduce this with simple configurations in a demo database to send me the dump.
|