Commit Graph

76 Commits

Author SHA1 Message Date
66a41d91a3 Bumped version number to reflect roll-out of Netscape Proxy-Bug fix. 2001-05-23 21:58:09 +00:00
cb09d17df0 Added call to update-entity-headers, so that all response entities
will get updated before writing out the response, not only those that
happened to be generated via the access-resource standard method.
This might lead to redundant calls to update-entity-headers, which
might be costly, so maybe some form of last-updated time-stamp should
be kept so that update-entity-headers isn't called more than once a
second.

This fixes the problem we had with Netscape's Proxy-Server:  Since
update-entity-headers wasn't called on e.g. redirector-resource
responses, those didn't contain content-length headers.  This
triggered a bug in Netscape's Proxy-Server (version 3.5 at least),
which kept the connection open even after the explicit close by
CLASH.
2001-05-23 21:52:53 +00:00
cab25c41ba Changed date-parsing routines to be less strict when parsing date
strings, i.e. to accept junk after a valid date specification.  This
is in order to support e.g. Netscape 2.x upto 4.7x, which illegally
send an added length field in the If-Modified-Since header, i.e.:

If-Modified-Since: Wed, 28 Mar 2001 05:40:23 GMT; length=5912

This unconforming behaviour is known since 1996, yet nothing ever
changed.  How sad.
2001-04-13 11:00:50 +00:00
abd1f1ca5b Backed out the last, misguided change to entity.cl (what was I
thinking?) and rewrote the whole outbound entity stuff instead.  This
fixes some of the problems, but the whole entity stuff really needs a
complete rethink, especially w.r.t. integrating inbound and outbound
entities.  Maybe we should drop "intelligent", persistent entities
completely, and revert to dumb, transient entities, with the
intelligence lying in the resources.
2001-04-07 17:24:40 +00:00
c8b0a61a1d Let file-entities recognize the file-write-date as the last-modified
date.
2001-04-07 14:32:26 +00:00
da21cd5604 Bumped version number to 1.8.5, to indicate our progress towards
release 2.0.0.
2001-04-06 01:42:47 +00:00
c29758236a Rewrote export-directory to support automatic generation of directory
index-redirectors, fixed lambda-list to use keyword arguments, and
added support for user-selectable entity-class.
2001-04-06 01:42:15 +00:00
d432e89e49 Corrected server-product-info to show real CLASH version number. 2001-04-06 01:40:25 +00:00
995fbf131b Corrected logging of time-zone stuff. 2001-04-06 01:39:49 +00:00
69f36101c9 A session-leader doesn't have to be a resource anymore. Added
session-leader-resource for those relying on the old behaviour.
2001-03-28 05:49:10 +00:00
9eeeeda3c7 Changed print-object on URLs to take advantage of *read-eval*, when
available.
2001-03-28 02:55:33 +00:00
1301101ae6 Added indentation pattern for `process-http-headers'. 2001-03-27 14:01:30 +00:00
5c57e50d07 Extensive rewrite of parsing routines, most parsable headers in
requests and entities are now parsed.  Furthermore the whole
request-entity handling has been changed to allow lazy parsing, parsed
entity headers, and flexible choice of entities.  This is all to
support the handling of MIME multipart entities, especially
multipart/form-data.  The current revision is a first cut, and some
further rewrites are needed.
2001-03-27 14:00:34 +00:00
384e68fd84 Moved over to three-part version numbering scheme. 2001-03-25 00:22:07 +00:00
0aab94aa24 Added code to add ourself to the CMU CL' startup herald.
Added option to start-http-listener to specify the use of SO_REUSEADDR
as a socket option.
2001-03-20 23:40:33 +00:00
9d215d8f1d Added version numbering scheme for CLASH releases. 2001-03-20 23:37:10 +00:00
8802eede9c Flushed superfluous `pathname-filename'. 2001-03-19 03:52:54 +00:00
e8ac99790e Updated copyright date. 2001-03-07 00:32:56 +00:00
8160dc61cf Added with-query-args' as the equivalent of with-form-data' for
query url requests.  This is probably a stop-gap measure, until a more
general context processing framework (including session and validation
data) has been designed and implemented.
2001-02-08 18:57:55 +00:00
e265243a53 Fixed a small typo in the http-server/0.9 error handler introduced by
last commit.
2001-02-07 14:10:30 +00:00
f29dd3319e Slight optimization of entity rendering. 2001-02-07 14:08:09 +00:00
a803c62958 Improved error response generation. We now keep track of the last
request read on a connection, which allows us to generate the correct
type of response in case of an error which is handled through
`handle-server-error'.

Also added code to correctly escape text that is inserted into error
messages.  This is also a first step towards preventing cross-scripting
attacks through CLASH, although most of the code still has to be audited
for unfiltered passing through of user-supplied text.
2001-02-07 14:06:14 +00:00
57583b37ce Various fixes to case-dependent code, in order to allow CLASH to work
with Allegro CL in "modern" mode.  Although we don't think that
"modern" mode is the correct approach to case-sensitivity in CL, the
changes we made should also make it easier to work in ANSI-compliant
implementations/modes, with all the settings for readtable-case.  Note
though that this is a first best effort attempt, and so further
case-ification bugs might still remain.  YMMV.
2001-02-07 13:31:29 +00:00
88ec83c086 Optimized buffer code a bit. 2001-02-07 13:24:31 +00:00
7d628b92da Optimized read-http-line a bit in order to reduce gratuitous consing. 2001-02-07 13:23:04 +00:00
352f8b8113 Changed default server-product-info to include the Lisp implementation
as a comment.
2001-02-07 13:19:06 +00:00
a7ebbf08b3 Added required (require "comm") for LWL and added initialize-clash so
as to bring LWL support up to par with other ports.
2000-10-30 23:06:32 +00:00
5aa138df6d Added access authorization framework, added port to ACL 5. ACL 5
seems to need eval-when wrapped around certain defconstant forms when
used in the same file (maybe because of compiler-macros).
2000-10-30 23:05:23 +00:00
1853c6d6f2 Added access authorization framework that allows for flexible
validation of accesses.
2000-10-30 23:03:00 +00:00
6811f947d6 Added tool to generate ChangeLog files from CVS log entries. This
originated with MaiSQL.
2000-10-09 23:15:35 +00:00
008e29e54d Added new files, and changed to work with the new MK-DEFSYSTEM, which
doesn't import defsystem into the CL-USER package.  Also removed some
cruft.
2000-10-09 23:14:13 +00:00
4a4feed22b Added exports for new functionality and some older server and
connection stuff, as well as the driver functions
`start-http-listener' and `initialize-clash'.
2000-10-09 23:13:06 +00:00
7dde13fd51 Added some user utility functions and macros from MASH. 2000-10-09 23:05:02 +00:00
5e8ff59588 Adjusted `standard-response-body' to take the server as an additional
parameter.  This is part of an ongoing drive to restructure standard
message generation to be more modular.  Still lots to be done...
2000-10-09 22:53:46 +00:00
932ce6a843 Added `server-product-info' to provide the information for the Server
response-header.  Rewrote error handling code to provide more
information in the body.  Adjust `read-request' to pass the connection
to `parse-request', see changes in messages.cl.
2000-10-09 22:52:09 +00:00
edbfd4eaeb Added `redirector-resource' from MASH. 2000-10-09 22:47:16 +00:00
214066236a Complete rewrite of nearly all list parsing routines. This handles
quoted-strings in both key and values of key value pairs and in simple
lists correctly.  Also factored out all magic constants, added some
stuff to make this halfway efficient (profiling to be done).  This
rewrite makes partition superfluous, maybe remove this from
src/utility.cl.

Added parsing of Base64 and authorization credentials.
2000-10-09 22:46:24 +00:00
12cd9563f8 Changed request object to carry a reference to the connection object
instead of the stream, in our effort to reduce the passing around of
streams.  This is also necessary in order to allow request handlers to
check for the address and/or hostname of the connection the request
came in from.  Changed `parse-request' accordingly.  TODO: Rendering
of messages should probably change over, too.

Added handling of Authority request-header, and WWW-Authenticate
response-headers.  Changed order of response-header rendering to
follow RFC guidelines.  Added automatic generation of Server
response-header, added correct handling and automatic initialization
of Date response-header.  This should bring us closer to correct and
full handling of at least all HTTP/1.0 headers in responses.  Request
parsing of some headers remains to be done.

Added ignore declarations to quiet the compiler.
2000-10-09 22:41:11 +00:00
c883fcadf6 Added ignore declarations to quiet the compiler. Added flushing of
logfile so that the log on disk is always synced.
2000-10-09 22:10:54 +00:00
ff709e014d Added ignore declaration to quiet the compiler. 2000-10-09 22:10:01 +00:00
cdb9250ea2 Fixed small typo that didn't manifest itself. 2000-10-09 22:09:25 +00:00
0408a74b18 Added new condition for non-URL related parsing errors, used in
parsing.cl.  This needs further reworking, so that URL-related syntax
errors are subtypes of this new condition.
2000-10-09 22:08:40 +00:00
0a61c9d69a Removed superfluous check of the return value of
ext:create-inet-listener.
2000-10-09 22:02:28 +00:00
e4c22e732c Added driver for LispWorks for Windows/Linux. This hasn't received
much testing, but should work out alright.
2000-10-09 22:01:14 +00:00
dd8365ec4c Factored locking primitives out to their own implementation-dependend
files.  Part of the porting effort to LispWorks.
2000-10-09 21:55:43 +00:00
1072ffaf5a Small change that guards against flushable read-sequence in earlier
versions of CMU CL, as well as guarding against short reads by
read-sequence on socket streams, though my understanding of the
standard seems to imply that read-sequence can only return prematurely
on EOF.  But this way we shouldn't have any problems either way.
2000-07-23 13:13:00 +00:00
04c5a1dd1b Changes that bring CLASH up to extended HTTP/1.0 support:
Restructured system definition somewhat...
2000-07-22 01:25:15 +00:00
0b29e10ea3 Changes that bring CLASH up to extended HTTP/1.0 support:
Added exports for (maybe) all necessary symbols...
2000-07-22 01:23:02 +00:00
c3aa400e66 Changes that bring CLASH up to extended HTTP/1.0 support:
Added partitioning functions as a stop-gap measure while PMSF-Lib is
unreleased.  This should probably belong into parsing.cl...
2000-07-22 01:15:06 +00:00
d09b872f61 Changes that bring CLASH up to extended HTTP/1.0 support:
Moved indenting changes for CL constructs to a central place.
2000-07-22 01:11:09 +00:00