[
http://jira.codehaus.org/browse/WAGON-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=235892#action_235892
]
Jordi Deu-Pons commented on WAGON-121:
--------------------------------------
Hi,
I have this problem with the current wagon-webdav version.
It sends only one MKCOL for the first ancestor. Like:
MKCOL /repository/org/intogen/intogen-data/0.1-SNAPSHOT
If the folder /repository/org/intogen/intogen-data don't exist then the maven
deploy is going to fail. If I create the folder then the maven deploy works
fine.
I checked the current WebDAV specifications:
http://www.webdav.org/specs/rfc4918.html#METHOD_MKCOL
It saids:
"During MKCOL processing, a server MUST make the Request-URI an internal member
of its parent collection, unless the Request-URI is "/". If no such ancestor
exists, the method MUST fail"
So I understand that is the wagon-webdav who has to create all the ancestors
if they don't exist.
I'm using OpenKM (that uses jackrabbit) as a WebDAV server. May be other
servers had different behaviours in this case.
Thanks.
> wagon-http does not MKCOL for missing parent resources during deploy
> --------------------------------------------------------------------
>
> Key: WAGON-121
> URL: http://jira.codehaus.org/browse/WAGON-121
> Project: Maven Wagon
> Issue Type: Bug
> Components: wagon-http
> Environment: Linux/x86_64, FC4, jdk 1.5.0_06-b05, mvn 2.0.2, against
> Apache/2.0.54 (Fedora) DAV/2
> Reporter: Matthew Daniel
> Assignee: Joakim Erdfelt
> Priority: Blocker
>
> Please see MNG-1580 and
> When trying to deploy using wagon-http, it does not understand the concept of
> parent directories and just issues a blind PUT with the resource URI. Further
> to the user's confusion, it does not report a helpful message but "Access
> denided" which is 100% not true.
> {quote}
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying
> artifact at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:556)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying
> artifact
> at
> org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:160)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
> ... 16 more
> Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException:
> Error deploying artifact: Authorization failed: Access denided to:
> http://servername/path/to/a/non-existant/1.5-SNAPSHOT/artifactid-1.5-20060209.202937-1.jar
> at
> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:91)
> at
> org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:148)
> ... 18 more
> Caused by: org.apache.maven.wagon.TransferFailedException: Authorization
> failed: Access denided to:
> http://servername/path/to/a/non-existant/1.5-SNAPSHOT/artifactid-1.5-20060209.202937-1.jar
> at
> org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:215)
> at
> org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:109)
> at
> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:77)
> ... 19 more
> Caused by: org.apache.maven.wagon.authorization.AuthorizationException:
> Access denided to:
> http://servername/path/to/a/non-existant/1.5-SNAPSHOT/artifactid-1.5-20060209.202937-1.jar
> at
> org.apache.maven.wagon.providers.http.HttpWagon.put(HttpWagon.java:202)
> at
> org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:180)
> ... 21 more
> {quote}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira