<?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>35733</bug_id>
          
          <creation_ts>2010-03-04 04:40:09 -0800</creation_ts>
          <short_desc>webkit-patch doesn&apos;t work well with security bug</short_desc>
          <delta_ts>2010-03-08 22:20:33 -0800</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>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fumitoshi Ukai">ukai</reporter>
          <assigned_to name="Fumitoshi Ukai">ukai</assigned_to>
          <cc>abarth</cc>
    
    <cc>commit-queue</cc>
    
    <cc>eric</cc>
    
    <cc>hamaji</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>196006</commentid>
    <comment_count>0</comment_count>
    <who name="Fumitoshi Ukai">ukai</who>
    <bug_when>2010-03-04 04:40:09 -0800</bug_when>
    <thetext>security bug is restricted to access.
Even if I could browse the security bug, webkit-patch fails to prepare or post.

$ ./WebKitTools/Scripts/webkit-patch prepare XXXXX
  Running status to find changed, added, or removed files.
  Reviewing diff to determine which lines changed.
  Extracting affected function names from source files.
  Change author: Fumitoshi Ukai &lt;ukai@chromium.org&gt;.
  Bug XXXXX has no bug description. Maybe you set wrong bug ID?
  The bug URL: https://bugs.webkit.org/show_bug.cgi?id=XXXXX&amp;ctype=xml
ERROR: Unable to prepare ChangeLogs.

$ ./WebKitTools/Scripts/webkit-patch post
Running check-webkit-style
Total errors found: 0 in 8 files
Was that diff correct? [Y/n]: y
Fetching: https://bugs.webkit.org/show_bug.cgi?id=XXXXX&amp;ctype=xml
Traceback (most recent call last):
  File &quot;./WebKitTools/Scripts/webkit-patch&quot;, line 109, in &lt;module&gt;
    WebKitPatch().main()
  File &quot;/Users/ukai/src/chromium-webkit/src/third_party/WebKit/WebKitTools/Scripts/webkitpy/multicommandtool.py&quot;, line 299, in main
  File &quot;/Users/ukai/src/chromium-webkit/src/third_party/WebKit/WebKitTools/Scripts/webkitpy/multicommandtool.py&quot;, line 113, in check_arguments_and_execute
  File &quot;/Users/ukai/src/chromium-webkit/src/third_party/WebKit/WebKitTools/Scripts/webkitpy/commands/abstractsequencedcommand.py&quot;, line 43, in execute
  File &quot;/Users/ukai/src/chromium-webkit/src/third_party/WebKit/WebKitTools/Scripts/webkitpy/stepsequence.py&quot;, line 66, in run_and_handle_errors
  File &quot;/Users/ukai/src/chromium-webkit/src/third_party/WebKit/WebKitTools/Scripts/webkitpy/stepsequence.py&quot;, line 60, in _run
  File &quot;/Users/ukai/src/chromium-webkit/src/third_party/WebKit/WebKitTools/Scripts/webkitpy/steps/obsoletepatches.py&quot;, line 46, in run
  File &quot;/Users/ukai/src/chromium-webkit2/src/third_party/WebKit/WebKitTools/Scripts/webkitpy/bugzilla.py&quot;, line 426, in fetch_bug
    return Bug(self.fetch_bug_dictionary(bug_id), self)
  File &quot;/Users/ukai/src/chromium-webkit2/src/third_party/WebKit/WebKitTools/Scripts/webkitpy/bugzilla.py&quot;, line 421, in fetch_bug_dictionary
    return self._parse_bug_page(self._fetch_bug_page(bug_id))
  File &quot;/Users/ukai/src/chromium-webkit2/src/third_party/WebKit/WebKitTools/Scripts/webkitpy/bugzilla.py&quot;, line 404, in _parse_bug_page
    bug[&quot;title&quot;] = unicode(soup.find(&quot;short_desc&quot;).string)
AttributeError: &apos;NoneType&apos; object has no attribute &apos;string&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196344</commentid>
    <comment_count>1</comment_count>
    <who name="Fumitoshi Ukai">ukai</who>
    <bug_when>2010-03-04 21:22:06 -0800</bug_when>
    <thetext>land also fails

