[Seaside] [BUG] WAUrl>>scheme:

Boris Popov boris at deepcovelabs.com
Thu Oct 18 17:19:52 UTC 2007


Using symbols in #serverProtocol preference breaks suppression of port
numbers in URL encoding for 80 and 443, the following test would fail,

testSymbolScheme
 url hostname: 'seaside.st'.
 url port: 80; scheme: 'http'.
 self assert: url displayString = 'http://seaside.st'.
 url port: 443; scheme: 'https'.
 self assert: url displayString = 'https://seaside.st'.
 url port: 80; scheme: #http.
 self assert: url displayString = 'http://seaside.st'.
 url port: 443; scheme: #https.
 self assert: url displayString = 'https://seaside.st'.

Interestingly enough even the setter suggests using symbols,

scheme: aSymbol
 scheme := aSymbol

While it would certainly be nice to have one kind of object there, for
backwards compatibility I suggest we allow for both,

scheme: aSymbol
 scheme := aSymbol asString

Thoughts?

-Boris

-- 
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

boris at deepcovelabs.com

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.



More information about the seaside mailing list