Jump to:
| Project: | Drupal core |
| Version: | x.y.z |
| Component: | system.module |
| Category: | task |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
it would be handy if users could sumbit error reports via a standard interface and that they will be prompted for standard issues regarding their configuration.
for example, when filing a bug, i have to submit:
* [must] version drupal
* [must] webserver (apache, iss)
* [must] php version
* [must] database (mysql, sequal,..)
* [must] OS (linux, bsd, windows)
* [opt] version webserver
* [opt] version OS
etc
(note the user might have reasons not to fill in the optionals for security reasons)
now it would be great if there was module of even a script in the drupal core that i could run to collect this data in a standard way. so all the enduser has to do is run ./show-ver.sh or surf towards http://foo.example.com/show-ver.php
i could paste this in a free form when filing a bug or to a mailinglist
and yes, it is like a sh ver for those who know cisco ios
(note, when having problems with php or webserver this wont work )
Comments
#1
Or even better, make a standard web service that returns this data then
just get the user to input the url of their site. If it can't find the
service it can just fall back to asking.
-Mark
#2
Attempting to capture what was said on the dev mailing list:
Moshe Weitzman wrote:
Bert Boerland writes:
<blockquote>
>-----Original Message-----
>> From: Slavica Jovan
>> I have a module that will provide this kind of service via
>> XML-RPC. It
>> works but it is not finished. There are some loose ends to tie up:
i would like to have a local version (calling if from a command line with php?) and an online version that could be called from the site itself and from other sites (maybe with some kind of access control list)
>> 1. Should such a service be authenticated?
>> (account/password, other?)
we (you! are making something really wonderfull here and we should check stuff that has already been invented elsewhere (bugzilla?). please dont take security to lightly here, we are sending senitive stuff. so yes:
* certificates (both client and server?) optional
* uidp/passwd with aaa
* option to see only major/minor versions
* option to disable module all together (standard)
* display waht will be sent befre sending and let user submit that (ask passwd again?)
>> 2. Should it only be callable from Drupal.org when reporting bugs?
seems like a Good Thing. i would like to have server certificates in this case for drupal.org. is there any person working @ verisign at this list? a cmd version needs to be in as well for mail and a local repository database.
>> 3. Some bits of information are hard to get, such as
>> database version
>> and OS version, without writing lots of conditional code.
yes, i see you point. i would say you could make a 80/20 here; do a uname -a and in case you dont get anthing back let the user fill in a preformted text box or a combination of drop down boxes [windows|mac] | [95,98,2000].
>> 4. What is the best way to determine the Drupal version?
>> Should we add
>> a version number to the variable table? How would it get updated?
i would say yes, every module should write its version towards this table
#3
My thinking was this:- A user of a Drupal-powered website encounters an error that appears to be Drupal-related.
- The user clicks on a link or choose a bookmark or type a URI that takes them to a Problem Report page at drupal.org.
- The user enters the URI of the website where the problem was found into a form input field on the Problem Report page and then clicks on the Submit button.
- The Problem Report page action send an XML RPC to the Get System Information RPC at the site.
- If RPC is successful, the Problem Report asks the user for a few additional details and comments, and then stores the problem report along with the System Information retrieved by the RPC.
- If the RPC fails, the user is asked for the System Information (e.g. web server, PHP version, etc.).
Comments? Suggestions?
--
Slavica
#4
Lots of talk, no code, nobody stepped forward for over half a year.
The project.module is quite usable, I mark this as "won't fix".