Unable to upload translations on Wildfly 10

Description

  • Upload a source document

  • Select a language in the languages tab

  • Press the dropdown on the target document

  • Select Upload Translation

  • Press the [+ Add] button

  • Select a valid file to upload

"Server error: error in processing" is reported by the dialog
(found when testing https://github.com/zanata/zanata-server/pull/975 but verified in 3.9.0 release branch)

Screenshot of error message in GUI is attached.

Environment

None

Activity

Show:
Damian Jansen
April 28, 2016, 5:52 AM


Some investigation:
The error occurs on line 99 of zanata-war/src/main/java/org/zanata/servlet/DuplicateParamFilter.java

For the key "uploadForm:upload-file" the value.length is 0, thus "java.lang.IndexOutOfBoundsException : Invalid array range: 0 to 0".

Sean Flanigan
May 4, 2016, 7:45 AM

Ready to test, as soon as the build finishes. Thanks for the diagnosis, .

https://github.com/zanata/zanata-server/pull/1153

Ready for Release

Assignee

Sean Flanigan

Reporter

Ani Peter

Labels

None

Tested Version/s

None

Time tracking

0m

Time remaining

0m

Components

Sprint

None

Fix versions

Affects versions

Priority

Highest
Configure