When zanata.xml is not presented we can't load locales from server

Description

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)

Environment

None

Activity

Show:
Duplicate

Details

Assignee

Reporter

Tested Version/s

Priority

More fields

Created 21 March 2017 at 01:05
Updated 5 October 2017 at 05:28
Resolved 5 October 2017 at 05:28

Flag notifications