You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2005/04/22 04:21:24 UTC

[Bug 4275] New: oddness in URI parsing

http://bugzilla.spamassassin.org/show_bug.cgi?id=4275

           Summary: oddness in URI parsing
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Libraries
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: quinlan@pathname.com


I put these into a message (sample-spam.txt will do)

HTTP://EXAMPLE.COM
HTTP://WWW.APACHE.ORG
HTTP://www.google.com
http://www.yahoo.com

and these URIs are parsed:

dbg: uri: parsed uri found: www.google.com
dbg: uri: parsed uri found: WWW.APACHE.ORG
dbg: uri: parsed uri found: http://www.google.com
dbg: uri: parsed uri found: http://www.yahoo.com
dbg: uri: parsed uri found: http://WWW.APACHE.ORG
dbg: uri: parsed uri found: EXAMPLE.COM
dbg: uri: parsed uri found: http://EXAMPLE.COM

So, the issue (oddness) is that each uppercase scheme URI shows up twice.
The normal lowercase one ("http://www.yahoo.com") only shows up once as
expected.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4275] oddness in URI parsing

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4275





------- Additional Comments From goudron_et_plumes@yahoo.fr  2005-04-22 02:23 -------
Will this patch (or some other) also catch mixed-case URIs that SA (3.0.2) does
not currently see, such as

HTTP://WWW.cra3ybiz.com/st.asp

(I made a quick and undoubtedly dirty change in our local PerMsgStatus.pm,
$schemeRE is now 

my $schemeRE = qr/(?i:https?|ftp|mailto|javascript|file)/;

and, on our system, mixed-case URIs are now detected properly)



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4275] oddness in URI parsing

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4275


wtogami@redhat.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |ASSIGNED




------- Additional Comments From wtogami@redhat.com  2005-09-10 16:52 -------
http://mail-archives.apache.org/mod_mbox/spamassassin-commits/200504.mbox/%3c20050422031505.7243.qmail@minotaur.apache.org%3e
The latter part of this patch that went into 3.1 seems unnecessary in 3.0? 
Verification help would be appreciated.

Testing the top part of the patch in Fedora for future 3.0.5.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4275] oddness in URI parsing

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4275





------- Additional Comments From spamassassin@dostech.ca  2005-10-11 12:55 -------
Looks and works (against 3.0 branch) good for me. +1



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4275] oddness in URI parsing

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4275


sidney@sidney.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
  Status Whiteboard|ready to commit             |




------- Additional Comments From sidney@sidney.com  2005-11-11 22:06 -------
Committed revision 332647




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4275] oddness in URI parsing

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4275


wtogami@redhat.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |
   Target Milestone|3.1.0                       |3.0.5




------- Additional Comments From wtogami@redhat.com  2005-08-16 21:01 -------
Adding to queue for future 3.0.5 bugfix release.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4275] oddness in URI parsing

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4275





------- Additional Comments From wtogami@redhat.com  2005-11-07 20:43 -------
One more vote needed.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4275] oddness in URI parsing

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4275


felicity@kluge.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|Undefined                   |3.1.0




------- Additional Comments From felicity@kluge.net  2005-04-21 20:17 -------
Oops.  Missing a few "i" bits in an RE and when canonifying in Util.pm.

Fixed, r164167.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4275] oddness in URI parsing

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4275





------- Additional Comments From sidney@sidney.com  2005-11-07 20:53 -------
+1



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4275] oddness in URI parsing

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4275





------- Additional Comments From wtogami@redhat.com  2005-10-11 08:28 -------
Created an attachment (id=3178)
 --> (http://bugzilla.spamassassin.org/attachment.cgi?id=3178&action=view)
spamassassin-3.0.4-4275-case-insensitive-uri.patch

Proposed patch against 3.0.4.  Unsure about the above question so more feedback
would be appreciated.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4275] oddness in URI parsing

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4275





------- Additional Comments From jm@jmason.org  2005-10-11 10:05 -------
+1



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4275] oddness in URI parsing

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4275


felicity@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simon@unixinside.com




------- Additional Comments From felicity@apache.org  2005-08-10 19:40 -------
*** Bug 4529 has been marked as a duplicate of this bug. ***



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4275] oddness in URI parsing

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4275





------- Additional Comments From wtogami@redhat.com  2005-11-11 21:58 -------
This bug has the necessary votes, could someone please commit?




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4275] oddness in URI parsing

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4275





------- Additional Comments From felicity@kluge.net  2005-04-22 09:36 -------
Subject: Re:  oddness in URI parsing

On Fri, Apr 22, 2005 at 02:23:04AM -0700, bugzilla-daemon@bugzilla.spamassassin.org wrote:
> Will this patch (or some other) also catch mixed-case URIs that SA (3.0.2) does
> not currently see, such as

Yes, same issue, similar patch.





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4275] oddness in URI parsing

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4275


wtogami@redhat.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Status Whiteboard|                            |ready to commit






------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.