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

HWS <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |

--- Comment #16 from HWS <[email protected]> 2010-10-25 06:56:14 EDT ---
There are no improvements with 2.2.17. Moreover, I now proved that the bug is
not PHP related at all but due to the redirection by an Action+Handler. For
this purpose, I made two simple CGI shell scripts tt.cgi (executable) and
tt.msh of equal contents:
#!/bin/sh
LC_TIME=C date -u|awk '{print "Last-Modified: " $1 ", " $3 " " $2 " " $6 " " $4
" " $5}'
echo 'Cache-Control: public,max-age=60'
echo 'Content-type: text/html; charset=iso-8859-1'
echo
echo "<p>DOCUMENT_ROOT=$DOCUMENT_ROOT<br>
PATH_INFO=$PATH_INFO<br>
PATH_TRANSLATED=$PATH_TRANSLATED<br>
SCRIPT_NAME=$SCRIPT_NAME<br>
SCRIPT_FILENAME=$SCRIPT_FILENAME<br>
REQUEST_URI=$REQUEST_URI<br>
REDIRECT_URL=$REDIRECT_URL</p>"
# End of script

tt.cgi was run directly, whereas tt.msh was assigned a Handler and Action with
another CGI shell script mysh taking the role of php-cgi:
  <FilesMatch "\.msh$">
    SetHandler mycgi
  </FilesMatch>
  Action mycgi /XyCgi
  ScriptAlias /XyCgi "/path/to/cgi-bin/mysh"
The script mysh contained:
#!/bin/sh
if [ -f "$PATH_TRANSLATED" ]
then . "$PATH_TRANSLATED"
else
echo 'Content-type: text/html


<h2>Not found</h2>'
fi
# End of script

The directly executed tt.cgi correctly entered and used cache entries:

[Mon Oct 25 12:17:13 2010] [debug] mod_disk_cache.c(977): disk_cache: Stored
headers for URL http://dali.physik3.gwdg.de:8080/test/tt.cgi?
[Mon Oct 25 12:17:13 2010] [debug] mod_disk_cache.c(1079): disk_cache: Body for
URL http://dali.physik3.gwdg.de:8080/test/tt.cgi? cached.
[Mon Oct 25 12:20:06 2010] [debug] mod_disk_cache.c(485): disk_cache: Recalled
cached URL info header http://dali.physik3.gwdg.de:8080/test/tt.cgi?
[Mon Oct 25 12:20:06 2010] [debug] mod_disk_cache.c(758): disk_cache: Recalled
headers for URL http://dali.physik3.gwdg.de:8080/test/tt.cgi?
[Mon Oct 25 12:20:06 2010] [debug] cache_util.c(591): Cache lock obtained for
stale cached URL, revalidating entry: /test/tt.cgi
[Mon Oct 25 12:20:06 2010] [debug] cache_storage.c(272): Cached response for
/test/tt.cgi isn't fresh.  Adding/replacing conditional request headers.
[Mon Oct 25 12:20:06 2010] [debug] mod_cache.c(141): Adding CACHE_SAVE filter
for /test/tt.cgi
[Mon Oct 25 12:20:06 2010] [debug] mod_cache.c(148): Adding CACHE_REMOVE_URL
filter for /test/tt.cgi
[Mon Oct 25 12:20:06 2010] [debug] mod_cache.c(705): cache: Caching url:
/test/tt.cgi
[Mon Oct 25 12:20:06 2010] [debug] mod_cache.c(711): cache: Removing
CACHE_REMOVE_URL filter.

The script tt.msh called through the Action did not cache; the only log entries
were (as described in Comment 2 for PHP):
[Mon Oct 25 12:20:33 2010] [debug] mod_cache.c(141): Adding CACHE_SAVE filter
for /test/tt.msh
[Mon Oct 25 12:20:33 2010] [debug] mod_cache.c(148): Adding CACHE_REMOVE_URL
filter for /test/tt.msh

Thus this issue has nothing to do with PHP, but with Handler+Action, as already
conjectured in my Comment 3. The Issue should be renamed or reopened under a
different name.

-- 
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