Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
I am building a string that is inserted into and array in a loop:
if (relatedRecipe.length>1){
var hyperlink:String = ' <a href="'relatedRecipe'" target="_blank">(Get the Recipe)</a>';
ingredientName += hyperlink;
}
This array is being sent to a WSDL. In Flex 3, the result that is written to the dot net database is:
<a href="http://www.finecooking.com/recipes/no-cook-tomato-sauce-for-pizza.aspx" target="_blank">(Get the Recipe)</a>
However, in FB4 it is:
<a href="http://www.finecooking.com/recipes/classic-sherry-vinaigrette.aspx" target="_blank">(Get the Recipe)</a>
As you can see, the "less than" or open angle brackets have not only been encoded, but their ampersands have ALSO been encoded, which is breaking the code on the database.
New Reproduce steps:
1. import project from bug file
2. make sure the wsdl file is in right location(I have HelloWorld echo dot net service:http://10.60.144.67:81/WebService1/Service.asmx to generate action script codes) in flash builder
3. monitor the http request with charles
4. compile and run test file
->test failed in sdk4, from the soap request:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<tns:HelloWorld xmlns:tns="http://tempuri.org/">
<tns:input><a href=blank>(Get the Recipe)</a></tns:input>
</tns:HelloWorld>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
however in sdk3:
the soap request:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<tns:HelloWorld xmlns:tns="http://tempuri.org/">
<tns:input><a href=blank>(Get the Recipe)</a></tns:input>
</tns:HelloWorld>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Expect:
in sdk4, the soap request should be same as the one in sdk3 for the encoded string.