#1 stats.cgi script

open-remind
None
5
2001-03-17
2001-03-16
Anonymous
No

The script does not show the pictures. When i look in
the error_log file of my apache server then i see the
following error:

Premature end of script headers: /home/httpd/cgi-
bin/monitord/stat_serveis.cgi
Premature end of script headers: /home/httpd/cgi-
bin/monitord/stat_nous.cgi

Discussion

    • assigned_to: nobody --> guillem
    • status: open --> open-remind
     
  • Logged In: YES
    user_id=144593

    I guess this error is caused by some error in PNG generation
    which I don't handle properly inside these CGIs...

    It would be much nicer if I detected the error condition to
    generate user-friendly text/html error messages explaining
    what happened... I'll try to reproduce this in my system and
    isolate the real problem to fix the bug, or add proper error
    handling.

    I'll also add more documentation in the next release,
    specially about CGIs. In 3.5beta release, CGIs are not very
    "admin-friendly" because I haven't documented their
    installation, use, etc. O:-)

    Thank you very much.

     
  • Logged In: YES
    user_id=144593

    How did you access the scripts? Did you authenticate
    properly? All CGIs but stat_*.cgi look for a password and if
    you don't provide one (either as a parameter or as a cookie)
    they'll ask you for it. (It's plain text password!!! Using
    this authentication method in a non-secure network without
    SSL connections is a bit dangerous, I should put this in the
    documentation later...).

    Since stat_*.cgi just die and don't generate any output when
    you don't provide a password (or use the wrong password),
    you get the "premature end of script headers" in error_log.

    Could you try this...

    http://your.server/cgi-bin/monitord/stat_nous.cgi?password=your_password

    ... please? If it works, we've isolated the problem :-) and
    I'll fix it in the next release.