[Mono-bugs] [Bug 649969] Web service test form formatting problem with braces in attribute values

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 2 08:43:45 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=649969

https://bugzilla.novell.com/show_bug.cgi?id=649969#c3


Oskar Berggren <oskar.berggren at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW
       InfoProvider|oskar.berggren at gmail.com    |

--- Comment #3 from Oskar Berggren <oskar.berggren at gmail.com> 2010-11-02 12:43:44 UTC ---
Created an attachment (id=398164)
 --> (http://bugzilla.novell.com/attachment.cgi?id=398164)
Simple test case (small web app)

The output currently is:

<?xml version="1.0" encoding="utf-8"?>
<BraceResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/">
  <Parameters>
    <BraceParameter Name="no braces" Value="foo" />
    <BraceParameter Name="one { left brace" Value="foo" />
    <BraceParameter Name="one  right brace" Value="foo" }/>
    <BraceParameter Name="one {bar brace pair" Value="foo" }/>
    <BraceParameter Name="two {bar brace pairs {bepa}" Value="foo" }/>
  </Parameters>
</BraceResult>


The output should be:
<?xml version="1.0" encoding="utf-8"?>
<BraceResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/">
  <Parameters>
    <BraceParameter Name="no braces" Value="foo" />
    <BraceParameter Name="one { left brace" Value="foo" />
    <BraceParameter Name="one } right brace" Value="foo" />
    <BraceParameter Name="one {bar} brace pair" Value="foo" />
    <BraceParameter Name="two {bar} brace pairs {bepa}" Value="foo" />
  </Parameters>
</BraceResult>

Note how the first right brace gets moved to almost the end of the line.

The formatting is done using regular expression, and that code currently seems
to be based on the theory that a right brace will never occur naturally in an
attribute value.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list