[zanata-bugs] [Bug 747839] New: Client misreports server url from zanata.xml

bugzilla at redhat.com bugzilla at redhat.com
Fri Oct 21 05:38:18 UTC 2011


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.

Summary: Client misreports server url from zanata.xml

https://bugzilla.redhat.com/show_bug.cgi?id=747839

           Summary: Client misreports server url from zanata.xml
           Product: Zanata
           Version: 1.3
          Platform: Unspecified
        OS/Version: Linux
            Status: NEW
          Severity: medium
          Priority: unspecified
         Component: Component-PythonClient
        AssignedTo: runab at redhat.com
        ReportedBy: jwulf at redhat.com
         QAContact: dchen at redhat.com
                CC: zanata-bugs at redhat.com
   Estimated Hours: 0.0
    Classification: Community
      Story Points: ---
              Type: ---


User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML,
like Gecko) Chrome/14.0.835.202 Safari/535.1

When the zanata.xml file for a publican project has a server url value with two
trailing slashes "//", the client reports the server url with one trailing
slash, then fails to locate a corresponding entry in the zanata.ini file.

Reproducible: Always

Steps to Reproduce:
1. Modify a working zanata.xml file to put two slashes after the server name,
for example "http://zanata-excalibur.lab.eng.bne.redhat.com:8080//"
2. Run zanata push
3.
Actual Results:  
The python client reports the server name with one trailing slash, and fails to
find a corresponding entry in zanata.ini: 

[jwulf at gaura Zanata_Quickstart]$ zanata push --project-type podir
Loading zanata project config from: /home/jwulf/Work/Zanata/Zanata
topicized/Zanata_Quickstart/zanata.xml
Loading zanata user config from: /home/jwulf/.config/zanata.ini
zanata server: http://zanata-excalibur.lab.eng.bne.redhat.com:8080/
zanata python client version: 1.3.1
error: Can not retrieve the server version, server may not support the version
service
error: Please specify username and apikey in zanata.ini or with '--username'
and '--apikey' options


Expected Results:  
The python client should show the server url value as it appears in zanata.xml,
and as it is searching in zanata.ini, in this case with the two // characters
at the end. This would make it clearer what the problem is and easier to fix
it.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the zanata-bugs mailing list