- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 16 Oct 2009 16:51:03 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/action In directory hutz:/tmp/cvs-serv24070/src/org/w3c/unicorn/action Modified Files: ObserveAction.java Log Message: fixed bug when no task and no document are specified Index: ObserveAction.java =================================================================== RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/action/ObserveAction.java,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- ObserveAction.java 13 Oct 2009 16:38:55 -0000 1.54 +++ ObserveAction.java 16 Oct 2009 16:51:00 -0000 1.55 @@ -214,6 +214,7 @@ resp.setContentType(aOutputModule.getMimeType() + "; charset=UTF-8"); if (!reqParams.containsKey(paramPrefix + "uri") && !reqParams.containsKey(paramPrefix + "text") && !reqParams.containsKey(paramPrefix + "file")) { + mapOfStringObject.put("current_task", Framework.getDefaultTask()); messages.add(new Message(Message.ERROR, "$message_nothing_to_validate", null)); aOutputModule.produceError( mapOfStringObject, resp.getWriter()); return;
Received on Friday, 16 October 2009 16:51:04 UTC