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 ji...@apache.org on 2004/04/07 14:11:43 UTC

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

Message:

   The following issue has been resolved as FIXED.

   Resolver: Susantha Kumara
       Date: Wed, 7 Apr 2004 5:11 AM

Not available in current version 
---------------------------------------------------------------------
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: Resolved
   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: Wed, 7 Apr 2004 5:11 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