On Tue, May 28, 2013 at 7:02 PM, Olivier Lamy <ol...@apache.org> wrote:

> Hi,
> Deploying mean only using PUT to the correct uri.
> No need of rest api :-).
>

That's not what I can observe:

Archiva (1.4) *Upload Artifact* page does multiple REST calls as defined in
http://localhost:8080/#rest-docs-archiva-ui/resource_FileUploadService.html(see
attached wireshark screen shot).
[image: Inline image 2]

It is my understanding that it uses a
*POST* call to */restServices/archivaUiServices/fileUploadService* call for
each uploaded file
and a
*GET* call to */restServices/archivaUiServices/fileUploadService/save*
/internal/test/bbb/0.1-SNAPSHOT/jar
to actually store the uploaded artifacts with the metadata presented in the
*save* call

As I wrote earlier the call to *save *does not return any valuable data.
Not even a failure indication if one tries to save a SNAPSHOT artifact to a
repository that has not been configured for snapshots. Actually if one uses
the upload page of a freshly unzipped Archiva 1.4 one can upload an
artifact with a SNAPSHOT version to the internal repository (as seen in the
screen shot) and after doing that when one browses the repository get's an
error message (on the top of the page) that reads  *managed repo is
configured for release only* After that the repository is unusable as I
have found no way to get rid of the erroneously stored snapshot artifact.

IMHO Archiva should prevent this save action and return an error indication
why it could not save it.

Thanks
-- 

Lothar Werzinger

Principal Architect

Tradescape, Inc. - Enabling Efficient Digital Marketplaces

+1-650-931-6719 (direct)

+1-800-697-6068 (main) Ext. 116

lot...@tradescape.biz

http://www.tradescape.biz

-- 


This message and any attachment (the "message") is intended solely for the 
addressees and is confidential. If you receive this message by mistake, 
please delete it and notify the sender immediately. Any use not 
in accordance with its purpose, any out-spread or disclosure, either as a 
whole or partially, is prohibited except with formal approval. Internet 
cannot guarantee the integrity of this message, therefore Tradescape will 
not be liable for the message if modified.

-

<<screenshot-01.png>>

Reply via email to