[
https://issues.apache.org/jira/browse/SLING-5219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14982798#comment-14982798
]
Robert Munteanu commented on SLING-5219:
----------------------------------------
As far as I can tell this happens due to the following block of code in
CombinedResourceProvider.java:170 ( as of rev 1711502 )
{code:java}
// query: /libs/sling/servlet/default
// resource Provider: libs/sling/servlet/default/GET.servlet
// list will match libs, sling, servlet, default
// and there will be no resource provider at the end
// SLING-3482 : this is only done for getResource but not resolve
// as it is important e.g. for servlet resolution
// to get the parent resource for resource traversal.
if (!isResolve && isIntermediatePath(path)) {
logger.debug("Resolved Synthetic {}", path);
return new SyntheticResource(resolver, path,
ResourceProvider.RESOURCE_TYPE_SYNTHETIC);
}
{code}
> Mounting a ResourceProvider makes it impossible to create child resources
> under it
> ----------------------------------------------------------------------------------
>
> Key: SLING-5219
> URL: https://issues.apache.org/jira/browse/SLING-5219
> Project: Sling
> Issue Type: Bug
> Components: Servlets
> Affects Versions: Servlets Post 2.3.6
> Reporter: Robert Munteanu
>
> (I am not sure where the problem is exactly, but setting it under Servlets
> POST for now ).
> Consider the following scenario:
> * JCR provider mounted at {{/}}
> * FS provider mounted at {{/content/blog/images}}
> * No resources in the JCR repo for {{/content}} or {{/content/blog}}
> A POST call to create {{/content}} or {{/content/blog}} ( I have used
> [httpie|https://github.com/jkbrzt/httpie] ) fails {noformat}http
> --auth=admin:admin -f POST http://localhost:8080 /content
> 'sling\:target=/content/blog/posts'{noformat}
> If I remove the FS provider then the call succeeds.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)