From: Rick Alther <alther@us.ibm.com>

This patch fixes a problem in the RestXmlWriter where an exception may be
thrown when ToString() is called.  ToString() is closing the last tag prior
to returning the string object, which it shouldn't do.  People should be
closing the XML tags and document properly and not rely on the ToString()
side effect to do it for them.  This is most noticeable if you hit
the /regions/ and /regioninfo/ REST calls.  If you are running r9579 or
later, these calls will result in an error.
trunk
Sean Dague 2009-07-20 15:12:50 +00:00
parent cf712075e5
commit 57c325540c
1 changed files with 0 additions and 1 deletions

View File

@ -63,7 +63,6 @@ namespace OpenSim.ApplicationPlugins.Rest
public override string ToString()
{
WriteEndElement();
Flush();
Close();
return m_sw.ToString();