flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Burns (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FLEX-33644) XMLEncoder improperly handles encoding the string "null".
Date Fri, 02 Aug 2013 18:39:53 GMT

    [ https://issues.apache.org/jira/browse/FLEX-33644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13727685#comment-13727685
] 

Ben Burns edited comment on FLEX-33644 at 8/2/13 6:39 PM:
----------------------------------------------------------

Edited description to reflect my present understanding of what's going on (and perhaps to
remove my prior stupidity about type coercion as it applies to the null literal).
                
      was (Author: benjamincburns):
    Edited to reflect my present understanding of what's going on (and perhaps to remove my
prior stupidity about type coercion as it applies to the null literal).
                  
> XMLEncoder improperly handles encoding the string "null".
> ---------------------------------------------------------
>
>                 Key: FLEX-33644
>                 URL: https://issues.apache.org/jira/browse/FLEX-33644
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: RPC: General
>    Affects Versions: 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
>            Reporter: Ben Burns
>              Labels: rpc, soap, xml, xmlrpc
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message