Re: JCR 2.0 System View -> sv:name: expanded or qualified form?

2020-02-13 Thread Julian Reschke
On 13.02.2020 11:46, Konrad Windszus wrote: So what you are saying is basically that the part inside the {} must contain at least one InvalidChar (https://docs.adobe.com/docs/en/spec/jcr/2.0/3_Repository_Model.html#3.2%20Names

Re: JCR 2.0 System View -> sv:name: expanded or qualified form?

2020-02-13 Thread Konrad Windszus
Ok, I figured out the the NamespaceResolver is assumed to return "" for the empty prefix. I.e. after adding @Override public String getURI(String prefix) throws NamespaceException { if (prefix.isEmpty()) { return Name.NS_DEFAULT_URI; } it worked fine.

Re: JCR 2.0 System View -> sv:name: expanded or qualified form?

2020-02-13 Thread Konrad Windszus
So what you are saying is basically that the part inside the {} must contain at least one InvalidChar (https://docs.adobe.com/docs/en/spec/jcr/2.0/3_Repository_Model.html#3.2%20Names ) to make Jackrabbit/Oak detect

Re: JCR 2.0 System View -> sv:name: expanded or qualified form?

2020-02-13 Thread Konrad Windszus
So what you are saying is basically that the part inside the {} must contain at least one InvalidChar (https://docs.adobe.com/docs/en/spec/jcr/2.0/3_Repository_Model.html#3.2%20Names ) to make Jackrabbit/Oak detect

Re: JCR 2.0 System View -> sv:name: expanded or qualified form?

2020-02-11 Thread Julian Reschke
On 11.02.2020 12:17, Konrad Windszus wrote: What should be the expanded name for the qualified name "foo" (without URI prefix) then? One could either say that there is none (and you don't need one), or that it is "foo" (and raise a bug against the spec to say that missing leading "{..." in an

Re: JCR 2.0 System View -> sv:name: expanded or qualified form?

2020-02-11 Thread Julian Reschke
On 11.02.2020 12:17, Konrad Windszus wrote: What should be the expanded name for the qualified name "foo" (without URI prefix) then? One could either say that there is none (and you don't need one), or that it is "foo" (and raise a bug against the spec to say that missing leading "{..." in an

Re: JCR 2.0 System View -> sv:name: expanded or qualified form?

2020-02-11 Thread Konrad Windszus
What should be the expanded name for the qualified name "foo" (without URI prefix) then? What namespace URI should be used then? I am now totally lost to be honest. Konrad > On 11. Feb 2020, at 12:01, Julian Reschke wrote: > > On 11.02.2020 11:52, Konrad Windszus wrote: >> According to >>

Re: JCR 2.0 System View -> sv:name: expanded or qualified form?

2020-02-11 Thread Julian Reschke
On 11.02.2020 11:52, Konrad Windszus wrote: According to https://docs.adobe.com/docs/en/spec/jcr/2.0/3_Repository_Model.html#3.2.1%20Namespaces  an empty URI part is totally valid and should be used for

Re: JCR 2.0 System View -> sv:name: expanded or qualified form?

2020-02-11 Thread Konrad Windszus
According to https://docs.adobe.com/docs/en/spec/jcr/2.0/3_Repository_Model.html#3.2.1%20Namespaces an empty URI part is totally valid and should be used for non-namespaced names! > On 11. Feb 2020, at

Re: JCR 2.0 System View -> sv:name: expanded or qualified form?

2020-02-11 Thread Julian Reschke
On 11.02.2020 11:45, Konrad Windszus wrote: Also according to https://github.com/apache/jackrabbit/blob/b23d6734381e49f236c3705820126803555608b5/jackrabbit-spi/src/main/java/org/apache/jackrabbit/spi/Name.java#L39 the default namespace URI is the empty one! But that constant does not affect

Re: JCR 2.0 System View -> sv:name: expanded or qualified form?

2020-02-11 Thread Konrad Windszus
Also according to https://github.com/apache/jackrabbit/blob/b23d6734381e49f236c3705820126803555608b5/jackrabbit-spi/src/main/java/org/apache/jackrabbit/spi/Name.java#L39 the default namespace URI is the empty one! > On 11. Feb 2020, at 11:43, Konrad Windszus wrote: > > But I am generating

Re: JCR 2.0 System View -> sv:name: expanded or qualified form?

2020-02-11 Thread Konrad Windszus
But I am generating this expanded form via DefaultNamePathResolver.getQName("newnode") This returns a org.apache.jackrabbit.spi.Name, whose toString() returns "{}newnode". Is the Name being returned by getQName then being wrong? > On 11. Feb 2020, at 10:10, Julian Reschke wrote: > > On

Re: JCR 2.0 System View -> sv:name: expanded or qualified form?

2020-02-11 Thread Julian Reschke
On 11.02.2020 10:01, Konrad Windszus wrote: Thanks for the quick response. Indeed there seems to be an issue in Oak: After creating a node with its expanded form with system view format import below the root node I try to call node = rootNode.getNode("{}newnode"); which throws

Re: JCR 2.0 System View -> sv:name: expanded or qualified form?

2020-02-11 Thread Julian Reschke
On 11.02.2020 10:01, Konrad Windszus wrote: Thanks for the quick response. Indeed there seems to be an issue in Oak: After creating a node with its expanded form with system view format import below the root node I try to call node = rootNode.getNode("{}newnode"); which throws

Re: JCR 2.0 System View -> sv:name: expanded or qualified form?

2020-02-10 Thread Julian Reschke
On 10.02.2020 16:01, Konrad Windszus wrote: Hi, in the context of https://issues.apache.org/jira/browse/JCRVLT-407 I am currently looking into details how node names can be given in the System View format (https://docs.adobe.com/docs/en/spec/jcr/2.0/7_Export.html#7.2%20System%20View)