0 Replies Latest reply on Feb 10, 2009 2:15 PM by (Jeff_Vroom)

    [svn] 4921: Bugs: LCDS-548 - Two more issues: if argumentNames was not set, we did not hit the special

      Revision: 4921
      Author: jvroom@adobe.com
      Date: 2009-02-10 14:15:20 -0800 (Tue, 10 Feb 2009)

      Log Message:
      -----------
      Bugs: LCDS-548 - Two more issues: if argumentNames was not set, we did not hit the special
      case for a single XML parameter. Secondly (and more importantly), if there was a single String
      parameter and the content type was XML the String would get converted using the SimpleXMLEncoder
      which escaped the string (and the request body would guaranteed to not be valid XML).
      With this fix, a single String parameter is now fed in directly as the body of the HTTP
      request when the content type is XML.

      QA: yes, verify the bug is fixed

      Doc: Could use a release note because of the behavioral change:

      "There has been a minor behavior change to the HTTPService when you set
      its contentType to 'application/xml'. If you call 'send' with a single String parameter
      that value is now treated as the XML String itself and placed directly into the request
      body. Previously the request body was formed by escaping all HTML control characters
      found in the String."

      Reviewers: Seth and Pete

      Ticket Links:
      ------------
      http://bugs.adobe.com/jira/browse/LCDS-548

      Modified Paths:
      --------------
      flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as
      flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/Operation.as