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: [email protected]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to