$ TZ=America/Los_Angeles ./WebKitTools/Scripts/webkit-patch land 
Fetching: https://bugs.webkit.org/show_bug.cgi?id=XXXX&amp;ctype=xml
Traceback (most recent call last):
  File &quot;./WebKitTools/Scripts/webkit-patch&quot;, line 109, in &lt;module&gt;
    WebKitPatch().main()
  File &quot;/Users/ukai/src/chromium-webkit/src/third_party/WebKit/WebKitTools/Scripts/webkitpy/multicommandtool.py&quot;, line 299, in main
  File &quot;/Users/ukai/src/chromium-webkit/src/third_party/WebKit/WebKitTools/Scripts/webkitpy/multicommandtool.py&quot;, line 113, in check_arguments_and_execute
  File &quot;/Users/ukai/src/chromium-webkit/src/third_party/WebKit/WebKitTools/Scripts/webkitpy/commands/abstractsequencedcommand.py&quot;, line 43, in execute
  File &quot;/Users/ukai/src/chromium-webkit/src/third_party/WebKit/WebKitTools/Scripts/webkitpy/stepsequence.py&quot;, line 66, in run_and_handle_errors
  File &quot;/Users/ukai/src/chromium-webkit/src/third_party/WebKit/WebKitTools/Scripts/webkitpy/stepsequence.py&quot;, line 60, in _run
  File &quot;/Users/ukai/src/chromium-webkit/src/third_party/WebKit/WebKitTools/Scripts/webkitpy/steps/updatechangelogswithreviewer.py&quot;, line 63, in run
  File &quot;/Users/ukai/src/chromium-webkit/src/third_party/WebKit/WebKitTools/Scripts/webkitpy/steps/updatechangelogswithreviewer.py&quot;, line 45, in _guess_reviewer_from_bug
  File &quot;/Users/ukai/src/chromium-webkit2/src/third_party/WebKit/WebKitTools/Scripts/webkitpy/bugzilla.py&quot;, line 426, in fetch_bug
    return Bug(self.fetch_bug_dictionary(bug_id), self)
  File &quot;/Users/ukai/src/chromium-webkit2/src/third_party/WebKit/WebKitTools/Scripts/webkitpy/bugzilla.py&quot;, line 421, in fetch_bug_dictionary
    return self._parse_bug_page(self._fetch_bug_page(bug_id))
  File &quot;/Users/ukai/src/chromium-webkit2/src/third_party/WebKit/WebKitTools/Scripts/webkitpy/bugzilla.py&quot;, line 404, in _parse_bug_page
    bug[&quot;title&quot;] = unicode(soup.find(&quot;short_desc&quot;).string)
AttributeError: &apos;NoneType&apos; object has no attribute &apos;string&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196347</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-03-04 21:34:17 -0800</bug_when>
    <thetext>Yeah.  We need to call bugzilla.py&apos;s authenticate method more often.  The patches are pretty simple to write one you have a reproducing test case.  You can see other examples in bugzilla.py.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196379</commentid>
    <comment_count>3</comment_count>
      <attachid>50091</attachid>
    <who name="Fumitoshi Ukai">ukai</who>
    <bug_when>2010-03-05 01:01:01 -0800</bug_when>
    <thetext>Created attachment 50091
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196380</commentid>
    <comment_count>4</comment_count>
    <who name="Fumitoshi Ukai">ukai</who>
    <bug_when>2010-03-05 01:04:32 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Yeah.  We need to call bugzilla.py&apos;s authenticate method more often.  The
&gt; patches are pretty simple to write one you have a reproducing test case.  You
&gt; can see other examples in bugzilla.py.

I&apos;m not sure if we always authenticate before accessing bugzilla.
This patch set 1 would fix the post and land.
For prepare, webkit-patch calls prepare-ChangesLogs and it just uses curl to access bugzilla.  How could we fix it?  Use --netrc ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196403</commentid>
    <comment_count>5</comment_count>
      <attachid>50091</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-03-05 05:36:24 -0800</bug_when>
    <thetext>Comment on attachment 50091
Patch

Interesting approach.  In general, we prefer a test for every change to webkit-patch, especially for low frequency bugs like this one.

