- changed status to resolved
Issue with credentials
Issue #4
resolved
We are running our own inhouse version of zanata. So if I go to settings -> user settings -> client -> configuration (zanata.ini) and downloads the content to ~/.config/zanata.ini
[servers]
my-zanata_test_se.url=http://my-zanata.test.se:8080/zanata/
my-zanata_test_se.username=me
my-zanata_test_se.key=my-h4sh-4p1-t0k3n
And using the downloaded zanata.xml from the project:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<config xmlns="http://zanata.org/namespace/config/">
<url>http://my-zanata.test.se:8080/zanata/</url>
<project>second</project>
<project-version>0.0.1</project-version>
<!-- NB project-type set to 'podir' to allow offline translations to be
uploaded, but original was 'gettext' -->
<project-type>podir</project-type>
<src-dir>untranslated</src-dir>
<trans-dir>translated</trans-dir>
<rules>
<rule pattern="**/*.po">{path}/{filename}.{locale}.po</rule>
<rule pattern="**/*.pot">{path}/{filename}.{locale}.{extension}</rule>
</rules>
</config>
I am not able to push to my server due to the fact that ini.js:_key is not able to map
http://my-zanata.test.se:8080/zanata/
-> my-zanata_test_se
because the regexp does not handle the :8080/zanata
part properly but instead gives this key: my-zanata_test_se:8080/zanata
which will give undefined credentials to the actual HTTP PUT.
Comments (2)
-
repo owner -
reporter Thank you for a prompt fix, works beautifully!
- Log in to comment
Fix failing on getting a credential for URL with the port number
fixes
#4→ <<cset 99515872c3d6>>