You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2008/10/30 23:22:58 UTC

DO NOT REPLY [Bug 46133] New: RewriteMap external program always returns "FAILED"

https://issues.apache.org/bugzilla/show_bug.cgi?id=46133

           Summary: RewriteMap external program always returns "FAILED"
           Product: Apache httpd-2
           Version: 2.2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: dshadowwolf@gmail.com


With the following program:
#!/usr/bin/perl
$|=1;

while (<>) {
  s/&/\%26/g;
  print $_ . "\n";
}

the only response from mod_rewrite is:
10.0.0.8 - - [30/Oct/2008:18:15:47 --0400]
[draco/sid#ba042e48][rid#ba33fbf8/initial] (5) map lookup FAILED: map=ampesc
key=This_&_That

I have tried making sure Apache has a valid shell (contrary to my standard of
having daemons have "nologin" for a shell) and even changed the mode of the
script to 777. In all testing the script returns a valid response for every
input - even ones it doesn't modify. The addition of the newline was from
advice from  another bug report (for 1.3, IIRC).


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46133] RewriteMap external program always returns "FAILED"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46133


Dan Hazelton <ds...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dshadowwolf@gmail.com




--- Comment #1 from Dan Hazelton <ds...@gmail.com>  2008-10-30 15:52:33 PST ---
Note: This only applies when the rewrite directives (aside from the definition
of the RewriteMap) are per-dir. When all mod_rewrite directives are in the
server config this bug does not express itself.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46133] RewriteMap external program always returns "FAILED"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46133





--- Comment #2 from Bob Ionescu <bo...@googlemail.com>  2008-12-19 18:16:51 PST ---
I tried to reproduce that on windows, but it works as expected in both
contexts.

However, I can reproduce the described issue, if "RewriteEngine on" is omitted
(or set to "off") in per-server context. In that case (which would be a
configuration error) the prog won't be started at server startup, the lookup in
per-dir context will fail.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46133] RewriteMap external program always returns "FAILED"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46133


Dan Hazelton <ds...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--- Comment #3 from Dan Hazelton <ds...@gmail.com>  2008-12-19 18:38:29 PST ---
I don't think I attempted the exact circumstances outlined below. If it was a
configuration error - an omitted directive in the per-server config - then this
is not a valid bug. I'm going to change it to 'INVALID' (if bugzilla will let
me).


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org