flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Martin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-34106) XML.prettyPrinting strips leading and trailing spaces from string values in xml structure
Date Tue, 25 Feb 2014 23:03:25 GMT

     [ https://issues.apache.org/jira/browse/FLEX-34106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chris Martin updated FLEX-34106:
--------------------------------

    Description: 
When XML.prettyPrinting is set to true, it will strip leading and trailing spaces from string
values inside the soap envelope

I'm attaching a project which uses a public soap interface used by adobe for their "Flex in
a Week" training program.  You must have visibility to this soap service for this to work
right away.  I've also monkey patched mx.rpc.soap.SOAPEncoder from Flex 4.11.0 to include
trace statements at lines 171 and 179  

To Reproduce

1.) Debug the attached project
2.) In the department field type " test test " (without quotes)
4.) Click Submit button

Result

Look in the console window and look for !!!NO PRETTY PRINTING!!! below that trace line you
will see a collapsed soap envelope.  Scroll to the right and look for the "DEPARTMENT" property
in the soap envelope.  Note the value has the leading and trailing spaces.  Now look for !!!PRETTY
PRINTING!!!.  In the soap envelope below that line look at the DEPARTMENT property.  Note
that the leading and trailing spaces are gone.

Expected Result

Both string values match in the xml structure regardless of prettyPrinting.

>From the dropdown choose

  was:
When XML.prettyPrinting is set to true, it will strip leading and trailing spaces from string
values inside the soap envelope

I'm attaching a project which uses a public soap interface used by adobe for their "Flex in
a Week" training program.  You must have visibility to this soap service for this to work
right away.  I've also monkey patched mx.rpc.soap.SOAPEncoder from Flex 4.11.0 to include
trace statements at lines 171 and 179  

To Reproduce

1.) Debug the attached project
2.) In the department field type " test test " (without quotes)
4.) Click Submit button

Result

Look in the console window and look for !!!NO PRETTY PRINTING!!! below that trace line you
will see a collapsed soap envelope.  Scroll to the right and look for the "DEPARTMENT" property
in the soap envelope.  Note the value has the leading and trailing spaces.  Now look for !!!PRETTY
PRINTING!!!.  In the soap envelope below that line look at the DEPARTMENT property.  Note
that the leading and trailing spaces are gone.

Expected Result

Both soap envelopes match regardless of prettyPrinting.

>From the dropdown choose


> XML.prettyPrinting strips leading and trailing spaces from string values in xml structure
> -----------------------------------------------------------------------------------------
>
>                 Key: FLEX-34106
>                 URL: https://issues.apache.org/jira/browse/FLEX-34106
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: RPC: WebService
>    Affects Versions: Apache Flex 4.8 (parity release), Apache Flex 4.9.0, Apache Flex
4.10.0, Apache Flex 4.11.0
>            Reporter: Chris Martin
>              Labels: easytest
>         Attachments: ex2_09_solution.zip
>
>
> When XML.prettyPrinting is set to true, it will strip leading and trailing spaces from
string values inside the soap envelope
> I'm attaching a project which uses a public soap interface used by adobe for their "Flex
in a Week" training program.  You must have visibility to this soap service for this to work
right away.  I've also monkey patched mx.rpc.soap.SOAPEncoder from Flex 4.11.0 to include
trace statements at lines 171 and 179  
> To Reproduce
> 1.) Debug the attached project
> 2.) In the department field type " test test " (without quotes)
> 4.) Click Submit button
> Result
> Look in the console window and look for !!!NO PRETTY PRINTING!!! below that trace line
you will see a collapsed soap envelope.  Scroll to the right and look for the "DEPARTMENT"
property in the soap envelope.  Note the value has the leading and trailing spaces.  Now look
for !!!PRETTY PRINTING!!!.  In the soap envelope below that line look at the DEPARTMENT property.
 Note that the leading and trailing spaces are gone.
> Expected Result
> Both string values match in the xml structure regardless of prettyPrinting.
> From the dropdown choose



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message