Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33644

XMLEncoder improperly handles encoding the string "null".

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Adobe Flex SDK 3.0 (Release), Adobe Flex SDK 3.1 (Release), Adobe Flex SDK 3.2 (Release), Adobe Flex SDK 3.3 (Release), Adobe Flex SDK 3.4 (Release), Adobe Flex SDK 3.5 (Release), Adobe Flex SDK 3.6 (Release), Apache Flex 4.9.0
    • Fix Version/s: None
    • Component/s: RPC: General
    • Labels:

      Description

      The following code returns an empty string:

      var enc:XMLEncoder = new XMLEncoder();
      enc.encode("null");

      However, SchemaMarshaller.marshall() correctly returns the string "null".

      I believe the problems is that XML.appendChild (as used in XMLEncoder.setValue) for some reason treats the string "null" differently. I have no idea why.

      If you're curious as to why I think this is a bug, see this StackOverflow question:
      http://stackoverflow.com/questions/4456438/how-can-i-pass-the-string-null-through-wsdl-soap-from-as3-to-coldfusion-web

      Finally, see this fiddle for examples:
      http://wonderfl.net/c/jYIm

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              benjamincburns Ben Burns
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: