[
https://jira.codehaus.org/browse/MRM-1647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=305204#comment-305204
]
Vojtech Sigler commented on MRM-1647:
-------------------------------------
You're right, it turned out to be a Glassfish bug:
http://java.net/jira/browse/GLASSFISH-18444
In 3.1.2 there is a bug that affects multipart form submits. Strange that it
did not affect archiva 1.3.5.
After applying the fix it works.
> Cannot upload artifact from Web UI
> ----------------------------------
>
> Key: MRM-1647
> URL: https://jira.codehaus.org/browse/MRM-1647
> Project: Archiva
> Issue Type: Bug
> Components: Web Interface
> Affects Versions: 1.4-M2, 1.4-M3
> Environment: Linux x86_64
> Glassfish 3.1.2
> OpenJDK 1.7
> PostgreSQL 9.1.4
> Reporter: Vojtech Sigler
>
> Whenever I fill out the upload form and submit, it always returns a form error
> "Please add a file to upload.". It doesn't matter if I upload just a jar or
> also the pom file. There is the same result for both.
> All that was in the logs about the
> upload was that the "struts.multipart.saveDir" was missing and that it
> would use the default. I tried setting this and added a line to
> struts.properties, but I'm still getting the "Please add a file to
> upload." message.
> When the "struts.multipart.saveDir" is set, there is nothing in the log
> whatsoever.
> The uploading feature worked fine using 1.3.5 in the same environment.
> I tried downloading and building latest trunk of 1.4-M3, but got the same
> behavior.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira