Bug 876063 - zanata-python-client should be able to push pot files in sub directories
Summary: zanata-python-client should be able to push pot files in sub directories
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: zanata-python-client
Version: 17
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: ---
Assignee: Ding-Yi Chen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-13 08:01 UTC by Ding-Yi Chen
Modified: 2012-12-03 20:37 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-27 04:54:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ding-Yi Chen 2012-11-13 08:01:27 UTC
Description of problem:
zanata-python-client should be able to push po files in sub directories.

In other words, it failed to push when the file name contains '/'.

Version-Release number of selected component (if applicable):
zanata-python-client-1.3.10
Server: Zanata version 2.0.3-SNAPSHOT (20121113-0009)

How reproducible:
Always

Steps to Reproduce:
1. Using a project that has subdirectories in pot directory.
2. zanata push --srcdir ./pot 

Actual results:

zanata python client version: 1.3.10, zanata server API version: 2.0.0
...
This will overwrite/delete any existing documents on the server.
Are you sure (y/n)?y
Send local translation: False
...
Pushing the content of ./pot/topics/Introduction1.pot to server:
error: Error 400 - not a legal resource name: topics/Introduction1
Please take a reference in https://github.com/zanata/zanata/wiki/Python-Client-Troubleshooting

Expected results:
Push successfully/

Additional info:

Comment 1 Sean Flanigan 2012-11-13 08:05:45 UTC
This is due to a bug in Zanata 2.0's resource name validation in a REST API point which is used only by Python.

The Zanata Maven client does not not use the affected API point, so that is one option for a workaround.  I have also implemented a workaround for the Python client here: https://github.com/zanata/zanata-python-client/commit/ac64442f4504e0bdc8bf099062c3f2914de70998

Comment 2 Fedora Update System 2012-11-16 00:14:48 UTC
zanata-python-client-1.3.12-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.12-1.el6

Comment 3 Fedora Update System 2012-11-16 00:15:00 UTC
zanata-python-client-1.3.12-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.12-1.fc16

Comment 4 Fedora Update System 2012-11-16 00:15:10 UTC
zanata-python-client-1.3.12-1.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.12-1.el5

Comment 5 Fedora Update System 2012-11-16 00:15:21 UTC
zanata-python-client-1.3.12-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.12-1.fc17

Comment 6 Fedora Update System 2012-11-16 00:15:34 UTC
zanata-python-client-1.3.12-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.12-1.fc18

Comment 7 Fedora Update System 2012-11-17 01:04:52 UTC
Package zanata-python-client-1.3.12-1.el5:
* should fix your issue,
* was pushed to the Fedora EPEL 5 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing zanata-python-client-1.3.12-1.el5'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-13483/zanata-python-client-1.3.12-1.el5
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2012-11-27 04:54:47 UTC
zanata-python-client-1.3.12-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2012-11-28 11:32:46 UTC
zanata-python-client-1.3.12-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2012-11-28 11:50:51 UTC
zanata-python-client-1.3.12-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2012-12-03 20:35:22 UTC
zanata-python-client-1.3.12-1.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2012-12-03 20:37:15 UTC
zanata-python-client-1.3.12-1.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.