https://bugzilla.wikimedia.org/show_bug.cgi?id=33885

       Web browser: ---
             Bug #: 33885
           Summary: if another convert.exe is on the PATH, the webserver
                    blocks installation
           Product: MediaWiki
           Version: 1.18.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: blocker
          Priority: Unprioritized
         Component: Installation
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


1) i have a file called convert.exe on my system's PATH.
it's a popular name for an executable in the path. even MS have one.

2) if my convert.exe program is being run, it brings up GUI.

3) Installer.php is running the command "convert.exe -version" to check whether
imagemagick is on the path.
$names = array( wfIsWindows() ? 'convert.exe' : 'convert' );


4) my convert.exe was activated, but the GUI is not visible since it's running
under apache. 

5) apache/php is waiting forever for the program to execute 
(why php max_execution_time was not in effect? i don't know!)

6) results: 
 a) any browser trying to run the installer hangs forever
 b) several CMD.EXE and CONVERT.EXE processes may be running in the background
endlessly.




how to recreate (why? this is pretty obvious) -
rename a GUI program -> convert.exe, put it in the PATH, and run the installer.


how to fix:
ask the user for full path for convert.exe
don't assume "convert.exe -version" belongs just to imagemagick !!!
or any other command line with a common name as "convert", for that matter.
au contraire -- imagemagick on windows doesn't necessarily adds itself to the
PATH

thanks

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to