jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Reschke <julian.resc...@gmx.de>
Subject Re: occasional TCK test failure
Date Mon, 07 May 2012 16:09:58 GMT
On 2012-05-05 15:28, Michael Dürig wrote:
>
>
> On 5.5.12 11:34, Julian Reschke wrote:
>> Hi there,
>>
>> occasionally I get a test failure because the TCK discovers a node that
>> lacks a primary type.
>>
>> As far as I recall, it's either /jcr:system or
>> /jcr:system/jcr:namespaces (of course right now it doesn't occur).
>>
>> With the change below I tried to make sure the type is set, but maybe
>> I'm doing something wrong?
>>
>> if (create) {
>> system = tree.addChild("jcr:system");
>> + system.setProperty("jcr:primaryType",
>> this.session.getCoreValueFactory().createValue("rep:system",
>> PropertyType.NAME));
>> } else {
>
> This looks good to me. There are two things we should do further down
 > ...

FWIW I haven't seen the failure again.

> ...

Best regards, Julian

Mime
View raw message