Description of problem: A NullPointerException will occur if the user presses Upload without setting a file Version-Release number of selected component (if applicable): Dev How reproducible: Easy always 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 Actual results: Unexpected error. Please try again. [ Request: ? ] Expected results: Either the button should be greyed out, or a message saying "Please select a file to upload" should show. Additional info:
Fixed in 3.0.0-alpha-2-SNAPSHOT by disabling the upload button whenever the file selection element does not specify a file. See: https://github.com/zanata/zanata-server/commit/9620e5e7f9d92fe90152f99e26eafc3a62fe0f88
Verified at 5bf0f1eadda3c43c780c06cdbdb9746bae49215d
Closing VERIFIED bugs which predate Zanata 3.1.2.