You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Sweta Dhanuka (Created) (JIRA)" <xm...@xml.apache.org> on 2011/12/07 22:58:40 UTC

[jira] [Created] (XMLBEANS-471) toString() and xmlText() break when "<\" appears at specific position with a & in the value of the tag.

toString() and xmlText() break when "<\" appears at specific position with a &amp; in the value of the tag.
-----------------------------------------------------------------------------------------------------------

                 Key: XMLBEANS-471
                 URL: https://issues.apache.org/jira/browse/XMLBEANS-471
             Project: XMLBeans
          Issue Type: Bug
          Components: XmlObject
         Environment: Windows, Unix, JAVA.

            Reporter: Sweta Dhanuka


I am trying to convert a an XMLObject to a String. I tried using both the toString() and xmltext() methods. They work fine in most of the cases, but it seems they garble up the xml when converting to String when certain conditions are met. The conditions are:
 - the closing tag ("<\" ) starts right after the 131072(i.e.,128K) character 
 - the text value preceding the "<\" characters has a special character such as &amp;
 - there are more than 3 characters between the special character and the closing tag. 
If these conditions are met, then the text 3 characters after the special character, till teh closing tag "<\" is overlayed at the start of the string..


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] [Updated] (XMLBEANS-471) toString() and xmlText() break when "<\" appears at specific position with a & in the value of the tag.

Posted by "Sweta Dhanuka (Updated) (JIRA)" <xm...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XMLBEANS-471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sweta Dhanuka updated XMLBEANS-471:
-----------------------------------

    Attachment: Test.xml

This is a test xml file , which would help recreate the error
                
> toString() and xmlText() break when "<\" appears at specific position with a &amp; in the value of the tag.
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: XMLBEANS-471
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-471
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: XmlObject
>         Environment: Windows, Unix, JAVA.
>            Reporter: Sweta Dhanuka
>         Attachments: Test.xml
>
>
> I am trying to convert a an XMLObject to a String. I tried using both the toString() and xmltext() methods. They work fine in most of the cases, but it seems they garble up the xml when converting to String when certain conditions are met. The conditions are:
>  - the closing tag ("<\" ) starts right after the 131072(i.e.,128K) character 
>  - the text value preceding the "<\" characters has a special character such as &amp;
>  - there are more than 3 characters between the special character and the closing tag. 
> If these conditions are met, then the text 3 characters after the special character, till teh closing tag "<\" is overlayed at the start of the string..

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] [Commented] (XMLBEANS-471) toString() and xmlText() break when "<\" appears at specific position with a & in the value of the tag.

Posted by "Wing Yew Poon (Commented) (JIRA)" <xm...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XMLBEANS-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13164907#comment-13164907 ] 

Wing Yew Poon commented on XMLBEANS-471:
----------------------------------------

Sweta, do you have a test case or repro for this? if you could upload one, that would be helpful.
And you mean "</", not "<\", right?

                
> toString() and xmlText() break when "<\" appears at specific position with a &amp; in the value of the tag.
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: XMLBEANS-471
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-471
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: XmlObject
>         Environment: Windows, Unix, JAVA.
>            Reporter: Sweta Dhanuka
>
> I am trying to convert a an XMLObject to a String. I tried using both the toString() and xmltext() methods. They work fine in most of the cases, but it seems they garble up the xml when converting to String when certain conditions are met. The conditions are:
>  - the closing tag ("<\" ) starts right after the 131072(i.e.,128K) character 
>  - the text value preceding the "<\" characters has a special character such as &amp;
>  - there are more than 3 characters between the special character and the closing tag. 
> If these conditions are met, then the text 3 characters after the special character, till teh closing tag "<\" is overlayed at the start of the string..

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] [Commented] (XMLBEANS-471) toString() and xmlText() break when "<\" appears at specific position with a & in the value of the tag.

Posted by "Sweta Dhanuka (Commented) (JIRA)" <xm...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XMLBEANS-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13172466#comment-13172466 ] 

Sweta Dhanuka commented on XMLBEANS-471:
----------------------------------------

Thanks Wing, I did mean "</" and not "<\". 
                
> toString() and xmlText() break when "<\" appears at specific position with a &amp; in the value of the tag.
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: XMLBEANS-471
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-471
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: XmlObject
>         Environment: Windows, Unix, JAVA.
>            Reporter: Sweta Dhanuka
>         Attachments: Test.xml
>
>
> I am trying to convert a an XMLObject to a String. I tried using both the toString() and xmltext() methods. They work fine in most of the cases, but it seems they garble up the xml when converting to String when certain conditions are met. The conditions are:
>  - the closing tag ("<\" ) starts right after the 131072(i.e.,128K) character 
>  - the text value preceding the "<\" characters has a special character such as &amp;
>  - there are more than 3 characters between the special character and the closing tag. 
> If these conditions are met, then the text 3 characters after the special character, till teh closing tag "<\" is overlayed at the start of the string..

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org