Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3C43B10B34 for ; Thu, 1 Aug 2013 18:09:50 +0000 (UTC) Received: (qmail 96667 invoked by uid 500); 1 Aug 2013 18:09:49 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 96646 invoked by uid 500); 1 Aug 2013 18:09:49 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 96632 invoked by uid 99); 1 Aug 2013 18:09:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Aug 2013 18:09:49 +0000 Date: Thu, 1 Aug 2013 18:09:49 +0000 (UTC) From: "Ben Burns (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FLEX-33644) XMLEncoder improperly handles encoding the string "null". MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Ben Burns created FLEX-33644: -------------------------------- Summary: 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.5 (Release) Reporter: Ben Burns Found this bug while researching an answer for this StackOverflow question: http://stackoverflow.com/questions/4456438/how-can-i-pass-the-string-null-through-wsdl-soap-from-as3-to-coldfusion-web If XMLEncoder is passed a string "null" (that is, a proper string, not null the placeholder value), it's possible that the value will not be included in the encoded output. This appears to be because of the equality check here: https://git-wip-us.apache.org/repos/asf?p=flex-sdk.git;a=blob;f=frameworks/projects/rpc/src/mx/rpc/xml/XMLEncoder.as;h=f9a223e66e35fa8a11095e4e458c5a09d92678eb;hb=4f20635628acdc09e8739c5f94ec644d20cbd959#l101 (this is HEAD at time of posting). I believe that in that case, null is coerced to "null" and the equality test succeeds which in turn sets content to null, causing the output to be omitted later in the encode method. Note that this has been a problem since at least Flex 3.5, and probably longer. http://opensource.adobe.com/svn/opensource/flex/sdk/tags/3.5.0.12683/frameworks/projects/rpc/src/mx/rpc/xml/XMLEncoder.as -- 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