See? *This* is why I don't get any writing done :)
Ok, it seems that the new (as of at least 2.3) exceptions behave *just* a
little differently than the old #error:. To wit, it prepends "Error: " to
it's msgs. Naturally, this will play merry hell with an 'HTTP/1.0 401
Unauthorized' HTTP header. Which will kill AuthorizedServerAction, and,
strangely enough, EmbeddedServerAction. I'd like to know why.
Since I was using workspace.html as an example, I was naturally perturbed
;)
The fix belongs to PWS class>>serve:
....
[inst initializeFrom: aSocket.
inst getReply]
ifError: [:msg :rec | inst
report: (msg copyFrom: 8 to: msg size)
for: rec].
....
Before I submit this, I suppose that a small review of the use of
#error: in the PWS system is in order. I'm hoping that 'Error: ' is just
uniformly prepended and thus scotching it will do the trick
systematically.
(Also, I'd rather use the new #allButFirst: stuff that's acoming :))
Hope this hasn't already been fixed by someone :). If so, it hasn't made
it into 2.8a, to my knowledge (though I'm a few days behind :)).
Cheers,
Bijan.