When zanata.xml is not presented we can't load locales from server
Description
Environment
None
duplicates
Activity
Show:
Duplicate
Details
Details
Assignee
Unassigned
UnassignedReporter
Former user
Former user(Deactivated)Tested Version/s
None
Priority

More fields
Time tracking
More fields
Time trackingCreated 21 March 2017 at 01:05
Updated 5 October 2017 at 05:28
Resolved 5 October 2017 at 05:28
If there is no zanata.xml and we pass all information from command line, zanata client failed to load locales from server.
How to reproduce:
Just go to a folder without zanata.xml, then run something like:
zanata-cli -e pull --trans-dir /tmp/trans --username tester --key key --project project --project-version master --project-type podir --url http://localhost:8080/
What you get:
[ERROR] Execution failed: org.zanata.client.exceptions.ConfigException: no locales specified at org.zanata.client.commands.pull.PullCommand.run(PullCommand.java:149)
What's expected:
It should load locales from the server and continue
In addition:
When you do provide --locales from command line, it results in:
java.lang.NullPointerException at org.zanata.client.commands.PushPullCommand.getLocaleMapList(PushPullCommand.java:202) at org.zanata.client.commands.AbstractPushPullOptionsImpl.getLocaleMapList(AbstractPushPullOptionsImpl.java:63)