| Summary: | kio_cgi does not set $SCRIPT_NAME | ||
|---|---|---|---|
| Product: | [Unmaintained] kio | Reporter: | Christopher Yeleighton <giecrilj> |
| Component: | cgi | Assignee: | Cornelius Schumacher <schumacher> |
| Status: | RESOLVED UNMAINTAINED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 4.3 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
Workaround: ${SCRIPT_NAME-$0}.
There is no longer a CGI slave included in KIO, so all bugs related to this slave are now obsolete. Thanks for reporting this bug! |
Version: 4.3 (using KDE 4.3.5) OS: Linux kio_cgi is expected to be a CGI implementation. Setting $SCRIPT_NAME is mandatory, per RFC_3875. Additionally, SERVER_PROTOCOL is set to HTTP, which is bogus; it should be CGI. Reproducible: Always Steps to Reproduce: Execute the following script named test via kio_cgi: #!/usr/bin/env bash # The HTTP header followed by an empty line: echo 'Content-Type: text/plain ' # The content: echo ${SERVER_PORT-'Error: SERVER_PORT not set (4.1.15.)'} echo ${SCRIPT_NAME-'Error: SCRIPT_NAME not set (4.1.13.)'} Actual Results: Error: SERVER_PORT not set (4.1.15.) Error: SCRIPT_NAME not set (4.1.13.) HTTP Expected Results: /test CGI