[
https://issues.apache.org/jira/browse/MRM-2004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16975318#comment-16975318
]
Martin Stockhammer commented on MRM-2004:
-----------------------------------------
Workaround:
Finally got the request to work. For others reading this, it's important to
not copy an artifact that already exist in the repository you are trying to
copy the artifact to. The response code is not giving any clues that this
is the actual problem. Would be good if there was a better response code
for this.
> Rest call for copyArtifact throws NullpointerException if destination exists
> ----------------------------------------------------------------------------
>
> Key: MRM-2004
> URL: https://issues.apache.org/jira/browse/MRM-2004
> Project: Archiva
> Issue Type: Bug
> Components: rest services
> Affects Versions: 2.2.4
> Reporter: Martin Stockhammer
> Assignee: Martin Stockhammer
> Priority: Major
> Fix For: 3.0.0
>
>
> The rest service copyArtifact throws NullpointerException, if the destination
> artifact exists already.
> Should either overwrite, or return a proper error response.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)