Seaside Rest failure in Pharo4

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Seaside Rest failure in Pharo4

riverdusty
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
--
Gareth Cox
IT Manager/Developer
Inspired Org (PTY) Ltd
email: [hidden email]

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside Rest failure in Pharo4

Johan Brichau-2
Hi Gareth,


Will take a look asap.

Johan

On 08 Jun 2015, at 13:05, Gareth Cox <[hidden email]> 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';
    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
--
Gareth Cox
IT Manager/Developer
Inspired Org (PTY) Ltd
email: [hidden email]
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside Rest failure in Pharo4

Johan Brichau-2
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 <[hidden email]> wrote:

Hi Gareth,


Will take a look asap.

Johan

On 08 Jun 2015, at 13:05, Gareth Cox <[hidden email]> 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';
    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
--
Gareth Cox
IT Manager/Developer
Inspired Org (PTY) Ltd
email: [hidden email]
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside Rest failure in Pharo4

Johan Brichau-2

cheers
Johan

On 09 Jun 2015, at 10:41, Johan Brichau <[hidden email]> wrote:

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 <[hidden email]> wrote:

Hi Gareth,


Will take a look asap.

Johan

On 08 Jun 2015, at 13:05, Gareth Cox <[hidden email]> 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';
    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
--
Gareth Cox
IT Manager/Developer
Inspired Org (PTY) Ltd
email: [hidden email]
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside




_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside