On May 26, 2011, at 12:06 PM, Pascal Robert wrote:

>> I'm toying with the REST stuff in JavaMonitor and ran into a problem 
>> deleting an instance.
>> 
>> This is the URL I send:
>> 
>>      GET 
>> http://[host]:[port]/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/[AppName]/deleteInstance?pw=[password]&id=[id]
> 
> Hum, look like something is wrong. The method have:
> 
>       MApplication application = (MApplication) routeObjectForKey("name");
>       deleteInstance(application, (Integer) routeObjectForKey("id"));
> 
> But "id" is not registered in the route:
> 
>        restHandler.insertRoute(new 
> ERXRoute("MApplication","/mApplications/{name:MApplication}/deleteInstance", 
> ERXRoute.Method.Get, MApplicationController.class, "deleteInstance"));
> 
> The ID should be fetched by request().numericFormValueForKey() instead of 
> routeObjectForKey().

I see. I'll try to fix this in my JavaMonitor.

Thanks.


kib

"The trouble with normal is it always gets worse."
Bruce Cockburn

Klaus Berkling
Web Application Dev. & Systems Analyst
DynEd International, Inc.
www.dyned.com | blog | @kiberkli




Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to