[Seaside] Seaside Rest failure in Pharo4
Johan Brichau
johan at inceptive.be
Tue Jun 9 08:41:51 UTC 2015
Gareth,
You mention that this was fixed in 3.1.3
Can you pinpoint where it mentions that this was fixed?
Afaik, this (zero-argument get methods) is broken since a long time…
Johan
> On 09 Jun 2015, at 09:32, Johan Brichau <johan at inceptive.be> wrote:
>
> Hi Gareth,
>
> I created an issue for it: https://github.com/SeasideSt/Seaside/issues/840 <https://github.com/SeasideSt/Seaside/issues/840>
>
> Will take a look asap.
>
> Johan
>
>> On 08 Jun 2015, at 13:05, Gareth Cox <gareth at inspired.org <mailto:gareth at inspired.org>> wrote:
>>
>> Hi
>>
>> I'm having a reoccurance of an error I had that was fixed in Seaside 3.1.3.
>> Fresh Pharo4, load, load Rest, create handler, create method, register, and its not found.
>> Complete code to recreate below:
>>
>> |aClass|
>> Gofer new
>> url:'http://www.smalltalkhub.com/mc/Seaside/MetacelloConfigurations/main <http://www.smalltalkhub.com/mc/Seaside/MetacelloConfigurations/main>';
>> package: 'ConfigurationOfSeaside3';
>> load.
>>
>> ((#ConfigurationOfSeaside3 asClass) project latestVersion) load; load: #('REST').
>>
>> aClass := ((#WARestfulHandler asClass) subclass: #WATestRestAPI
>> instanceVariableNames: ''
>> classVariableNames: ''
>> category: 'Seaside-Test-REST').
>>
>> aClass compile: 'get
>> <get>
>> self requestContext
>> respond: [:t1 |
>> t1 contentType: ''text/plain''.
>> t1 nextPutAll: ''test'']'.
>> (#WAAdmin asClass) register: aClass at: 'testapi'.
>>
>> (((#ZnZincServerAdaptor asClass) manager: (#WAServerManager asClass) default) port: 4000) start.
>>
>> self assert: (ZnEasy get: 'http://localhost:4000/testapi <http://localhost:4000/testapi>') isNotFound not
>> --
>> Gareth Cox
>> IT Manager/Developer
>> Inspired Org (PTY) Ltd
>> email: gareth at inspired.org <mailto:gareth at inspired.org>
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org <mailto:seaside at lists.squeakfoundation.org>
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150609/eb7a5449/attachment.htm
More information about the seaside
mailing list