maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hüseyin Kartal (JIRA) <j...@apache.org>
Subject [jira] [Comment Edited] (WAGON-524) Deploy fails with AuthorizationException "Forbidden"
Date Wed, 29 Aug 2018 22:47:00 GMT

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

Hüseyin Kartal edited comment on WAGON-524 at 8/29/18 10:46 PM:
----------------------------------------------------------------

Just use the already provided project in the WEBDAV.ZIP. Set the url of the server as WEBDAV_URL
environment variable .

*{{set WEBDAV_URL=[https://www.webdavserver.com/User9b6a759]}}*

But check the current user of the server in forehand because it changes.

 

To Test the positive case create the folders org/wagon/webdav/0.0.1-SNAPSHOT under the user
folder.

*{{https://www.webdavserver.com/User9b6a759/org/wagon/webdav/0.0.1-SNAPSHOT/}}*


was (Author: hsyn):
Just use the already provided project in the WEBDAV.ZIP. Set the url of the server as WEBDAV_URL
environment variable .

*{{set WEBDAV_URL=[https://www.webdavserver.com/User9b6a759]}}*

But check the current user of the server in forehand because it changes.

> Deploy fails with AuthorizationException "Forbidden"
> ----------------------------------------------------
>
>                 Key: WAGON-524
>                 URL: https://issues.apache.org/jira/browse/WAGON-524
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-webdav
>    Affects Versions: 3.1.0
>            Reporter: Hüseyin Kartal
>            Priority: Major
>             Fix For: waiting-for-feedback
>
>         Attachments: deployX.txt, deployX2.txt, litmus.log, webdav.zip
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> I try to deploy my artifacts to an WebDAV server. Via HTTPS.
> If the directory structure is missing (empty) the deployment of the artifacts fails.
> {{c:\DEV\webdav>mvn deploy}}
>  {{[INFO] Scanning for projects...}}
>  {{[INFO]}}
>  {{[INFO] --------------------------< org.wagon:webdav >--------------------------}}
>  {{[INFO] Building webdav 0.0.1-SNAPSHOT}}
>  {{[INFO] --------------------------------[ pom ]---------------------------------}}
>  {{[INFO]}}
>  {{[INFO] — maven-install-plugin:2.4:install (default-install) @ webdav ---}}
>  {{[INFO] Installing c:\DEV\webdav\pom.xml to C:\Users\x\.m2\repository\org\wagon\webdav\0.0.1-SNAPSHOT\webdav-0.0.1-SNAPSHOT.pom}}
>  {{[INFO]}}
>  {{[INFO] — maven-deploy-plugin:2.8.2:deploy (default-deploy) @ webdav ---}}
>  {{[INFO] Downloading from private-repo: [https://webdav.magentacloud.de/org/wagon/webdav/0.0.1-SNAPSHOT/maven-metadata.xml]}}
>  {{[INFO] Uploading to private-repo: [https://webdav.magentacloud.de/org/wagon/webdav/0.0.1-SNAPSHOT/webdav-0.0.1-20180809.152257-1.pom]}}
>  {{[INFO] ------------------------------------------------------------------------}}
>  {{[INFO] BUILD FAILURE}}
>  {{[INFO] ------------------------------------------------------------------------}}
>  {{[INFO] Total time: 2.497 s}}
>  {{[INFO] Finished at: 2018-08-09T17:22:58+02:00}}
>  {{[INFO] ------------------------------------------------------------------------}}
>  {{[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy
(default-deploy) on project webdav: Failed to deploy artifacts: Could not transfer artifact
org.wagon}}
>  {{:(webdav:pom:0.0.1-20180809.152257-1 from/to private-repo ([https://webdav.magentacloud.de):|https://webdav.magentacloud.de%29/]
Access denied to: [https://webdav.magentacloud.de/org/wagon/webdav/0.0.1-SNAPSHOT/webdav-0.0.1-20180]}}
>  {{809.152257-1.pom, ReasonPhrase: Forbidden. -> [Help 1]}}
>  {{[ERROR]}}
>  {{[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.}}
>  {{[ERROR] Re-run Maven using the -X switch to enable full debug logging.}}
>  {{[ERROR]}}
>  {{[ERROR] For more information about the errors and possible solutions, please read
the following articles:}}
>  {{[ERROR] [Help 1] [http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException]}}{{c:\DEV\repo\git\webdav>}}
>  
> But if you create the expected directories manualy the deployment succeeds.
> {{c:\DEV\webdav>mvn deploy}}
>  {{[INFO] Scanning for projects...}}
>  {{[INFO]}}
>  {{[INFO] --------------------------< org.wagon:webdav >--------------------------}}
>  {{[INFO] Building webdav 0.0.1-SNAPSHOT}}
>  {{[INFO] --------------------------------[ pom ]---------------------------------}}
>  {{[INFO]}}
>  {{[INFO] — maven-install-plugin:2.4:install (default-install) @ webdav ---}}
>  {{[INFO] Installing c:\DEV\webdav\pom.xml to C:\Users\x\.m2\repository\org\wagon\webdav\0.0.1-SNAPSHOT\webdav-0.0.1-SNAPSHOT.pom}}
>  {{[INFO]}}
>  {{[INFO] — maven-deploy-plugin:2.8.2:deploy (default-deploy) @ webdav ---}}
>  {{[INFO] Downloading from private-repo: [https://webdav.magentacloud.de/org/wagon/webdav/0.0.1-SNAPSHOT/maven-metadata.xml]}}
>  {{[INFO] Downloaded from private-repo: [https://webdav.magentacloud.de/org/wagon/webdav/0.0.1-SNAPSHOT/maven-metadata.xml]
(592 B at 407 B/s)}}
>  {{[INFO] Uploading to private-repo: [https://webdav.magentacloud.de/org/wagon/webdav/0.0.1-SNAPSHOT/webdav-0.0.1-20180809.152158-3.pom]}}
>  {{[INFO] Uploaded to private-repo: [https://webdav.magentacloud.de/org/wagon/webdav/0.0.1-SNAPSHOT/webdav-0.0.1-20180809.152158-3.pom]
(1.4 kB at 2.9 kB/s)}}
>  {{[INFO] Downloading from private-repo: [https://webdav.magentacloud.de/org/wagon/webdav/maven-metadata.xml]}}
>  {{[INFO] Downloaded from private-repo: [https://webdav.magentacloud.de/org/wagon/webdav/maven-metadata.xml]
(275 B at 1.9 kB/s)}}
>  {{[INFO] Uploading to private-repo: [https://webdav.magentacloud.de/org/wagon/webdav/0.0.1-SNAPSHOT/maven-metadata.xml]}}
>  {{[INFO] Uploaded to private-repo: [https://webdav.magentacloud.de/org/wagon/webdav/0.0.1-SNAPSHOT/maven-metadata.xml]
(592 B at 1.3 kB/s)}}
>  {{[INFO] Uploading to private-repo: [https://webdav.magentacloud.de/org/wagon/webdav/maven-metadata.xml]}}
>  {{[INFO] Uploaded to private-repo: [https://webdav.magentacloud.de/org/wagon/webdav/maven-metadata.xml]
(275 B at 481 B/s)}}
>  {{[INFO] ------------------------------------------------------------------------}}
>  {{[INFO] BUILD SUCCESS}}
>  {{[INFO] ------------------------------------------------------------------------}}
>  {{[INFO] Total time: 4.539 s}}
>  {{[INFO] Finished at: 2018-08-09T17:22:00+02:00}}
>  {{[INFO] ------------------------------------------------------------------------}}
> I submitted a core test project to reproduce the issue. Just set three environment variables
and call "mvn deploy".
>  
> WEBDAV_URL=[https://webdav.magentacloud.de|https://webdav.magentacloud.de/]
> WEBDAV_USERNAME
> WEBDAV_PASSWORD



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

Mime
View raw message