When project maintainer change the validation level to warning or error, it is expected that: 1. On level warning: warning messages should be shown whenever invalid translation is detected. 2. On level error: error messages should be shown whenever invalid translation is detected, and the invalid should not be saved to file. Test Basis: https://github.com/zanata/zanata-server/wiki/Translation-Validation Data preparation: 1. Set the validation level to Off on "printf" 2. Set the validation level to warning on "tab" 3. In translation editor, edit a translated document. a. 1st translation is valid b. 2nd translation trigger the error (such as excess %d) c. 3rd translation trigger the warning (such as excess tab \t) d. 4th translation and rest are empty 4. Set the validation level to Error on "printf" Steps to reproduce: I. Download using GWT Document list 1. Go to Projects->[ProjectName]->[VersionName]->[LocaleName] GWT Document list should be shown. 2. Download by clicking .po Expected: After download, message 2 should produced an error message. After download, message 3 should produced an warning message. In .po file, message 1 and 3 should be saved. In .po file, message 2 should NOT be saved. The other messages are empty. Actual: ! After download, message 2 DID NOT produce an error message. ! After download, message 3 DID NOT produce an warning message. In .po file, message 1 and 3 were saved. ! In .po file, message 2 was MISTAKENLY saved. The other messages were empty. (!) stands for where actual does not meet expectation. II. Download using JSF Document list 1. Go to Projects->[ProjectName]->[VersionName]->Documents Icon in [LocaleName] A JSF Document list should be shown. 2. Download by clicking .po Expected: After download, message 2 should produced an error message. After download, message 3 should produced an warning message. In .po file, message 1 and 3 should be saved. In .po file, message 2 should NOT be saved. The other messages are empty. Actual: ! After download, message 2 DID NOT produce an error message. ! After download, message 3 DID NOT produce an warning message. In .po file, message 1 and 3 were saved. ! In .po file, message 2 was MISTAKENLY saved. The other messages were empty. III. Client pull 1. mvn zanata:pull -Dzanata.locales=<locale> Expected: After download, message 2 should produced an error message. After download, message 3 should produced an warning message. In .po file, message 1 and 3 should be saved. In .po file, message 2 should NOT be saved. The other messages are empty. Actual: ! After download, message 2 DID NOT produce an error message. ! After download, message 3 DID NOT produce an warning message. In .po file, message 1 and 3 were saved. ! In .po file, message 2 was MISTAKENLY saved. The other messages were empty.
Reassigned to PM
Migrated; check JIRA for bug status: http://zanata.atlassian.net/browse/ZNTA-212