zanata-python-client: init failed to generate java-client compatable zanata.xml
Description
Environment
None
Activity
Show:
Ready for Release
Details
Details
Assignee
Sundeep Anand
Sundeep Anand(Deactivated)Reporter
Ding-Yi Chen
Ding-Yi Chen(Deactivated)Components
Fix versions
Affects versions
Priority

More fields
Time tracking
More fields
Time trackingCreated 25 February 2016 at 05:07
Updated 27 June 2018 at 02:21
Resolved 29 February 2016 at 23:21
After `zanata init`, zanata-python-client generated zanata.xml like this:
<?xml version="1.0" ?>
<config>
However, Java and maven client expected the header like:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<config xmlns="http://zanata.org/namespace/config/">
Consequently , it did not work for Java client
Step to reproduce:
0. You need to have both Java and python client installed
1. init with python client, choose an existing project and version
zanata init
2. Try pull with python client
zanata pull
3. Try pull with java client
zanata-cli pull
Actual:
[INFO] Loading project config from zanata.xml
[ERROR] Execution failed:
javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"config"). Expected elements are <{http://zanata.org/namespace/config/}config>,<{http://zanata.org/namespace/config/}locale>,<{http://zanata.org/namespace/config/}rule>
at com.sun.xml.internal.bind.v2.runtim
Expected:
Pull successfully