zanata-cli: Failed to pull without zanata.xml
Description
Environment
None
Activity
Show:
Former user 5 October 2017 at 00:31
Still happening in 4.2.1
Former user 17 January 2017 at 22:40
@Ding-Yi Chen Is this still an issue in zanata-cli 4.0?
Ready for Release
Details
Details
Assignee
Former user
Former user(Deactivated)Reporter
Ding-Yi Chen
Ding-Yi Chen(Deactivated)Tested Version/s
None
Sprint
None
Affects versions
Priority

More fields
Time tracking
More fields
Time trackingCreated 16 August 2016 at 05:57
Updated 27 June 2018 at 02:24
Resolved 11 October 2017 at 04:23
Without zanata-cli, it failed to pull
Steps to repoduce:
1. cd /tmp
2. Run `zanata-cli -e pull --url https://fedora.zanata.org/ --project ibus-chewing --project-version master --project-type gettext --disable-ssl-cert --locales zh-TW --pull-type both`
Expected:
Both source and zh-TW thanslation should be pulled
Actual:
[ERROR] Execution failed:
java.lang.NullPointerException
at org.zanata.client.commands.PushPullCommand.getLocaleMapList(PushPullCommand.java:200)
at org.zanata.client.commands.AbstractPushPullOptionsImpl.getLocaleMapList(AbstractPushPullOptionsImpl.java:63)
at org.zanata.client.commands.pull.PullCommand.logOptions(PullCommand.java:118)
at org.zanata.client.commands.pull.PullCommand.logOptions(PullCommand.java:84)
at org.zanata.client.commands.pull.PullCommand.run(PullCommand.java:144)
at org.zanata.client.commands.ConfigurableCommand.runWithActions(ConfigurableCommand.java:110)
at org.zanata.client.commands.ArgsUtil.runCommand(ArgsUtil.java:48)
at org.zanata.client.ZanataClient.processArgs(ZanataClient.java:170)
at org.zanata.client.ZanataClient.main(ZanataClient.java:95)
If the `--locales zh-TW` was not given, it returns following error:
[ERROR] Execution failed:
java.lang.NullPointerException
at org.zanata.client.commands.PushPullCommand.getLocaleMapList(PushPullCommand.java:200)
at org.zanata.client.commands.AbstractPushPullOptionsImpl.getLocaleMapList(AbstractPushPullOptionsImpl.java:63)
at org.zanata.client.commands.pull.PullCommand.logOptions(PullCommand.java:118)
at org.zanata.client.commands.pull.PullCommand.logOptions(PullCommand.java:84)
at org.zanata.client.commands.pull.PullCommand.run(PullCommand.java:144)
at org.zanata.client.commands.ConfigurableCommand.runWithActions(ConfigurableCommand.java:110)
at org.zanata.client.commands.ArgsUtil.runCommand(ArgsUtil.java:48)
at org.zanata.client.ZanataClient.processArgs(ZanataClient.java:170)
at org.zanata.client.ZanataClient.main(ZanataClient.java:95)