User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.63 Safari/537.31
When po file contains entry like:
in header section, push or upload will cause an exception. Not much information is given to the user as the entry printed out in error message is literally an empty string.
Steps to Reproduce:
1. Find and create a po file with "\n" in header
2. Push or upload it to zanata
Failed to execute goal org.zanata:zanata-maven-plugin:2.0.1:push (default-cli) on project null: Zanata mojo exception: Could not parse header entry: -> [Help 1
msgcat does not complain about this invalid header entry. So Zanata probably should just accept it.
Our current accepted header entry is in "key:value\n" format. But I've tried with
msgcat seems accept them all.
Should be an easy fix and reduce dev and user's time for troubleshooting this type of errors.
*** Bug 1201718 has been marked as a duplicate of this bug. ***
client PR: https://github.com/zanata/zanata-client/pull/56
server PR: https://github.com/zanata/zanata-server/pull/747
Verified server (master) at d43744fe01f6d97c15727b33d9944068e04ca624
Verified client (master) at 9fbe0e4395cb2e492f295debc1bee1d55cf0c2f7