Bug 724845 - Client chokes on whitespace in zanata.xml
Summary: Client chokes on whitespace in zanata.xml
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Zanata
Classification: Retired
Component: Component-PythonClient
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: zanata-dev-internal
QA Contact: Ding-Yi Chen
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-22 00:51 UTC by Joshua Wulf
Modified: 2014-10-19 22:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-10-17 03:18:39 UTC
Embargoed:


Attachments (Terms of Use)

Description Joshua Wulf 2011-07-22 00:51:37 UTC
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>

Comment 1 Sean Flanigan 2011-09-07 04:33:17 UTC
Assigning to Scrum product owner for prioritisation.

Comment 2 Sean Flanigan 2011-10-17 03:18:39 UTC
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"?>
      ^


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