Bug 1029727 - [beaker-client][bkr] parse job xml fail, when the <task> node indent incorrect.
[beaker-client][bkr] parse job xml fail, when the <task> node indent incorrect.
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: python-beaker (Show other bugs)
18
All Linux
unspecified Severity high
: ---
: ---
Assigned To: Kyle VanderBeek
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-12 21:49 EST by Yin.JianHong
Modified: 2013-11-12 22:02 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-11-12 22:02:37 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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

  None (edit)
Description Yin.JianHong 2013-11-12 21:49:54 EST
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 Yin.JianHong 2013-11-12 21:51:26 EST
Created attachment 823239 [details]
the job xml file(just with wrong indent) parse fail.
Comment 2 Yin.JianHong 2013-11-12 22:02:37 EST
sorry for my mistake;

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