You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Angela Schreiber (Jira)" <ji...@apache.org> on 2022/06/08 10:12:00 UTC

[jira] [Commented] (SLING-11384) Repoinitparserservice - create path on root level doesn't parse resource type

    [ https://issues.apache.org/jira/browse/SLING-11384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17551527#comment-17551527 ] 

Angela Schreiber commented on SLING-11384:
------------------------------------------

[~bdelacretaz], this issues surfaced during a customer escalation. would you have time to take a look and fix it? (and yes: sling:redirect is not a valid primary type... but that's a different story and should not matter because afaik jcr-repoinit will not validate the primary type information if the node already exists).

> Repoinitparserservice - create path on root level doesn't parse resource type
> -----------------------------------------------------------------------------
>
>                 Key: SLING-11384
>                 URL: https://issues.apache.org/jira/browse/SLING-11384
>             Project: Sling
>          Issue Type: Bug
>          Components: Repoinit
>            Reporter: Niek Raaijmakers
>            Priority: Major
>
> When calling the repoinitparserservice as follows:
> {code:java}
> repoInitParserService.parse(new StringReader("create path /(sling:redirect)\n")).get(0).asRepoInitString()  {code}
> The result is:
> {code:java}
> create path \n {code}
> What we expect is:
> {code:java}
> create path /(sling:redirect)\n {code}
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)