Bug 1029727 - [beaker-client][bkr] parse job xml fail, when the <task> node indent incorrect.
Summary: [beaker-client][bkr] parse job xml fail, when the <task> node indent incorrect.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-beaker
Version: 18
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Kyle VanderBeek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-13 02:49 UTC by JianHong Yin
Modified: 2013-11-13 03:02 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-13 03:02:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
the job xml file can parse correct. (3.55 KB, text/plain)
2013-11-13 02:49 UTC, JianHong Yin
no flags Details
the job xml file(just with wrong indent) parse fail. (3.49 KB, text/plain)
2013-11-13 02:51 UTC, JianHong Yin
no flags Details

Description JianHong Yin 2013-11-13 02:49:54 UTC
Created attachment 823238 [details]
the job xml file can parse correct.

Description of problem:
[bkr] parse job xml fail, when the <task> node indent incorrect.
bkr job-summit <xml file with wrong indent>

Version-Release number of selected component (if applicable):
# rpm -qf `which bkr`
beaker-client-0.15.1-1.fc18.noarch

How reproducible:
100%

Steps to Reproduce:
1. 
2.
3.

Actual results:
# bkr job-submit m2,1.job.xml.fail
Traceback (most recent call last):
  File "/bin/bkr", line 9, in <module>
    load_entry_point('bkr.client==0.15.1', 'console_scripts', 'bkr')()
  File "/usr/lib/python2.7/site-packages/bkr/client/main.py", line 58, in main
    return cmd.run(*cmd_args, **cmd_opts.__dict__)
  File "/usr/lib/python2.7/site-packages/bkr/client/commands/cmd_job_submit.py", line 178, in run
    doc = xml.dom.minidom.parseString("<dummy>%s</dummy>" % mystring)
  File "/usr/lib64/python2.7/xml/dom/minidom.py", line 1931, in parseString
    return expatbuilder.parseString(string)
  File "/usr/lib64/python2.7/xml/dom/expatbuilder.py", line 940, in parseString
    return builder.parseString(string)
  File "/usr/lib64/python2.7/xml/dom/expatbuilder.py", line 223, in parseString
    parser.Parse(string, True)
xml.parsers.expat.ExpatError: mismatched tag: line 28, column 2


Expected results:
# bkr job-submit  m2,1.job.xml 
Submitted: ['J:542024']


Additional info:

Comment 1 JianHong Yin 2013-11-13 02:51:26 UTC
Created attachment 823239 [details]
the job xml file(just with wrong indent) parse fail.

Comment 2 JianHong Yin 2013-11-13 03:02:37 UTC
sorry for my mistake;


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