I&apos;m not sure of the best solution for prepare-ChangeLog.  It&apos;s outside of our python infrastructure, so it doesn&apos;t have access to our identify information...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196647</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-03-05 14:05:15 -0800</bug_when>
    <thetext>Attachment 50091 was posted by a committer and has review+, assigning to Fumitoshi Ukai for commit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196955</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-03-06 17:25:23 -0800</bug_when>
    <thetext>ChangeLog should say what was fixed here. &quot;Doesn&apos;t work well&quot; is not a sufficient explanation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>197196</commentid>
    <comment_count>8</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-03-08 09:43:44 -0800</bug_when>
    <thetext>Are you looking for a resolution here, or just giving advice for the future?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>197432</commentid>
    <comment_count>9</comment_count>
    <who name="Fumitoshi Ukai">ukai</who>
    <bug_when>2010-03-08 20:21:22 -0800</bug_when>
    <thetext>Committed r55704: &lt;http://trac.webkit.org/changeset/55704&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>197434</commentid>
    <comment_count>10</comment_count>
    <who name="Fumitoshi Ukai">ukai</who>
    <bug_when>2010-03-08 20:25:43 -0800</bug_when>
    <thetext>(In reply to comment #8)
&gt; Are you looking for a resolution here, or just giving advice for the future?

Sorry for the delay.
I just landed this patch, and create new bug for prepare-ChangeLog
https://bugs.webkit.org/show_bug.cgi?id=35901

Shoud we develop webkitpy version of prepare-ChangeLog?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>197457</commentid>
    <comment_count>11</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-03-08 22:20:33 -0800</bug_when>
    <thetext>If it offered other benefits as part of a re-write, sure.  But I think we have bigger fish to fry for the moment.  Most critical in terms of python re-writes is to finish the new-run-webkit-tests (python) to run-webkit-tests conversion.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>50091</attachid>
            <date>2010-03-05 01:01:01 -0800</date>
            <delta_ts>2010-03-05 05:36:24 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-35733-20100305180059.patch</filename>
            <type>text/plain</type>
            <size>1274</size>
            <attacher name="Fumitoshi Ukai">ukai</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdFRvb2xzL0NoYW5nZUxvZyBiL1dlYktpdFRvb2xzL0NoYW5nZUxv
ZwppbmRleCAzMzFhY2Y2Li4wNTUzMWU5IDEwMDY0NAotLS0gYS9XZWJLaXRUb29scy9DaGFuZ2VM
b2cKKysrIGIvV2ViS2l0VG9vbHMvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTQgQEAKKzIwMTAtMDMt
MDUgIEZ1bWl0b3NoaSBVa2FpICA8dWthaUBjaHJvbWl1bS5vcmc+CisKKyAgICAgICAgUmV2aWV3
ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgd2Via2l0LXBhdGNoIGRvZXNuJ3Qgd29y
ayB3ZWxsIHdpdGggc2VjdXJpdHkgYnVnCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3Jn
L3Nob3dfYnVnLmNnaT9pZD0zNTczMworICAgICAgICAKKyAgICAgICAgRml4ZWQgd2Via2l0LXBh
dGNoIHBvc3QgYW5kIGxhbmQgZm9yIHNlY3VyaXR5IGJ1Z3MuCisKKyAgICAgICAgKiBTY3JpcHRz
L3dlYmtpdHB5L2J1Z3ppbGxhLnB5OgorCiAyMDEwLTAzLTA0ICBNYXJrIFJvd2UgIDxtcm93ZUBh
cHBsZS5jb20+CiAKICAgICAgICAgUnViYmVyLXN0YW1wZWQgYnkgQWxpY2UgTGl1LgpkaWZmIC0t
Z2l0IGEvV2ViS2l0VG9vbHMvU2NyaXB0cy93ZWJraXRweS9idWd6aWxsYS5weSBiL1dlYktpdFRv
b2xzL1NjcmlwdHMvd2Via2l0cHkvYnVnemlsbGEucHkKaW5kZXggMDBlNjk0MC4uNDdhMWE0MyAx
MDA2NDQKLS0tIGEvV2ViS2l0VG9vbHMvU2NyaXB0cy93ZWJraXRweS9idWd6aWxsYS5weQorKysg
Yi9XZWJLaXRUb29scy9TY3JpcHRzL3dlYmtpdHB5L2J1Z3ppbGxhLnB5CkBAIC00MTgsNyArNDE4
LDExIEBAIGNsYXNzIEJ1Z3ppbGxhKG9iamVjdCk6CiAgICAgICAgIHJldHVybiBzZWxmLmJyb3dz
ZXIub3BlbihidWdfdXJsKQogCiAgICAgZGVmIGZldGNoX2J1Z19kaWN0aW9uYXJ5KHNlbGYsIGJ1
Z19pZCk6Ci0gICAgICAgIHJldHVybiBzZWxmLl9wYXJzZV9idWdfcGFnZShzZWxmLl9mZXRjaF9i
dWdfcGFnZShidWdfaWQpKQorICAgICAgICB0cnk6CisgICAgICAgICAgICByZXR1cm4gc2VsZi5f
cGFyc2VfYnVnX3BhZ2Uoc2VsZi5fZmV0Y2hfYnVnX3BhZ2UoYnVnX2lkKSkKKyAgICAgICAgZXhj
ZXB0OgorICAgICAgICAgICAgc2VsZi5hdXRoZW50aWNhdGUoKQorICAgICAgICAgICAgcmV0dXJu
IHNlbGYuX3BhcnNlX2J1Z19wYWdlKHNlbGYuX2ZldGNoX2J1Z19wYWdlKGJ1Z19pZCkpCiAKICAg
ICAjIEZJWE1FOiBBIEJ1Z3ppbGxhQ2FjaGUgb2JqZWN0IHNob3VsZCBwcm92aWRlIGFsbCB0aGVz
ZSBmZXRjaF8gbWV0aG9kcy4KIAo=
</data>
<flag name="review"
          id="33143"
          type_id="1"
          status="+"
          setter="abarth"
    />
          </attachment>
      

    </bug>

</bugzilla>