Mantis - Squeak Packages
Viewing Issue Advanced Details
7285 KomHttpServer major random 02-14-09 18:00 03-04-09 01:28
pmm  
gcorriga  
normal  
assigned  
open  
none    
none  
0007285: HTTPRequest >> #networkHost might raise MNU
The following method is problematic:

networkHost

    ^self propertyAt: #networkHost ifAbsentPut:
        [NetworkHost fromString: self host].

There is an issue when self host returns nil then NetworkHost fromString: returns an MNU:

Notes
(0013001)
gcorriga   
03-04-09 01:28   
I didn't have the time to replicate this bug yet, but I note that according to the HTTP/1.1 RFC, every request should alway have a Host: header field (see RFC 2616 section 14.22 ). In such a case Kom should probably send a 400 Bad Request response withouth getting at all into this method.