| Summary: | Client chokes on whitespace in zanata.xml | ||
|---|---|---|---|
| Product: | [Retired] Zanata | Reporter: | Joshua Wulf <jwulf> |
| Component: | Component-PythonClient | Assignee: | zanata-dev-internal <zanata-dev-internal> |
| Status: | CLOSED NOTABUG | QA Contact: | Ding-Yi Chen <dchen> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | unspecified | CC: | lcarlon, sflaniga, zanata-bugs |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-10-17 03:18:39 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Assigning to Scrum product owner for prioritisation. Sorry, but white space is not allowed before the XML declaration:
$ xmllint zanata.xml
zanata.xml:1: parser error : XML declaration allowed only at the start of the document
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
^
|
put a single whitespace in front of the xml declaration at the start of a zanata.xml and the client blows up when you try to push. It should handle whitespace. This is xml, not python! Works: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <config xmlns="http://flies.openl10n.net/config/v1/"> <url>http://flies-devel.englab.bne.redhat.com</url> <project>anaconda</project> <project-version>rhel6</project-version> <locales> <locale>af</locale> <locale>am</locale> <locale>as</locale> <locale>ar</locale> </locales> </config> Explodes: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <config xmlns="http://flies.openl10n.net/config/v1/"> <url>http://flies-devel.englab.bne.redhat.com</url> <project>anaconda</project> <project-version>rhel6</project-version> <locales> <locale>af</locale> <locale>am</locale> <locale>as</locale> <locale>ar</locale> </locales> </config>