Copyright (C) 1999 by Steve Litt. All rights reserved. Materials from guest authors copyrighted by them and licensed for perpetual use to Troubleshooting Professional Magazine. All rights reserved to the copyright holder, except for items specifically marked otherwise (certain free software source code, GNU/GPL, etc.). All material herein provided "As-Is". User assumes all risk and responsibility for any outcome.
But now consider the webmaster not allowed physical, terminal or telnet access to the server. The CGI program can be run only from the browser. Error messages, which are sent to stderr instead of stdout, are invisible. Locations of needed interpreters such as Python and Perl are unknown. The true nature of a CGI form's transmission to the server is unknown (this is true even when you own the server).
Under these conditions you're restricted to the following two obvious testpoints:
When a reproducible problem, on a well defined system, having a reasonable amount of readable test points, is investigated using a valid Troubleshooting Process, solution is a mathematical certainty. |
What's the name of a system lacking a reasonable amount of readable test points? It's called a black box, and we all know black boxes cannot be troubleshot, only manipulated with trial and error or replaced. We *must* have a reasonable amount of readable test points.
Why in the world would the system administrator deny you, a paying customer, the telnet access so necessary to troubleshoot CGI? It's simply that telnet is a security risk so blatant that even the smartest webmaster cannot fully protect you and the others using the system from script kiddie exploits. A good way to view it is as a hockey game, with your sysadmin is the goalie. The other team consists of thousands of honest users, who do nothing but skate around and occasionally block the goalies view, and tens or hundreds of crackers determined to whack that exploit puck past the goalie. Allowing telnet is like quadrupling the size of the goalie cage. Dangerous.
Fortunately, the The CGI Troubleshooting Toolkit article later in this magazine gives you tools to replace those removed by your lack of telnet and root access. These tools are so powerful that you'll find it easier to troubleshoot than using telnet. These tools give you a clean diagnostic path to follow.