KomHttpServer Server Bug and Fix
Torsten Bergmann
astares at gmx.de
Wed Nov 10 11:19:58 UTC 2004
Hi,
serving files with WAKom worked in previous versions but it is
not working in the new version registered on SqueakMap
(KomHttpServer Version 7.0 -> KomHttpServer-gk.4.mcz)
After the refactoring/repackaging there is a bug in
class ModDir>>processHttp
in the old Version the code looks like this
| filePath dir request |
request := HttpRequest current.
filePath := ModDoc fullFilePath.
...
in the new Version
| filePath dir request |
request := HttpRequest current.
filePath := self class fullFilePath.
...
The new versions sends #fullFilePath to it's class.
But there is no #fullFilePath on the class side of
ModDir. The attached changeset adds the missing method.
Hope that either Göran or Brent are able to include
it and register a fixed version on SqueakMap.
Serving files with an updated Squeak39alpha#6404 with m17n included
also doesnt work since the code in ModFile>>processHttp
now tries to create a HttpResponse from a MultiByteFileStream
instead of a StandardFileStream.
This is caused by "(FileDirectory default readOnlyFileNamed: fullFilePath)"
now returning a MultiByteFileStream in the updated image.
Currently dont know what's the best way to deal with this issue.
Thx
Torsten
--
Geschenkt: 3 Monate GMX ProMail + 3 Top-Spielfilme auf DVD
++ Jetzt kostenlos testen http://www.gmx.net/de/go/mail ++
More information about the Squeak-dev
mailing list
|