Inconsistency between propfind_invalid2 and propnullns?
Joe Orton
joe at manyfish.co.uk
Tue Aug 19 11:02:25 EDT 2008
On Tue, Aug 19, 2008 at 01:40:49PM +0200, Tobias Schlitt wrote:
> Hi there!
>
> I'm working on a PHP Webdav server library for my customer. Therefore I
> use Litmus quite often and really like it.
>
> However, I think there is an inconsistency in the property tests:
>
> Test propfind_invalid2 checks that no empty namespaces are used in
> PROPFIND requests, because empty namespaces are illegal. However,
> propnullns checks that a PROPPATCH with an empty namespace works correctly.
They are testing different cases - you really need to read the XML
Namespaces spec very carefully and implement that if your XML parser
doesn't do it for you. propfind_invalid2/propnulls are testing:
xmlns="DAV:" -> set default namespace to DAV:
xmlns="" -> reset to no default namespace
xmlns:bar="" -> invalid XML namespace declaration, parse error
Regards, Joe
More information about the litmus
mailing list