You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2016/02/24 11:54:18 UTC
[jira] [Commented] (SLING-5557) Intermediate folder creation cannot
deal with redirects
[ https://issues.apache.org/jira/browse/SLING-5557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15162806#comment-15162806 ]
Konrad Windszus commented on SLING-5557:
----------------------------------------
IMHO the logic in https://github.com/apache/sling/blob/trunk/tooling/maven/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundleInstallMojo.java#L336 should be improved:
# From the current path issue GET requests towards the parents recursively (each time a level above) until you receive a 2xx status.
# From there create all intermediate paths towards the current path
That way it does not matter below which path the webdav servlet is registered.
> Intermediate folder creation 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)