Description of problem:
The path field is not limited, so a user can enter a path that is greater than the 255 character limit.
This merely causes a IllegalArgumentException that is caught by seam, and displays a "failed to upload" message, but should not be allowed.
Added to that, if the combination of last segment (last index of '/' - end) of the path and the filename length are greater than the standard 255 characters, it should warn that the op is likely to fail.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Sign in as a maintainer, go to project
2. Click Settings, Documents, then the [+] button
3. Enter a very long (255+) string in the path, that contains no "/" characters
4. click browse->select a file to upload, click Open
5. Press the upload button
"Failed to upload"
12:36:57,908 WARN [org.jboss.seam.mock.MockViewHandler] (http-/127.0.0.1:8080-2) You should catch the exception before Seam: java.lang.IllegalArgumentException: no file extension in servlet path: /files/upload
Migrated; check JIRA for bug status: http://zanata.atlassian.net/browse/ZNTA-193