Commit 686f9fd6 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Handled case when JID are malformed. JM-234


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1664 b35dd754-fafc-0310-a699-88a17e54d16e
parent b2b51ca3
......@@ -98,6 +98,18 @@ public class PresenceServlet extends HttpServlet {
// TODO Do something
}
}
catch (IllegalArgumentException e) {
if ("img".equals(type)) {
imageProvider.sendUserNotFound(request, response);
}
else if ("xml".equals(type)) {
xmlProvider.sendUserNotFound(request, response);
}
else {
Log.warn("The presence servlet received an invalid request of type: " + type);
// TODO Do something
}
}
}
protected void doPost(HttpServletRequest request, HttpServletResponse response)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment