On Sat, 4 Sep 2010, Levente Uzonyi wrote:
On Fri, 3 Sep 2010, Andreas Raab wrote:
On 9/3/2010 4:25 PM, Levente Uzonyi wrote:
And ConfigurationOfVMMaker can't load VMMaker, because there's a bug in HTTPSocket class >> #httpRequest:url:headers:content:response:. It double encodes the value of rawUrl. This prevents the code to load "Freetype-Plugin-John M McIntosh.55.mcz" because the filename contains spaces (initials shouldn't contain spaces...). Which are encoded to %20, then %20 is encoded to %2520 which results in a 404 error.
Ouch. What's the easiest way to reproduce this problem?
repository := MCHttpRepository location: 'http://source.impara.de/freetype' user: '' password: ''. repository readStreamForFileNamed: 'Freetype-Plugin-John M McIntosh.55.mcz' do: [ :contents | 'ok' ].
This should print 'ok' instead of nil. Debug it for details.
This example is even better:
HTTPSocket httpGet: 'http://source.impara.de/freetype/Freetype-Plugin-John M McIntosh.55.mcz' args: nil user: '' passwd: ''.
Levente
Levente
Cheers,
- Andreas