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/14 10:06:00 UTC
[jira] [Commented] (SLING-11384) Repoinitparserservice - create path on root level doesn't parse node type
[ https://issues.apache.org/jira/browse/SLING-11384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17554023#comment-17554023 ]
Angela Schreiber commented on SLING-11384:
------------------------------------------
hi [~cziegeler], [~Sc0rpic0m], [~rombert], would it be possible to adjust the test case a bit as it is quite confusing.
- repoinit "create path xyz" _does not_ allow you to set the sling:resourceType property as was implied by the original summary
- sling:resourceType property would need to be modified through 'set properties'
- afaik _sling:redirect_ is not a valid primary type but rather a resource type and an attempt to use it in create path will fail with NoSuchNodeTypeException
- since repoinit tests are used to generate the documentation i would prefer if there no misleading examples in there.
wdyt?
> Repoinitparserservice - create path on root level doesn't parse node type
> -------------------------------------------------------------------------
>
> Key: SLING-11384
> URL: https://issues.apache.org/jira/browse/SLING-11384
> Project: Sling
> Issue Type: Bug
> Components: Repoinit
> Reporter: Niek Raaijmakers
> Assignee: Carsten Ziegeler
> Priority: Major
> Fix For: Repoinit Parser 1.6.16
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> 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)