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

Reply via email to