You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (Jira)" <ji...@apache.org> on 2021/05/04 17:39:00 UTC
[jira] [Comment Edited] (SLING-10349) Repoinit: Nodetype
definitions not working
[ https://issues.apache.org/jira/browse/SLING-10349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17339177#comment-17339177 ]
Bertrand Delacretaz edited comment on SLING-10349 at 5/4/21, 5:38 PM:
----------------------------------------------------------------------
I have added a test for this supposedly failing test [in a temporary branch|https://github.com/apache/sling-org-apache-sling-jcr-repoinit/commit/a3ac18b8cd8efbbfb73947cfb0a04c7b81c6cc01], and the test passes.
Do you have steps to reproduce the failure that you're seeing?
Maybe something is processing your script before passing it to repoinit and there's a bug in that processing?
Any information on the versions of the repoinit parser and jcr-repoinit module versions?
was (Author: bdelacretaz):
I have added a test for this supposedly failing test [in a temporary branch|https://github.com/apache/sling-org-apache-sling-jcr-repoinit/commit/a3ac18b8cd8efbbfb73947cfb0a04c7b81c6cc01], and the test passes.
Do you have steps to reproduce the failure that you're seeing?
Maybe something is processing your script before passing it to repoinit and there's a bug in that processing?
> Repoinit: Nodetype definitions not working
> -------------------------------------------
>
> Key: SLING-10349
> URL: https://issues.apache.org/jira/browse/SLING-10349
> Project: Sling
> Issue Type: Bug
> Components: Repoinit
> Reporter: Achim Koch
> Assignee: Bertrand Delacretaz
> Priority: Minor
>
> Tried to register nodetypes and namespaces like so:
> register namespace ( yyy ) http://yyy.com/jcr/nt/1.0
> register nodetypes
> <<===
> << <yyy='http://yyy.com/jcr/nt/1.0'>
> << [yyy:Foobar] > nt:unstructured
> ===>>
> The whole repoinit script was ignored, then. (I created a "marker" with createuser that also was not executed).
> I saw no apparent error in the logfile.
> The namespace did register, when I removed the whole "register nodetypes" block.
> Btw. the documentation could be more explicit that (if) "<< <yyy='http://yyy.com/jcr/nt/1.0'>" already creates a namespace (or if that is required to reference an existing one in the scope of the CND block)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)