[mapguide-commits] r6011 - trunk/MgDev/Server/src/Common/Manager
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Wed Jul 27 21:59:12 EDT 2011
Author: hubu
Date: 2011-07-27 18:59:12 -0700 (Wed, 27 Jul 2011)
New Revision: 6011
Modified:
trunk/MgDev/Server/src/Common/Manager/FdoConnectionManager.cpp
Log:
On behalf of: Spark Liu
Fix ticket 1762: Connect always shows "Cannot parse XML document whose stream is at end-of-file." when setting configuration
This is because after setting configuration to a stream, the code forgets to reset the stream to put the position to the head of the stream so that a reader can read it.
Modified: trunk/MgDev/Server/src/Common/Manager/FdoConnectionManager.cpp
===================================================================
--- trunk/MgDev/Server/src/Common/Manager/FdoConnectionManager.cpp 2011-07-28 01:51:16 UTC (rev 6010)
+++ trunk/MgDev/Server/src/Common/Manager/FdoConnectionManager.cpp 2011-07-28 01:59:12 UTC (rev 6011)
@@ -909,6 +909,7 @@
{
FdoIoMemoryStreamP stream = FdoIoMemoryStream::Create();
stream->Write((FdoByte*)bytes->Bytes(), (FdoSize)bytes->GetLength());
+ stream->Reset();
pFdoConnection->SetConfiguration(stream);
}
}
More information about the mapguide-commits
mailing list