Bug 690687
Summary: | Python client should log a message for 301 redirects | ||
---|---|---|---|
Product: | [Retired] Zanata | Reporter: | Sean Flanigan <sflaniga> |
Component: | Component-PythonClient | Assignee: | Ding-Yi Chen <dchen> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ding-Yi Chen <dchen> |
Severity: | unspecified | Docs Contact: | |
Priority: | low | ||
Version: | unspecified | CC: | jni, zanata-bugs |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | v1.3.1-27-gec9cadf | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-04-23 04:32:47 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Sean Flanigan
2011-03-25 03:39:45 UTC
I have add a warning for 301 and 302 redirecting, the changes are in commit 72b717e41c9fce54be3a of devel branch of zanata python client on github. I modify the warning and add the information of the new URL of redirecting, also I add a check for response.previous, if it is none, we don't need to log a warning. The changes are in commit 7be3cde2cf756703fc49 of devel branch of zanata python client on github. Version create works, but push produced "error: Unexpected Status, failed to push" Test case: ibus-chewing to fedora.zanata.org (which should be redirected to translate.zanata.org) Step: 1. git-clone git://github.com/definite/ibus-chewing.git 2. cd ibus-chewing/po 3. xgettext --language=C --keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2 -s --package-name=ibus-chewing --package-version=master -o ibus-chewing.pot ../src/*.c ../src/*.gob 4. edit zanata.xml as: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <config xmlns="http://zanata.org/namespace/config/"> <url>https://fedora.zanata.org/zanata/</url> <project>ibus-chewing</project> <project-version>1.3.10</project-version> <locales> <locale map-from="zh_TW">zh-Hant-TW</locale> <locale map-from="zh_CN">zh-Hans-CN</locale> </locales> </config> 5. zanata push --project-type=gettext --username=<user> --apikey=<key> --url=https://fedora.zanata.org/zanata/ Expected: Pushing with redirection warning. Actual: Pushing the content of ibus-chewing.pot to server: warning: encountered msgctxt; not currently supported warning: encountered msgctxt; not currently supported warning: encountered msgctxt; not currently supported error: Unexpected Status, failed to push Hi Ding, I have commit a change 654368b to git-hub to fix this issue, basically i add a handler for status code is 301 when pushing pot file and po file. Please use latest code to verify it, thanks. VERIFIED with commit ec9cadf01148f7335e10f98fb0690028b0b0f48e Could you please close this when 1.3.2 is released? Sure, I will make sure this bug does not reappear then close it. |