[Bug 61166] New: RewriteMap: URLs with whitespace (txt, dbm)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 61166] New: RewriteMap: URLs with whitespace (txt, dbm)

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=61166

            Bug ID: 61166
           Summary: RewriteMap:  URLs with whitespace (txt, dbm)
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: mod_rewrite
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

Created attachment 35037
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35037&action=edit
bzipped, tar containing two git diff patches

1. The 'dbd' and 'prg' RewriteMap types can match a candidate pattern that
includes whitespace characters.
2. The 'dbm' RewriteMap type is also capable of doing this, except for the fact
that the included 'httxt2dbm' support utility will not properly parse a txt
file containing whitespace inside a URL.
3. The 'txt' RewriteMap type will not properly parse URLs containing
whitespace.

This problem has come up repeatedly on message boards and we have encountered
it, as well.  There are numerous hacks (e.g. re-encode the URL before passing
to the map and use percent-encoded form in the 'txt' map).  However, supporting
very simple quoting is easy enough.

Attached are "git diff" files for:

"modules/mappers/mod_rewrite.c": allow for single- and double-quote delimited
strings in the text mapping file, with backslash-escaping of the chosen quote
permissible

"support/httxt2dbm.c": allow for single- and double-quote delimited strings in
the text mapping file, with backslash-escaping of the chosen quote permissible;
also includes an option to enable application of an unescape function to the
parsed keys and values before adding them to the DBM file


The patches are against the HEAD of the current git repo; the modifications
have been extensively tested on current Apache 2.4 and 2.2 releases.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 61166] RewriteMap: URLs with whitespace (txt, dbm)

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=61166

Jeffrey T. Frey <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]