Had the same issue. After spending few hours and patching up some issues,
have the system working. Below are the list of changes.
IIS 6.0 on Win2003
Oracle - 220.127.116.11.0
Activestate - 18.104.22.1686
I setup new IIS Website at 9020 port, with following details:
root - C:\Inetpub\codestriker-1.9.10
codestriker (virtual dir) - C:\Inetpub\codestriker-1.9.10\cgi-bin
codestrikerhtml (virtual dir) - C:\Inetpub\codestriker-1.9.10\html
$query->url() was not giving complete url, it was just giving base
URL("http://myserver:9020). This was a major issue, as $query->url() was
used in multiple places. I experimented with CGI module and eventually found
$query->url(-path_info=>1) to give the correct url :
"http://myserver:9020/codestriker/codestriker.pl". I changed it in following
codestriker-1.9.10\lib\Codestriker\Action - Authenticate.pm, CreateTopic.pm
codestriker-1.9.10\lib\Codestriker\Http - Method.pm, Response.pm,
URLBuilder may need changes in more places. There were calls to
query_string->url(..), but I was not sure if those calls need changes.
2) Environment path:
perl was giving 'Can't load Oracle.dll for module DBD::Oracle'. Commented
out the line that was clearing the PATH in codestriker.pl
Changed following line in 'codestriker-1.9.10\cgi-bin\codestriker.pl'
Despite giving all permissions to 'Network Service', 'IUSR_MYSERVER' ,
execute_command in CodeStriker.pm was failing to run 'svn' client. I changed
the 'if' condition so that execute_command runs 'open3'. (The change was a
quick fix, need to put a better condition)
In CodeStriker.pm, the file path had a mix of "/" and "\" as directory
separators. Suspecting that they could be a problem, I used
'File::Spec->catfile', to get correct path. The change did not help, but am
leaving the changes as it is better for platform independence.
Attached are the changed files. I am attaching complete files, instead of
diffs (dont have tools to get the unified diff on windows). I am a newbit
to Perl, so some of my changes may not be clean.
From: David Sitsky [mailto:david.sitsky@...]
Sent: Tuesday, November 03, 2009 6:21 PM
To: Surya Challa
Subject: Re: [Codestriker-user] Win 2003 IIS - HTTP 400 Bad Request
Can you please try the 1.9.10 release and let me know how you go?
On Wed, Nov 4, 2009 at 9:48 AM, Surya Challa <schalla@...> wrote:
> Hello All:
> I followed the installation instructions and setup Codestriker 1.9.9 .
> have setup two virtual directories codestriker and codestrikerhtml
> Default Website.
> When I goto the URL :
> I get HTTP 400 Bad Request. In log files, I see that the URL tries to
> redirect to following URL :
> GET /login/form/redirect/http:/localhost/codestriker/codestriker.pl
> And that throws the 400 error (its trying to goto root directory instead
> some kind of /codestiker/.... kind of url). Did I do something wrong in
> the setup?
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> Codestriker-user mailing list