[plt-scheme] untyped/dispatch broken contract?
Hi there,
The required-core-version field in Dispatch (the one that tells you
what version of PLT you need) isn't quite correct. You actually need
at least version 4.1.3.8(ish) for these new versions of Dispatch to run.
This is basically my fault. I got the version wrong when I uploaded
Dispatch 1.7. In my own defence, though, when I tried to update the
package metadata I discovered that PLaneT only lets you specify the
first three digits of the version number.
Anyway. You should be able to fix things by updating to the latest SVN
version of PLT. The only file that actually matters is:
<PLT-HOME>/collects/web-server/dispatchers/dispatch-servlets.ss
You can try doing an "svn up" on just that file to test things out.
Or, if you're not running out of SVN, you can try swapping in the
attached copy of the file:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dispatch-servlets.ss
Type: application/octet-stream
Size: 3745 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20090111/ea3e664a/attachment.obj>
-------------- next part --------------
Hope this helps. Let me know how it goes.
Cheers,
-- Dave
Tomasz Skutnik wrote:
> Hi.
>
> I've been playing with PLT web server lately, and I've tried to use
> untyped/dispatch library. However I couldn't make it work the way I
> wanted. All servlet urls handled by untyped/dispatch library are
> served ok, but no static content is served from "htdocs" directory.
> Instead server reports broken contract exception. See
> http://paste.lisp.org/display/73415 for test case and and stack trace.
>
> I use PLT scheme 4.1.3 (binary download) and "planet show" reports
> untyped/dispatch library version 1.7.
>
>> From studying source of web-server/servlet-env and experimenting with
> #:servlet-regexp parameter I think this is a bug in untyped/dispatch.
> If i drop #:servlet-regexp only hompage controller is visible (login
> controller is not), but static content is accessible. Can someone hint
> me if it's my error or a bug in untyped/dispatch?
>
> Best regards.
>
> Tomasz