Projet

Général

Profil

« Précédent | Suivant » 

Révision 675e977d

Ajouté par Remy Menard il y a plus de 11 ans

  • ID 675e977d6baa946d508d77b8721408cbe9155a8e
  • Parent 8fd1d584

Version 2.1

  • All:
    - a few bugs fixed!
  • DELTa:
    - uses the new DS events
  • EpcisPHI, DiscoveryPHI:
    - improves the session management
    - the account creation by the web interface adds access policies to
    the interface ("admin" policies), this is always done even if a
    corresponding account exists in the LDAP directory
  • YPSilon:
    - simplifies the service
  • Installer:
    - upgrades Apache Tomcat to 7.0.42

Voir les différences:

ETa/EpcisPHI/src/main/webapp/index.jsp
<%@page import="fr.unicaen.iota.epcisphi.utils.SessionLoader"%>
<%@page import="com.sun.xacml.ctx.Result"%>
<%@page import="fr.unicaen.iota.epcisphi.utils.PEPRequester"%>
<%@page import="fr.unicaen.iota.ypsilon.client.model.UserInfoOut"%>
<%
String sessionId = (String) session.getAttribute("session-id");
String sid = (String) request.getParameter("sid");
String uid = (String) request.getParameter("uid");
if (sid != null) {
String message = SessionLoader.loadSession(sid, uid, session);
if (!message.equals("")) {
request.setAttribute("message", message);
String cert = (session.getAttribute("cert") != null)? (String) session.getAttribute("cert") : null;
if (cert == null) {
%>
<jsp:include page="Login.jsp" />
<%
return;
}
} else if (sessionId == null) {
%>
<jsp:include page="Login.jsp" />
<%
return;
}
return;
}
%>
<%@page import="fr.unicaen.iota.epcisphi.xacml.ihm.Module"%>
<%@page import="fr.unicaen.iota.epcisphi.utils.HTMLUtilities"%>
<%@page import="java.util.Date"%>
......
<div class="treeTitle">&nbsp;</div>
<jsp:include page="dialogs.jsp" />
<%
UserInfoOut uInfo = (UserInfoOut) session.getAttribute("uInfo");
User u = new User(uInfo.getUserID(), uInfo.getOwnerID());
if (PEPRequester.checkAccess(u, "superadmin") != Result.DECISION_PERMIT) {
User user = (User) session.getAttribute("user");
if (PEPRequester.checkAccess(user, "superadmin") != Result.DECISION_PERMIT) {
%>
<jsp:include page="policyList.jsp" />
<% } else {
<%
}
else {
%>
<jsp:include page="rootMenu.jsp" />
<%
return;
}
String userId = ((UserInfoOut) session.getAttribute("uInfo")).getUserID();
String ownerId = ((UserInfoOut) session.getAttribute("uInfo")).getOwnerID();
return;
}
String userId = user.getUserID();
String ownerId = user.getOwnerID();
%>
<div class="account">
<div class="logout"><a href="RootAccountAuth?action=logout">[ logout ]</a></div>

Formats disponibles : Unified diff