[ 
http://jira.codehaus.org/browse/MRM-1280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=203645#action_203645
 ] 

Brett Porter commented on MRM-1280:
-----------------------------------

not fixed - this is a result of some badly duplicated code in 
UploadArtifactAction.

1) the getMetadata method retrieves the wrong level of metadata, so no snapshot 
info is present - therefore always deploying builder number 1 regardless of 
what was there before
2) the updateMetadata method isn't called due to the existence of the consumer, 
but that doesn't seem to handle the case of snapshots being added. The metadata 
should be updated and the asynchronous processes done afterwards to avoid 
clashes like there were before
3) the consumers are called with the 1.0-SNAPSHOT version instead of the new 
timestamped snapshot version, causing the incorrect information in the database

It would be better if this action could delegate to the normal PUT request in 
the webdav module as much as possible.

> SNAPSHOT artifacts are not processed with timestamped versions when added via 
> web upload form while their poms are processed with timestamped versions 
> resulting to being treated as separate versions in browse
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MRM-1280
>                 URL: http://jira.codehaus.org/browse/MRM-1280
>             Project: Archiva
>          Issue Type: Bug
>          Components: browser, web application
>            Reporter: Maria Odea Ching
>             Fix For: 1.3
>
>


-- 
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

        

Reply via email to