You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by ax...@ws.apache.org on 2004/10/15 12:03:52 UTC

[jira] Closed: (AXISCPP-45) Fatal Error in XMLStreamHandler; Unterminated entity reference

Message:

   The following issue has been closed.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXISCPP-45

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXISCPP-45
    Summary: Fatal Error in XMLStreamHandler; Unterminated entity reference
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

    Project: Axis-C++
 Components: 
             Transport (Client)
   Fix Fors:
             current (nightly)
   Versions:
             Alpha

   Assignee: 
   Reporter: Nadine Maloney

    Created: Thu, 25 Mar 2004 8:00 AM
    Updated: Fri, 15 Oct 2004 3:03 AM
Environment: Windows XP C++ Client

Description:
When receiving responses longer then 4096, a fatal error exception happens in XMLStreamHandler. The exception message is "Unterminated entity reference" is received.

This is caused because an invalid character is hit in the message stream. This is because when reading in a response in multiple chunks the null at the end of the message is not set correctly.

Solution:
Change Line #259 in Channel.cpp from
  buf[nByteRecv + 1] = '\0';	
To 
  buf[nByteRecv] = '\0';	



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira