<?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>25881</bug_id>
          
          <creation_ts>2009-05-19 19:03:08 -0700</creation_ts>
          <short_desc>Attachment causes PrettyPatch to fail</short_desc>
          <delta_ts>2009-05-19 21:45:41 -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>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://bugs.webkit.org/attachment.cgi?id=30488&amp;action=prettypatch</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="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aroben</cc>
    
    <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>122003</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-05-19 19:03:08 -0700</bug_when>
    <thetext>Attachment causes PrettyPatch to fail

./PrettyPatch/PrettyPatch.rb:72:in `split&apos;: can&apos;t convert nil into String (TypeError)
	from ./PrettyPatch/PrettyPatch.rb:72:in `find_url_and_path&apos;
	from ./PrettyPatch/PrettyPatch.rb:85:in `linkifyFilename&apos;
	from ./PrettyPatch/PrettyPatch.rb:203:in `to_html&apos;
	from ./PrettyPatch/PrettyPatch.rb:14:in `prettify&apos;
	from ./PrettyPatch/PrettyPatch.rb:14:in `collect&apos;
	from ./PrettyPatch/PrettyPatch.rb:14:in `prettify&apos;
	from PrettyPatch/prettify.rb:26</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122005</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-05-19 19:19:29 -0700</bug_when>
    <thetext>Reduction:
diff --git &quot;a/LayoutTests/editing/pasteboard/resources/File With Spaces! For Dra\314\210gging?.gif&quot; &quot;b/LayoutTests/editing/pasteboard/resources/File With Spaces! For Dra\314\210gging?.gif&quot;
new file mode 100644
index 0000000..55844c8
Binary files /dev/null and &quot;b/LayoutTests/editing/pasteboard/resources/File With Spaces! For Dra\314\210gging?.gif&quot; differ

The quotes are throwing the diff parsing off.  Patch coming up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122009</commentid>
    <comment_count>2</comment_count>
      <attachid>30489</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-05-19 19:23:26 -0700</bug_when>
    <thetext>Created attachment 30489
Make PrettyPatch understand quoted filenames in git diffs

 2 files changed, 10 insertions(+), 1 deletions(-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122013</commentid>
    <comment_count>3</comment_count>
      <attachid>30489</attachid>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2009-05-19 19:48:48 -0700</bug_when>
    <thetext>Comment on attachment 30489
Make PrettyPatch understand quoted filenames in git diffs

I guess this will allow mismatched quotes through (i.e., a/foo&quot;), but that&apos;s probably fine.

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122036</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-05-19 20:56:30 -0700</bug_when>
    <thetext>Landed as r43884.  Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122037</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-05-19 20:58:09 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/43884</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122038</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-05-19 21:03:23 -0700</bug_when>
    <thetext>Interesting.  Well, so the fix worked, but leaves a trailing &quot; in the filename.  It&apos;s OK, but less than ideal.  I could find a way to use:

(&quot;)? and \1 I guess.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122054</commentid>
    <comment_count>7</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2009-05-19 21:45:41 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; Interesting.  Well, so the fix worked, but leaves a trailing &quot; in the filename.
&gt;  It&apos;s OK, but less than ideal.  I could find a way to use:
&gt; 
&gt; (&quot;)? and \1 I guess.

Assuming the filename can&apos;t contain a quote, you could replace

(.+)

with

([^&quot;]+)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>30489</attachid>
            <date>2009-05-19 19:23:26 -0700</date>
            <delta_ts>2009-05-19 19:48:48 -0700</delta_ts>
            <desc>Make PrettyPatch understand quoted filenames in git diffs</desc>
            <filename>Make-PrettyPatch-understand-quoted-filenames-in-git-diffs.patch</filename>
            <type>text/plain</type>
            <size>983</size>
            <attacher name="Eric Seidel (no email)">eric</attacher>
            
              <data encoding="base64">NmFkNWMwNWYxZWEzNGQzOWYzNjhkNGFhYzA0MjBhYmU0ZGNhOTUxZQpkaWZmIC0tZ2l0IGEvQnVn
c1NpdGUvQ2hhbmdlTG9nIGIvQnVnc1NpdGUvQ2hhbmdlTG9nCmluZGV4IGI3MzVlZjAuLjk0MDBk
NTIgMTAwNjQ0Ci0tLSBhL0J1Z3NTaXRlL0NoYW5nZUxvZworKysgYi9CdWdzU2l0ZS9DaGFuZ2VM
b2cKQE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8kLwogICAgIF0KIAo=
</data>
<flag name="review"
          id="15393"
          type_id="1"
          status="+"
          setter="aroben"
    />
          </attachment>
      

    </bug>

</bugzilla>