Received: (qmail 4565 invoked by uid 501); 10 Sep 2000 17:27:26 -0000 Message-Id: <20000910172726.4564.qmail@locus.apache.org> Date: 10 Sep 2000 17:27:26 -0000 From: Maxym Mykhalchuk Reply-To: mihmax@yahoo.com To: submit@bugz.apache.org Subject: Action server directive DOESN'T WORK X-Send-Pr-Version: 3.110 >Number: 6512 >Category: mod_actions >Synopsis: Action server directive DOESN'T WORK >Confidential: no >Severity: critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Sun Sep 10 10:30:00 PDT 2000 >Closed-Date: Sun Sep 10 10:47:25 PDT 2000 >Last-Modified: Sun Sep 10 10:47:25 PDT 2000 >Originator: mihmax@yahoo.com >Release: 1.3.12 >Organization: >Environment: OS: Windows 98 SE (4.10.2222A) Russian >Description: I cannot create my own script-parsers, which are invoked on URLs of files with special extensions. Lines AddHandler mynewaction .my Action mynewaction "C:/my.exe" should makje Apache execute C:/my.exe "full path to .my file" on any file with .my extension >How-To-Repeat: 1. Clean Install of Win32 Apache 1.3.12 to C:\Apache 2. In conf/httpd.conf change/add only: ServerName 127.0.0.1 AddHandler mynewaction .my Action mynewaction "C:/my.exe" 3. Create my.exe in the C:/ - win32-console .exe, which writes "content-type:text/html\n\n nothing" 4. In C:/Apache/htdocs create empty file named test.my 5. Run your browser (I have russian IE 5.0) and type URL 127.0.0.1/test.my In the document root (C:/Apache/htdocs) a file called test.my (empty) is created. Then local apache >Fix: It's a bug with Action directive, I tested it with Apache 1.3.11 & 1.3.12 - all binaries Also if I write Action "/my.exe" in httpd.conf, it says >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Sun Sep 10 10:47:24 PDT 2000 State-Changed-Why: Action takes a URL fragment (eg. /cgi-bin/foo) as an argument, not a filesystem path. You need to setup your script to be executable as a CGI from a client, then set the server to use that same path. >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ] >Not Found >The requested URL /my.exe/test.my was not found on this server. > >------------------------------------------------------------------------------->Apache/1.3.12 Server at 127.0.0.1 Port 80 It seems that it appends Action's param to url, but not executes an exe!!!