<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>33659</bug_id>
          
          <creation_ts>2010-01-14 01:45:21 -0800</creation_ts>
          <short_desc>commit-queue failed to catch ParseError exception</short_desc>
          <delta_ts>2010-03-25 01:01:50 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>33277</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>180605</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-01-14 01:45:21 -0800</bug_when>
    <thetext>commit-queue failed to catch ParseError exception

https://bugs.webkit.org/show_bug.cgi?id=32641#c23

Not sure what exactly is going on here.  See backtrace in the other bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>180639</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-01-14 02:40:54 -0800</bug_when>
    <thetext>I just had this happen to me using &quot;webkit-patch land&quot; on bug 32641 as well.  I think mechanize/beautifulsoup has trouble when there are things which look like html tags mentioned in bug comments.

Adding comment to bug 32641
Traceback (most recent call last):
  File &quot;/Stuff/Projects/WebKit/WebKitTools/Scripts/webkit-patch&quot;, line 108, in &lt;module&gt;
    WebKitPatch().main()
  File &quot;/Stuff/Projects/WebKit/WebKitTools/Scripts/webkitpy/multicommandtool.py&quot;, line 299, in main
    return command.check_arguments_and_execute(options, args, self)
  File &quot;/Stuff/Projects/WebKit/WebKitTools/Scripts/webkitpy/multicommandtool.py&quot;, line 113, in check_arguments_and_execute
    return self.execute(options, args, tool) or 0
  File &quot;/Stuff/Projects/WebKit/WebKitTools/Scripts/webkitpy/commands/abstractsequencedcommand.py&quot;, line 43, in execute
    self._sequence.run_and_handle_errors(tool, options, self._prepare_state(options, args, tool))
  File &quot;/Stuff/Projects/WebKit/WebKitTools/Scripts/webkitpy/stepsequence.py&quot;, line 66, in run_and_handle_errors
    self._run(tool, options, state)
  File &quot;/Stuff/Projects/WebKit/WebKitTools/Scripts/webkitpy/stepsequence.py&quot;, line 60, in _run
    step(tool, options).run(state)
  File &quot;/Stuff/Projects/WebKit/WebKitTools/Scripts/webkitpy/steps/closebugforlanddiff.py&quot;, line 55, in run
    self._tool.bugs.post_comment_to_bug(bug_id, comment_text)
  File &quot;/Stuff/Projects/WebKit/WebKitTools/Scripts/webkitpy/bugzilla.py&quot;, line 554, in post_comment_to_bug
    self.browser.select_form(name=&quot;changeform&quot;)
  File &quot;./autoinstall.cache.d/-1555206040/mechanize-0.1.11.zip/mechanize-0.1.11/mechanize/_mechanize.py&quot;, line 505, in select_form
  File &quot;./autoinstall.cache.d/-1555206040/mechanize-0.1.11.zip/mechanize-0.1.11/mechanize/_html.py&quot;, line 546, in __getattr__
  File &quot;./autoinstall.cache.d/-1555206040/mechanize-0.1.11.zip/mechanize-0.1.11/mechanize/_html.py&quot;, line 559, in forms
  File &quot;./autoinstall.cache.d/-1555206040/mechanize-0.1.11.zip/mechanize-0.1.11/mechanize/_html.py&quot;, line 228, in forms
mechanize._html.ParseError</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>180640</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-01-14 02:41:12 -0800</bug_when>
    <thetext>At least now we have a reproducible case to work from :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184162</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-01-24 22:29:06 -0800</bug_when>
    <thetext>The solution is to use Browser(factory=RobustFactory()) during creation.  That tells mechanize to not use python&apos;s (strictish) HTML parser) and instead use BeautifulSoup.  Should be a simple one line change.  We could even write a test if we redirect to a file:// url.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184163</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-01-24 22:31:08 -0800</bug_when>
    <thetext>Great!  I look forward to your patch.  :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>203890</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-03-25 01:01:50 -0700</bug_when>
    <thetext>Struck again:
https://bugs.webkit.org/show_bug.cgi?id=36367#c4</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>