Red Hat Bugzilla – Bug 990373
Source file Upload dialog will cause an exception if filename is not set
Last modified: 2013-11-26 22:31:24 EST
Description of problem:
A NullPointerException will occur if the user presses Upload without setting a file
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Go to Projects and select (or create) a project
2. Select or create a project version
3. Go to Source Documents
4. Press Upload Document
5. Press Upload button
Unexpected error. Please try again. [ Request: ? ]
Either the button should be greyed out, or a message saying "Please select a file to upload" should show.
Fixed in 3.0.0-alpha-2-SNAPSHOT by disabling the upload button whenever the file selection element does not specify a file.
Verified at 5bf0f1eadda3c43c780c06cdbdb9746bae49215d
Closing VERIFIED bugs which predate Zanata 3.1.2.