}
return sessions;
}
+
protected Session getSessionForNameAndId(ContextName cn, String id,
- StringManager smClient) throws IOException {
- if ((cn == null) || !(cn.getPath().startsWith("/") ||
- cn.getPath().equals(""))) {
- String path = null;
- if (cn != null) {
- path = cn.getPath();
+ StringManager smClient) {
+
+ List<Session> sessions = getSessionsForName(cn, smClient);
+ if (sessions == null || sessions.isEmpty()) return null;
+ for(Session session : sessions) {
+ if (session.getId().equals(id)) {
+ return session;
}
- throw new IllegalArgumentException(smClient.getString(
- "managerServlet.invalidPath",
- RequestUtil.filter(path)));
- }
-
- Context ctxt = (Context) host.findChild(cn.getName());
- if (null == ctxt) {
- throw new IllegalArgumentException(smClient.getString(
- "managerServlet.noContext",
- RequestUtil.filter(cn.getDisplayName())));
}
- Session session = ctxt.getManager().findSession(id);
- return session;
+ return null;
}
/**
Add <code>session="false"</code> directive to the index page of the
ROOT web application. (kkolinko)
</fix>
+ <fix>
+ <bug>51447</bug>: Viewing a back up session in the HTML Manager web
+ application no longer changes the session to a primary session. Based on
+ a patch provided by Eiji Takahashi. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Other">