You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Pär Malmqvist (JIRA)" <ji...@apache.org> on 2007/09/07 14:31:30 UTC

[jira] Created: (WSCOMMONS-243) "\r\n" handled different by Axis and Axis2

"\r\n" handled different by Axis and Axis2
------------------------------------------

                 Key: WSCOMMONS-243
                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-243
             Project: WS-Commons
          Issue Type: Bug
          Components: AXIOM
         Environment: Java 1.5, Tomcat 5.5.20, Axis 1.2.1 and Axis2 1.3
            Reporter: Pär Malmqvist


When I transport a string including "\r\n" over SOAP and Axis 1.2 from a server to a client the client receives a string including "\n" only. 

When I transport a string including "\r\n" over SOAP and Axis2 1.3 from a server to a client the client receives a string including "\r\n". 


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Resolved: (WSCOMMONS-243) "\r\n" handled different by Axis and Axis2

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSCOMMONS-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen resolved WSCOMMONS-243.
---------------------------------------

    Resolution: Won't Fix
      Assignee: Andreas Veithen

I tried to reproduce the issue described here. What actually happens is that an "\r\n" sequence in a text node is serialized as "&#xd;\n". The recipient will then deserialize this character data into "\r\n". This behavior is perfectly compatible with the XML specification. It should be noted that it is actually the underlying StAX implementation, not Axiom, that decides how "\r\n" will be serialized. The behavior described here (i.e. serialize it as "&#xd;\n") is the default in Woodstox. If you require "\r\n" to be serialized as "\r\n", you might want to have a look at the following Woodstox issue:

http://jira.codehaus.org/browse/WSTX-94


> "\r\n" handled different by Axis and Axis2
> ------------------------------------------
>
>                 Key: WSCOMMONS-243
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-243
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>         Environment: Java 1.5, Tomcat 5.5.20, Axis 1.2.1 and Axis2 1.3
>            Reporter: Pär Malmqvist
>            Assignee: Andreas Veithen
>
> When I transport a string including "\r\n" over SOAP and Axis 1.2 from a server to a client the client receives a string including "\n" only. 
> When I transport a string including "\r\n" over SOAP and Axis2 1.3 from a server to a client the client receives a string including "\r\n". 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WSCOMMONS-243) "\r\n" handled different by Axis and Axis2

Posted by "josef andersson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSCOMMONS-243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569266#action_12569266 ] 

josef andersson commented on WSCOMMONS-243:
-------------------------------------------

Can verify this behaivor. I may be wrong, but isn't the soap standard supposed to always deliver an \n regardless of initial linebreak ..
This was also the behaivor in axis1.2

> "\r\n" handled different by Axis and Axis2
> ------------------------------------------
>
>                 Key: WSCOMMONS-243
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-243
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>         Environment: Java 1.5, Tomcat 5.5.20, Axis 1.2.1 and Axis2 1.3
>            Reporter: Pär Malmqvist
>
> When I transport a string including "\r\n" over SOAP and Axis 1.2 from a server to a client the client receives a string including "\n" only. 
> When I transport a string including "\r\n" over SOAP and Axis2 1.3 from a server to a client the client receives a string including "\r\n". 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (WSCOMMONS-243) "\r\n" handled different by Axis and Axis2

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSCOMMONS-243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654210#action_12654210 ] 

Andreas Veithen commented on WSCOMMONS-243:
-------------------------------------------

Section 2.11 (End-of-Line Handling) of "Extensible Markup Language (XML) 1.0 (Fourth Edition)" indeed says:

"To simplify the tasks of applications, the XML processor must behave as if it normalized all line breaks in external parsed entities (including the document entity) on input, before parsing, by translating both the two-character sequence #xD #xA and any #xD that is not followed by #xA to a single #xA character."


> "\r\n" handled different by Axis and Axis2
> ------------------------------------------
>
>                 Key: WSCOMMONS-243
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-243
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>         Environment: Java 1.5, Tomcat 5.5.20, Axis 1.2.1 and Axis2 1.3
>            Reporter: Pär Malmqvist
>
> When I transport a string including "\r\n" over SOAP and Axis 1.2 from a server to a client the client receives a string including "\n" only. 
> When I transport a string including "\r\n" over SOAP and Axis2 1.3 from a server to a client the client receives a string including "\r\n". 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.