You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Ray Mullins <mr...@lerami.lerctr.org> on 1999/04/27 16:59:44 UTC

mod_include/4315: ssi #echo does not honor SetEnv environment variables

>Number:         4315
>Category:       mod_include
>Synopsis:       ssi #echo does not honor SetEnv environment variables
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Apr 27 09:10:00 PDT 1999
>Last-Modified:
>Originator:     mrm@lerami.lerctr.org
>Organization:
apache
>Release:        1.3.6
>Environment:
1.3.6, no mods except for a couple of lines in suEXEC.c (available upon request)
UnixWare 2.1.3 with all current patches
Standard UnixWare SDK cc compiler

uname -a
UNIX_SV lerami 4.2MP 2.1.3 i386 x86at
>Description:
Using a SetEnv for TZ, #echo var="LAST_MODIFIED" does not honor TZ. In our 
case, the server is for a :US/Pacific customer, and the machine is located in 
:US/Central.  CGI programs report the correct TZ, but in static documents
with #echo, the info is replaced with (currently) CDT date/time.  I assume
other date/time #echo substitutions have the same problem.
>How-To-Repeat:
>From httpd.conf:
<VirtualHost socaltip.lerctr.org>                                            
        User socaltip                                                        
        Group socaltip                                                       
        SetEnv TZ :US/Pacific                                                
        ServerAdmin socaltip@lerctr.org                                      
        DocumentRoot /home3/socaltip/public_html                             
        ServerName socaltip.lerctr.org                                       
        ErrorLog /var/opt/httpd/logs/socaltip.lerctr.org-error_log           
        CustomLog /var/opt/httpd/logs/socaltip.lerctr.org-access_log combined
        ScriptAlias /cgi-bin/ /home3/socaltip/cgi/                           
</VirtualHost>

RC scripts use /etc/TIMEZONE to set TZ for the system to :US/Central
>Fix:

>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]