Bug 250950 - boa: DEBUG_CGI_ENV doesn't print the environment variables
boa: DEBUG_CGI_ENV doesn't print the environment variables
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: boa (Show other bugs)
7
All Linux
medium Severity medium
: ---
: ---
Assigned To: Matthias Saou
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-08-05 20:57 EDT by Jose Pedro Oliveira
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version: boa-0.94.14-0.7.rc21.fc8
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-08-11 14:34:15 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
cgi.c patch - prints the environment variables and respective values (620 bytes, patch)
2007-08-05 20:59 EDT, Jose Pedro Oliveira
no flags Details | Diff

  None (edit)
Description Jose Pedro Oliveira 2007-08-05 20:57:52 EDT
Description of problem:
Activating the "CGI Environment" debug value doesn't produces the expected
result.

Version-Release number of selected component (if applicable):
boa-0.94.14-0.5.rc21

How reproducible:
Always

Steps to Reproduce:
1. start the boa daemon with "CGI Environment" bit in the debug_level
2. execute a CGI
  
Actual results:
It only prints the timestamps (no variables names and no values)

Expected results:
Print n lines in the stderr (one for each environment variable)
Comment 1 Jose Pedro Oliveira 2007-08-05 20:59:40 EDT
Created attachment 160722 [details]
cgi.c patch - prints the environment variables and respective values
Comment 2 Jose Pedro Oliveira 2007-08-05 21:06:19 EDT
Without the previous patch the following output would appear in the error_log
(note: only one line)
----------
[05/Aug/2007:22:49:16 +0000] [05/Aug/2007:22:49:16 +0000] [05/Aug/2007:22:49:16
+0000] [05/Aug/2007:22:49:16 +0000] [05/Aug/2007:22:49:16 +0000]
[05/Aug/2007:22:49:16 +0000] [05/Aug/2007:22:49:16 +0000] [05/Aug/2007:22:49:16
+0000] [05/Aug/2007:22:49:16 +0000] [05/Aug/2007:22:49:16 +0000]
[05/Aug/2007:22:49:16 +0000] [05/Aug/2007:22:49:16 +0000] [05/Aug/2007:22:49:16
+0000] [05/Aug/2007:22:49:16 +0000] [05/Aug/2007:22:49:16 +0000]
[05/Aug/2007:22:49:16 +0000] [05/Aug/2007:22:49:16 +0000] [05/Aug/2007:22:49:16
+0000] [05/Aug/2007:22:49:16 +0000] [05/Aug/2007:22:49:16 +0000] cgi.c -
environment variable for cgi: "(null)"
----------


The output produced with the patch is the following:
(one line for each environment variable)
----------
[06/Aug/2007:02:06:43 +0000] cgi.c - environment variable for cgi: "PATH="
[06/Aug/2007:02:06:43 +0000] cgi.c - environment variable for cgi:
"SERVER_SOFTWARE=Boa/0.94.14rc21"
[06/Aug/2007:02:06:43 +0000] cgi.c - environment variable for cgi:
"SERVER_NAME=localhost.localdomain"
[06/Aug/2007:02:06:43 +0000] cgi.c - environment variable for cgi:
"GATEWAY_INTERFACE=CGI/1.1"
[06/Aug/2007:02:06:43 +0000] cgi.c - environment variable for cgi: "SERVER_PORT=80"
[06/Aug/2007:02:06:43 +0000] cgi.c - environment variable for cgi:
"SERVER_ADMIN=root@localhost"
...
----------
Comment 3 Matthias Saou 2007-08-06 06:50:28 EDT
Good catch! I've applied your patch to the devel branch and rebuilt the package.
I don't think it's worth issuing an F7 update for this, though. And also, have
you tried lighttpd? It has much better CGI/FastCGI support than boa IMHO.
Comment 4 Jose Pedro Oliveira 2007-08-11 14:34:15 EDT
(In reply to comment #3)
> Good catch! I've applied your patch to the devel branch and rebuilt the package.

Thanks Matthias.

> I don't think it's worth issuing an F7 update for this, though.

Good enough.

> And also, have
> you tried lighttpd? It has much better CGI/FastCGI support than boa IMHO.

I'll give it a try although it appears to be a little overkill for what I want:
I just need a small footprint web server for a ARM based embedded system (Flash:
8MB).


Note You need to log in before you can comment on or make changes to this bug.