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'; 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') isNotFound not --
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Hi Gareth,
I created an issue for it: https://github.com/SeasideSt/Seaside/issues/840 Will take a look asap. Johan
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
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
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Remaining comments in https://github.com/SeasideSt/Seaside/issues/840#issuecomment-111688035 cheers Johan
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |