It's a bit difficult decision, as the "relative URI" could be any path string
that contain colons as a *valid* path (especially on *nix land).
We historically did allow such string that contain "http:" etc. as to be
treated as absolute (which historically worked long time).
But this test case uncovered possible other cases.
Hopefully this does not bring issues that is pretty much anticipated. Such
issues could also happen in older code anyways.
2009-04-28 Sebastien Pouliot <[email protected]>
* XmlResolverTest.cs: New. Unit tests for base features.
In System.Xml:
2009-04-28 Sebastien Pouliot <[email protected]>
* XmlResolver.cs: Small fixes wrt new unit tests. Add SupportsType
method for NET_2_1 profile.
In .:
2009-04-28 Sebastien Pouliot <[email protected]>
* System.Xml_test.dll.sources: Add System.Xml/XmlResolverTest.cs to
the unit tests
svn path=/trunk/mcs/; revision=132851
* XmlXapResolver.cs : fix assembly qualified names,
and give detailed errors.
* XmlResolver.cs : in 2.1 do not resolve relative Uri
to absolute.
svn path=/trunk/mcs/; revision=124218
* XmlResolver.cs, XmlUrlResolver.cs, XmlSecureResolver.cs :
remove ICredential in NET_2_1 (they have to be explicitly removed
outside tuner work as ICredentials does not exist in 2.1 profile).
We cannot use WebRequest in 2.1 as well, so remove dependency on
it in GetEntity() (and added MonoTODO for non-file URLs).
svn path=/trunk/mcs/; revision=83389
* XmlReaderSettings.cs :
set_Schemas() is fixed in 2.0 RTM (it just works).
* XmlResolver.cs : throw ArgumentNullException instead of
ArgumentException when both base and relative urls are null.
* XmlReaderSettingsTests.cs : SetSchemas() should not cause an error.
Added SetSchemasNull() as well.
* XmlUrlResolverTests.cs : (ResolveUriWithNullArgs)
expect ArgumentNullException instead of ArgumentException.
This is a fix in .NET 2.0.
svn path=/trunk/mcs/; revision=54093
* XmlDocument.cs: Added an InheritanceDemand for Unrestricted on
CreateDocumentType and ReadNode methods.
* XmlException.cs: Added a Demand for SerializationFormatter on
GetObjectData method.
* XmlResolver.cs: Added an InheritanceDemand for Unrestricted on
ResolveUri method.
* XmlSecureResolver.cs: Fixed exception when creating evidences with
an empty URL in CreateEvidenceForUrl method. Only call ResolvePolicy
and PermitOnly if the security manager is enabled.
* XmlTextReader.cs: Added an InheritanceDemand for Unrestricted on the
class.
* XmlTextReader2.cs: Added an InheritanceDemand for Unrestricted on
the class.
* XmlValidatingReader.cs: Added an InheritanceDemand for Unrestricted
on the class.
svn path=/trunk/mcs/; revision=49179
* XmlTokenizedType.cs: Added to CVS.
* XmlUrlResolver.cs: Added to CVS with one TODO task.
2002-02-23 Duncan Mak <[email protected]>
* XmlQualifiedName.cs: Fixed ToString () and added the
operators (== and !=).
svn path=/trunk/mcs/; revision=2616