Inconsistency between propfind_invalid2 and propnullns?

Tobias Schlitt ts at ez.no
Tue Aug 19 12:28:52 EDT 2008


Hi Joe,

On 08/19/2008 05:02 PM Joe Orton wrote:
> On Tue, Aug 19, 2008 at 01:40:49PM +0200, Tobias Schlitt wrote:

>> 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

Ah, I see. Thanks for kicking me to the point.

I needed to switch namespace validation off for the point that libxml2
already indicates that DAV: is not a valid namespace URI. Therefore the
incorrect namespace test was not caught before and my manual consistency
checks resulted in the propnulls test failed, too.

I'll try to find another workaround to libxmls behaviour.

Regards,
Toby
-- 
Mit freundlichen Grüßen / Med vennlig hilsen / With kind regards

Tobias Schlitt (GPG: 0xC462BC14) eZ Components Developer

ts at ez.no | eZ Systems AS | ez.no

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.manyfish.co.uk/pipermail/litmus/attachments/20080819/37d3867b/attachment-0006.bin 


More information about the litmus mailing list