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

Konrad Windszus edited comment on SLING-5557 at 2/24/16 10:47 AM:
------------------------------------------------------------------

The reason for that is that the GET request towards 
{{http://localhost:4502/crx/repository}} returns a 302 with a location header 
pointing to the default workspace 
({{http://localhost:4502/crx/repository/crx.default}}). The according code is 
in 
https://github.com/apache/sling/blob/trunk/bundles/jcr/webdav/src/main/java/org/apache/sling/jcr/webdav/impl/servlets/SlingSimpleWebDavServlet.java#L100.


was (Author: kwin):
The reason for that is that the GET request towards 
{{http://localhost:4502/crx/repository}} returns a 302 with a location header 
pointing to the default workspace 
({{http://localhost:4502/crx/repository/crx.default}}).

> Intermediate folder cannot deal with redirects
> ----------------------------------------------
>
>                 Key: SLING-5557
>                 URL: https://issues.apache.org/jira/browse/SLING-5557
>             Project: Sling
>          Issue Type: Bug
>          Components: Maven Plugins and Archetypes
>    Affects Versions: Maven Sling Plugin 2.1.6
>            Reporter: Konrad Windszus
>
> The fix from SLING-3540 does not seem to work with bundle 
> {{org.apache.sling.jcr.webdav}} in version {{2.3.0}}. I receive the error
> {code}
> Installation on 
> http://localhost:4502/crx/repository/crx.default/apps/<any-folder>/install 
> failed, cause: Failed creating intermediate path at 
> http://localhost:4502/crx/repository. Reason: Moved Temporarily
> {code}
> The plugin is configured like this 
> {code}
> <plugin>
>                     <groupId>org.apache.sling</groupId>
>                     <artifactId>maven-sling-plugin</artifactId>
>                     <version>2.1.6</version>
>                     <configuration>
>                         
> <slingUrl>${cq.server}/crx/repository/${some.workspace}${package.root}/install</slingUrl>
>                         <usePut>true</usePut>
>                         <user><some user></user>
>                         <password><some password></password>
>                         <failOnError>true</failOnError>
>                     </configuration>
> </plugin>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to