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

Robert Munteanu commented on SLING-7916:
----------------------------------------

Had a brief online chat with [~kwin] and we found out that requests are (for 
some reason) not passed through to the DAV entry point. So this is not a bug in 
the plug-in. The simplest fix is to append {{/dav/default}} to the plugin 
configuration, so we will document this and update the archetype.

> WebDav deployment method fails to deploy when /libs is not readable
> -------------------------------------------------------------------
>
>                 Key: SLING-7916
>                 URL: https://issues.apache.org/jira/browse/SLING-7916
>             Project: Sling
>          Issue Type: Bug
>          Components: Maven Plugins and Archetypes
>            Reporter: Robert Munteanu
>            Assignee: Robert Munteanu
>            Priority: Major
>             Fix For: Maven Sling Plugin 2.3.10
>
>
> I created a Sling module using the {{sling-jcrinstall-bundle-archetype}}. 
> Deployment using the {{maven-sling-plugin}} fails, with the following message:
> {noformat}Installation on http://localhost:8080/libs/sling/install failed, 
> cause: Could not find any intermediate path up until the root of 
> http://localhost:8080/libs/sling/install.{noformat}
> At least {{/libs}} is there, so that message is incorrect. Verifying the 
> Sling request log I see that redirects sent from Sling are followed using the 
> {{anonymous}} user:
> {noformat}127.0.0.1 - admin 12/Sep/2018:15:14:48 +0200 "PUT 
> /libs/sling/install/bundle-test-002-1.0-SNAPSHOT.jar HTTP/1.1" 409 2455 "-" 
> "Jakarta Commons-HttpClient/3.1"
> 127.0.0.1 - admin 12/Sep/2018:15:14:48 +0200 "HEAD /libs/sling/install 
> HTTP/1.1" 404 2524 "-" "Jakarta Commons-HttpClient/3.1"
> 127.0.0.1 - admin 12/Sep/2018:15:14:48 +0200 "HEAD /libs/sling HTTP/1.1" 302 
> - "-" "Jakarta Commons-HttpClient/3.1"
> 127.0.0.1 - anonymous 12/Sep/2018:15:14:48 +0200 "HEAD /libs/sling/ HTTP/1.1" 
> 404 2461 "-" "Jakarta Commons-HttpClient/3.1"
> 127.0.0.1 - admin 12/Sep/2018:15:14:48 +0200 "HEAD /libs HTTP/1.1" 302 - "-" 
> "Jakarta Commons-HttpClient/3.1"
> 127.0.0.1 - anonymous 12/Sep/2018:15:14:48 +0200 "HEAD /libs/ HTTP/1.1" 404 
> 2407 "-" "Jakarta Commons-HttpClient/3.1"
> {noformat}
> This is wrong, and we should always be accessing the repository using the 
> configured user and password.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to