I’m trying to port an old coldbox app to 4.0.0.
I use an handler that extends a BseRest.cfc with an aroundHandler:
`
/**
- I am a new handler
*/
component extends=“BaseRest” {
// OPTIONAL HANDLER PROPERTIES
this.prehandler_only = “”;
this.prehandler_except = “”;
this.posthandler_only = “”;
this.posthandler_except = “”;
this.aroundHandler_only = “”;
this.aroundHandler_except = “”;
// REST Allowed HTTP Methods Ex: this.allowedMethods = {delete=‘POST,DELETE’,index=‘GET’}
this.allowedMethods = {};
function getter(event,rc){
var rc = event.getCollection();
writeDump(var="#rc#",label="");abort;
}
}
`
Baserest.cfc
`
/**
- I am a baserest handler
*/
component{
// OPTIONAL HANDLER PROPERTIES
this.prehandler_only = “”;
this.prehandler_except = “”;
this.posthandler_only = “”;
this.posthandler_except = “”;
this.aroundHandler_only = “”;
this.aroundHandler_except = “”;
// REST Allowed HTTP Methods Ex: this.allowedMethods = {delete=‘POST,DELETE’,index=‘GET’}
this.allowedMethods = {};
function aroundHandler(event,targetAction,eventArguments,rc,prc){
}
}
`
When I try this code I get this error:
Oopsy! Something went wrong!Event: seo:Seo.getter
Routed URL: seo/getter/
Layout: N/A (Module: )
View: N/A
Timestamp: 12/16/2014 06:09:12 PM