Nuiton-web-commits
Threads by month
- ----- 2026 -----
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
October 2012
- 2 participants
- 28 discussions
r237 - in trunk: . nuiton-gwt nuiton-rss nuiton-security nuiton-struts2 nuiton-tapestry nuiton-web
by echatellier@users.nuiton.org Oct. 31, 2012
by echatellier@users.nuiton.org Oct. 31, 2012
Oct. 31, 2012
Author: echatellier
Date: 2012-10-31 09:58:23 +0100 (Wed, 31 Oct 2012)
New Revision: 237
Url: http://nuiton.org/repositories/revision/nuiton-web/237
Log:
Oops, wrong version name
Modified:
trunk/nuiton-gwt/pom.xml
trunk/nuiton-rss/pom.xml
trunk/nuiton-security/pom.xml
trunk/nuiton-struts2/pom.xml
trunk/nuiton-tapestry/pom.xml
trunk/nuiton-web/pom.xml
trunk/pom.xml
Modified: trunk/nuiton-gwt/pom.xml
===================================================================
--- trunk/nuiton-gwt/pom.xml 2012-10-30 16:26:37 UTC (rev 236)
+++ trunk/nuiton-gwt/pom.xml 2012-10-31 08:58:23 UTC (rev 237)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.nuiton.web</groupId>
<artifactId>nuiton-web-parent</artifactId>
- <version>1.12</version>
+ <version>1.12-SNAPSHOT</version>
</parent>
<artifactId>nuiton-gwt</artifactId>
Modified: trunk/nuiton-rss/pom.xml
===================================================================
--- trunk/nuiton-rss/pom.xml 2012-10-30 16:26:37 UTC (rev 236)
+++ trunk/nuiton-rss/pom.xml 2012-10-31 08:58:23 UTC (rev 237)
@@ -33,7 +33,7 @@
<parent>
<groupId>org.nuiton.web</groupId>
<artifactId>nuiton-web-parent</artifactId>
- <version>1.12</version>
+ <version>1.12-SNAPSHOT</version>
</parent>
<artifactId>nuiton-rss</artifactId>
Modified: trunk/nuiton-security/pom.xml
===================================================================
(Binary files differ)
Modified: trunk/nuiton-struts2/pom.xml
===================================================================
--- trunk/nuiton-struts2/pom.xml 2012-10-30 16:26:37 UTC (rev 236)
+++ trunk/nuiton-struts2/pom.xml 2012-10-31 08:58:23 UTC (rev 237)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.nuiton.web</groupId>
<artifactId>nuiton-web-parent</artifactId>
- <version>1.12</version>
+ <version>1.12-SNAPSHOT</version>
</parent>
<artifactId>nuiton-struts2</artifactId>
Modified: trunk/nuiton-tapestry/pom.xml
===================================================================
--- trunk/nuiton-tapestry/pom.xml 2012-10-30 16:26:37 UTC (rev 236)
+++ trunk/nuiton-tapestry/pom.xml 2012-10-31 08:58:23 UTC (rev 237)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.nuiton.web</groupId>
<artifactId>nuiton-web-parent</artifactId>
- <version>1.12</version>
+ <version>1.12-SNAPSHOT</version>
</parent>
<artifactId>nuiton-tapestry</artifactId>
Modified: trunk/nuiton-web/pom.xml
===================================================================
--- trunk/nuiton-web/pom.xml 2012-10-30 16:26:37 UTC (rev 236)
+++ trunk/nuiton-web/pom.xml 2012-10-31 08:58:23 UTC (rev 237)
@@ -11,7 +11,7 @@
<parent>
<groupId>org.nuiton.web</groupId>
<artifactId>nuiton-web-parent</artifactId>
- <version>1.12</version>
+ <version>1.12-SNAPSHOT</version>
</parent>
<artifactId>nuiton-web</artifactId>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2012-10-30 16:26:37 UTC (rev 236)
+++ trunk/pom.xml 2012-10-31 08:58:23 UTC (rev 237)
@@ -15,7 +15,7 @@
<groupId>org.nuiton.web</groupId>
<artifactId>nuiton-web-parent</artifactId>
- <version>1.12</version>
+ <version>1.12-SNAPSHOT</version>
<modules>
<module>nuiton-web</module>
1
0
r236 - in trunk: . nuiton-gwt nuiton-rss nuiton-security nuiton-struts2 nuiton-tapestry nuiton-web
by echatellier@users.nuiton.org Oct. 30, 2012
by echatellier@users.nuiton.org Oct. 30, 2012
Oct. 30, 2012
Author: echatellier
Date: 2012-10-30 17:26:37 +0100 (Tue, 30 Oct 2012)
New Revision: 236
Url: http://nuiton.org/repositories/revision/nuiton-web/236
Log:
[maven-release-plugin] prepare for next development iteration
Modified:
trunk/nuiton-gwt/pom.xml
trunk/nuiton-rss/pom.xml
trunk/nuiton-security/pom.xml
trunk/nuiton-struts2/pom.xml
trunk/nuiton-tapestry/pom.xml
trunk/nuiton-web/pom.xml
trunk/pom.xml
Modified: trunk/nuiton-gwt/pom.xml
===================================================================
--- trunk/nuiton-gwt/pom.xml 2012-10-30 16:26:34 UTC (rev 235)
+++ trunk/nuiton-gwt/pom.xml 2012-10-30 16:26:37 UTC (rev 236)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.nuiton.web</groupId>
<artifactId>nuiton-web-parent</artifactId>
- <version>1.12-beta-1</version>
+ <version>1.12</version>
</parent>
<artifactId>nuiton-gwt</artifactId>
Modified: trunk/nuiton-rss/pom.xml
===================================================================
--- trunk/nuiton-rss/pom.xml 2012-10-30 16:26:34 UTC (rev 235)
+++ trunk/nuiton-rss/pom.xml 2012-10-30 16:26:37 UTC (rev 236)
@@ -33,7 +33,7 @@
<parent>
<groupId>org.nuiton.web</groupId>
<artifactId>nuiton-web-parent</artifactId>
- <version>1.12-beta-1</version>
+ <version>1.12</version>
</parent>
<artifactId>nuiton-rss</artifactId>
Modified: trunk/nuiton-security/pom.xml
===================================================================
(Binary files differ)
Modified: trunk/nuiton-struts2/pom.xml
===================================================================
--- trunk/nuiton-struts2/pom.xml 2012-10-30 16:26:34 UTC (rev 235)
+++ trunk/nuiton-struts2/pom.xml 2012-10-30 16:26:37 UTC (rev 236)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.nuiton.web</groupId>
<artifactId>nuiton-web-parent</artifactId>
- <version>1.12-beta-1</version>
+ <version>1.12</version>
</parent>
<artifactId>nuiton-struts2</artifactId>
Modified: trunk/nuiton-tapestry/pom.xml
===================================================================
--- trunk/nuiton-tapestry/pom.xml 2012-10-30 16:26:34 UTC (rev 235)
+++ trunk/nuiton-tapestry/pom.xml 2012-10-30 16:26:37 UTC (rev 236)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.nuiton.web</groupId>
<artifactId>nuiton-web-parent</artifactId>
- <version>1.12-beta-1</version>
+ <version>1.12</version>
</parent>
<artifactId>nuiton-tapestry</artifactId>
Modified: trunk/nuiton-web/pom.xml
===================================================================
--- trunk/nuiton-web/pom.xml 2012-10-30 16:26:34 UTC (rev 235)
+++ trunk/nuiton-web/pom.xml 2012-10-30 16:26:37 UTC (rev 236)
@@ -11,7 +11,7 @@
<parent>
<groupId>org.nuiton.web</groupId>
<artifactId>nuiton-web-parent</artifactId>
- <version>1.12-beta-1</version>
+ <version>1.12</version>
</parent>
<artifactId>nuiton-web</artifactId>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2012-10-30 16:26:34 UTC (rev 235)
+++ trunk/pom.xml 2012-10-30 16:26:37 UTC (rev 236)
@@ -15,7 +15,7 @@
<groupId>org.nuiton.web</groupId>
<artifactId>nuiton-web-parent</artifactId>
- <version>1.12-beta-1</version>
+ <version>1.12</version>
<modules>
<module>nuiton-web</module>
@@ -337,11 +337,11 @@
<!-- ************************************************************* -->
<scm>
- <connection>scm:svn:http://svn.nuiton.org/svn/nuiton-web/tags/nuiton-web-1.12-beta-1</connection>
+ <connection>scm:svn:http://svn.nuiton.org/svn/nuiton-web/trunk</connection>
<developerConnection>
- scm:svn:http://svn.nuiton.org/svn/nuiton-web/tags/nuiton-web-1.12-beta-1
+ scm:svn:http://svn.nuiton.org/svn/nuiton-web/trunk
</developerConnection>
- <url>http://www.nuiton.org/repositories/browse/nuiton-web/tags/nuiton-web-1.12-b…</url>
+ <url>http://www.nuiton.org/repositories/browse/nuiton-web/trunk</url>
</scm>
<distributionManagement>
1
0
Oct. 30, 2012
Author: echatellier
Date: 2012-10-30 17:26:34 +0100 (Tue, 30 Oct 2012)
New Revision: 235
Url: http://nuiton.org/repositories/revision/nuiton-web/235
Log:
[maven-release-plugin] copy for tag nuiton-web-1.12-beta-1
Added:
tags/nuiton-web-1.12-beta-1/
Property changes on: tags/nuiton-web-1.12-beta-1
___________________________________________________________________
Added: svn:ignore
+ target
*.ipr
*.iws
*.iml
.project
.classpath
.settings
*.log
nbactions.xml
Added: svn:mergeinfo
+ /branches/nuiton-web-1.11-security:210-222
1
0
r234 - in trunk: . nuiton-gwt nuiton-rss nuiton-security nuiton-struts2 nuiton-tapestry nuiton-web
by echatellier@users.nuiton.org Oct. 30, 2012
by echatellier@users.nuiton.org Oct. 30, 2012
Oct. 30, 2012
Author: echatellier
Date: 2012-10-30 17:26:31 +0100 (Tue, 30 Oct 2012)
New Revision: 234
Url: http://nuiton.org/repositories/revision/nuiton-web/234
Log:
[maven-release-plugin] prepare release nuiton-web-1.12-beta-1
Modified:
trunk/nuiton-gwt/pom.xml
trunk/nuiton-rss/pom.xml
trunk/nuiton-security/pom.xml
trunk/nuiton-struts2/pom.xml
trunk/nuiton-tapestry/pom.xml
trunk/nuiton-web/pom.xml
trunk/pom.xml
Modified: trunk/nuiton-gwt/pom.xml
===================================================================
--- trunk/nuiton-gwt/pom.xml 2012-10-30 16:12:15 UTC (rev 233)
+++ trunk/nuiton-gwt/pom.xml 2012-10-30 16:26:31 UTC (rev 234)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.nuiton.web</groupId>
<artifactId>nuiton-web-parent</artifactId>
- <version>1.12-SNAPSHOT</version>
+ <version>1.12-beta-1</version>
</parent>
<artifactId>nuiton-gwt</artifactId>
Modified: trunk/nuiton-rss/pom.xml
===================================================================
--- trunk/nuiton-rss/pom.xml 2012-10-30 16:12:15 UTC (rev 233)
+++ trunk/nuiton-rss/pom.xml 2012-10-30 16:26:31 UTC (rev 234)
@@ -33,7 +33,7 @@
<parent>
<groupId>org.nuiton.web</groupId>
<artifactId>nuiton-web-parent</artifactId>
- <version>1.12-SNAPSHOT</version>
+ <version>1.12-beta-1</version>
</parent>
<artifactId>nuiton-rss</artifactId>
Modified: trunk/nuiton-security/pom.xml
===================================================================
(Binary files differ)
Modified: trunk/nuiton-struts2/pom.xml
===================================================================
--- trunk/nuiton-struts2/pom.xml 2012-10-30 16:12:15 UTC (rev 233)
+++ trunk/nuiton-struts2/pom.xml 2012-10-30 16:26:31 UTC (rev 234)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.nuiton.web</groupId>
<artifactId>nuiton-web-parent</artifactId>
- <version>1.12-SNAPSHOT</version>
+ <version>1.12-beta-1</version>
</parent>
<artifactId>nuiton-struts2</artifactId>
Modified: trunk/nuiton-tapestry/pom.xml
===================================================================
--- trunk/nuiton-tapestry/pom.xml 2012-10-30 16:12:15 UTC (rev 233)
+++ trunk/nuiton-tapestry/pom.xml 2012-10-30 16:26:31 UTC (rev 234)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.nuiton.web</groupId>
<artifactId>nuiton-web-parent</artifactId>
- <version>1.12-SNAPSHOT</version>
+ <version>1.12-beta-1</version>
</parent>
<artifactId>nuiton-tapestry</artifactId>
Modified: trunk/nuiton-web/pom.xml
===================================================================
--- trunk/nuiton-web/pom.xml 2012-10-30 16:12:15 UTC (rev 233)
+++ trunk/nuiton-web/pom.xml 2012-10-30 16:26:31 UTC (rev 234)
@@ -11,7 +11,7 @@
<parent>
<groupId>org.nuiton.web</groupId>
<artifactId>nuiton-web-parent</artifactId>
- <version>1.12-SNAPSHOT</version>
+ <version>1.12-beta-1</version>
</parent>
<artifactId>nuiton-web</artifactId>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2012-10-30 16:12:15 UTC (rev 233)
+++ trunk/pom.xml 2012-10-30 16:26:31 UTC (rev 234)
@@ -15,7 +15,7 @@
<groupId>org.nuiton.web</groupId>
<artifactId>nuiton-web-parent</artifactId>
- <version>1.12-SNAPSHOT</version>
+ <version>1.12-beta-1</version>
<modules>
<module>nuiton-web</module>
@@ -337,11 +337,11 @@
<!-- ************************************************************* -->
<scm>
- <connection>scm:svn:http://svn.nuiton.org/svn/nuiton-web/trunk</connection>
+ <connection>scm:svn:http://svn.nuiton.org/svn/nuiton-web/tags/nuiton-web-1.12-beta-1</connection>
<developerConnection>
- scm:svn:http://svn.nuiton.org/svn/nuiton-web/trunk
+ scm:svn:http://svn.nuiton.org/svn/nuiton-web/tags/nuiton-web-1.12-beta-1
</developerConnection>
- <url>http://www.nuiton.org/repositories/browse/nuiton-web/trunk</url>
+ <url>http://www.nuiton.org/repositories/browse/nuiton-web/tags/nuiton-web-1.12-b…</url>
</scm>
<distributionManagement>
1
0
r233 - in trunk: nuiton-rss/src/license nuiton-security/src/main/resources/WEB-INF/security
by echatellier@users.nuiton.org Oct. 30, 2012
by echatellier@users.nuiton.org Oct. 30, 2012
Oct. 30, 2012
Author: echatellier
Date: 2012-10-30 17:12:15 +0100 (Tue, 30 Oct 2012)
New Revision: 233
Url: http://nuiton.org/repositories/revision/nuiton-web/233
Log:
Fix headers
Modified:
trunk/nuiton-rss/src/license/THIRD-PARTY.properties
trunk/nuiton-security/src/main/resources/WEB-INF/security/login.jsp
trunk/nuiton-security/src/main/resources/WEB-INF/security/role-permissions.jsp
trunk/nuiton-security/src/main/resources/WEB-INF/security/role.jsp
trunk/nuiton-security/src/main/resources/WEB-INF/security/user-roles.jsp
trunk/nuiton-security/src/main/resources/WEB-INF/security/user.jsp
Modified: trunk/nuiton-rss/src/license/THIRD-PARTY.properties
===================================================================
--- trunk/nuiton-rss/src/license/THIRD-PARTY.properties 2012-10-30 07:44:27 UTC (rev 232)
+++ trunk/nuiton-rss/src/license/THIRD-PARTY.properties 2012-10-30 16:12:15 UTC (rev 233)
@@ -1,7 +1,6 @@
# Generated by org.codehaus.mojo.license.AddThirdPartyMojo
#-------------------------------------------------------------------------------
# Already used licenses in project :
-# - Apache Software License Like
# - BSD License
# - BSD style
# - COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
@@ -11,13 +10,13 @@
# - Lesser General Public License (LPGL)
# - Lesser General Public License (LPGL) v 2.1
# - MIT License
+# - Similar to Apache License but with the acknowledgment clause removed
# - Sun Microsystems, Inc. Binary Code License Agreement for the JDK 5.0
# - The Apache Software License, Version 2.0
#-------------------------------------------------------------------------------
# Please fill the missing licenses for dependencies :
#
#
-#Sun Feb 19 12:50:29 CET 2012
+#Wed Oct 24 14:20:44 CEST 2012
commons-primitives--commons-primitives--1.0=The Apache Software License, Version 2.0
javax.servlet--servlet-api--2.5=Sun Microsystems, Inc. Binary Code License Agreement for the JDK 5.0
-org.jdom--jdom--1.1=Apache Software License Like
Modified: trunk/nuiton-security/src/main/resources/WEB-INF/security/login.jsp
===================================================================
--- trunk/nuiton-security/src/main/resources/WEB-INF/security/login.jsp 2012-10-30 07:44:27 UTC (rev 232)
+++ trunk/nuiton-security/src/main/resources/WEB-INF/security/login.jsp 2012-10-30 16:12:15 UTC (rev 233)
@@ -1,12 +1,24 @@
<%--
#%L
- SGQ :: Web
+ Nuiton Web :: Nuiton Security
$Id:$
$HeadURL:$
%%
- Copyright (C) 2012 Herboristerie Cailleau
+ Copyright (C) 2012 CodeLutin, Chatellier Eric
%%
- Herboristerie Cailleau - Tous droits réservés
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Lesser Public License for more details.
+
+ You should have received a copy of the GNU General Lesser Public
+ License along with this program. If not, see
+ <http://www.gnu.org/licenses/lgpl-3.0.html>.
#L%
--%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
@@ -32,4 +44,4 @@
</s:form>
</div>
</body>
-</html>
\ No newline at end of file
+</html>
Modified: trunk/nuiton-security/src/main/resources/WEB-INF/security/role-permissions.jsp
===================================================================
--- trunk/nuiton-security/src/main/resources/WEB-INF/security/role-permissions.jsp 2012-10-30 07:44:27 UTC (rev 232)
+++ trunk/nuiton-security/src/main/resources/WEB-INF/security/role-permissions.jsp 2012-10-30 16:12:15 UTC (rev 233)
@@ -1,12 +1,24 @@
<%--
#%L
- SGQ :: Web
+ Nuiton Web :: Nuiton Security
$Id:$
$HeadURL:$
%%
- Copyright (C) 2012 Herboristerie Cailleau
+ Copyright (C) 2012 CodeLutin, Chatellier Eric
%%
- Herboristerie Cailleau - Tous droits réservés
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Lesser Public License for more details.
+
+ You should have received a copy of the GNU General Lesser Public
+ License along with this program. If not, see
+ <http://www.gnu.org/licenses/lgpl-3.0.html>.
#L%
--%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
@@ -77,4 +89,4 @@
</div>
</body>
-</html>
\ No newline at end of file
+</html>
Modified: trunk/nuiton-security/src/main/resources/WEB-INF/security/role.jsp
===================================================================
--- trunk/nuiton-security/src/main/resources/WEB-INF/security/role.jsp 2012-10-30 07:44:27 UTC (rev 232)
+++ trunk/nuiton-security/src/main/resources/WEB-INF/security/role.jsp 2012-10-30 16:12:15 UTC (rev 233)
@@ -1,12 +1,24 @@
<%--
#%L
- SGQ :: Web
+ Nuiton Web :: Nuiton Security
$Id:$
$HeadURL:$
%%
- Copyright (C) 2012 Herboristerie Cailleau
+ Copyright (C) 2012 CodeLutin, Chatellier Eric
%%
- Herboristerie Cailleau - Tous droits réservés
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Lesser Public License for more details.
+
+ You should have received a copy of the GNU General Lesser Public
+ License along with this program. If not, see
+ <http://www.gnu.org/licenses/lgpl-3.0.html>.
#L%
--%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
@@ -45,4 +57,4 @@
</s:if>
</body>
-</html>
\ No newline at end of file
+</html>
Modified: trunk/nuiton-security/src/main/resources/WEB-INF/security/user-roles.jsp
===================================================================
--- trunk/nuiton-security/src/main/resources/WEB-INF/security/user-roles.jsp 2012-10-30 07:44:27 UTC (rev 232)
+++ trunk/nuiton-security/src/main/resources/WEB-INF/security/user-roles.jsp 2012-10-30 16:12:15 UTC (rev 233)
@@ -1,12 +1,24 @@
<%--
#%L
- SGQ :: Web
+ Nuiton Web :: Nuiton Security
$Id:$
$HeadURL:$
%%
- Copyright (C) 2012 Herboristerie Cailleau
+ Copyright (C) 2012 CodeLutin, Chatellier Eric
%%
- Herboristerie Cailleau - Tous droits réservés
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Lesser Public License for more details.
+
+ You should have received a copy of the GNU General Lesser Public
+ License along with this program. If not, see
+ <http://www.gnu.org/licenses/lgpl-3.0.html>.
#L%
--%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
@@ -91,4 +103,4 @@
</div>
</div>
</body>
-</html>
\ No newline at end of file
+</html>
Modified: trunk/nuiton-security/src/main/resources/WEB-INF/security/user.jsp
===================================================================
--- trunk/nuiton-security/src/main/resources/WEB-INF/security/user.jsp 2012-10-30 07:44:27 UTC (rev 232)
+++ trunk/nuiton-security/src/main/resources/WEB-INF/security/user.jsp 2012-10-30 16:12:15 UTC (rev 233)
@@ -1,12 +1,24 @@
<%--
#%L
- SGQ :: Web
+ Nuiton Web :: Nuiton Security
$Id:$
$HeadURL:$
%%
- Copyright (C) 2012 Herboristerie Cailleau
+ Copyright (C) 2012 CodeLutin, Chatellier Eric
%%
- Herboristerie Cailleau - Tous droits réservés
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Lesser Public License for more details.
+
+ You should have received a copy of the GNU General Lesser Public
+ License along with this program. If not, see
+ <http://www.gnu.org/licenses/lgpl-3.0.html>.
#L%
--%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
@@ -46,4 +58,4 @@
</s:if>
</div>
</body>
-</html>
\ No newline at end of file
+</html>
1
0
Author: tchemit
Date: 2012-10-30 08:44:27 +0100 (Tue, 30 Oct 2012)
New Revision: 232
Url: http://nuiton.org/repositories/revision/nuiton-web/232
Log:
Update mavenpom4redmineAndCentral to 3.4.3.
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2012-10-26 11:43:59 UTC (rev 231)
+++ trunk/pom.xml 2012-10-30 07:44:27 UTC (rev 232)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.nuiton</groupId>
<artifactId>mavenpom4redmineAndCentral</artifactId>
- <version>3.4.2</version>
+ <version>3.4.3</version>
</parent>
<groupId>org.nuiton.web</groupId>
1
0
Author: tchemit
Date: 2012-10-26 13:43:59 +0200 (Fri, 26 Oct 2012)
New Revision: 231
Url: http://nuiton.org/repositories/revision/nuiton-web/231
Log:
Update mavenpom4redmineAndCentral to 3.4.2.
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2012-10-24 15:05:53 UTC (rev 230)
+++ trunk/pom.xml 2012-10-26 11:43:59 UTC (rev 231)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.nuiton</groupId>
<artifactId>mavenpom4redmineAndCentral</artifactId>
- <version>3.4</version>
+ <version>3.4.2</version>
</parent>
<groupId>org.nuiton.web</groupId>
1
0
r230 - in trunk/nuiton-security/src/main: java/org/nuiton/web/security java/org/nuiton/web/security/actions resources/WEB-INF/security resources/i18n
by echatellier@users.nuiton.org Oct. 24, 2012
by echatellier@users.nuiton.org Oct. 24, 2012
Oct. 24, 2012
Author: echatellier
Date: 2012-10-24 17:05:53 +0200 (Wed, 24 Oct 2012)
New Revision: 230
Url: http://nuiton.org/repositories/revision/nuiton-web/230
Log:
Encode password using md5 hash
Add user and role delete action
Modified:
trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecurityShiroFilter.java
trunk/nuiton-security/src/main/java/org/nuiton/web/security/TopiaSecurityRealm.java
trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/RoleAction.java
trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/UserAction.java
trunk/nuiton-security/src/main/resources/WEB-INF/security/login.jsp
trunk/nuiton-security/src/main/resources/WEB-INF/security/role-permissions.jsp
trunk/nuiton-security/src/main/resources/WEB-INF/security/role.jsp
trunk/nuiton-security/src/main/resources/WEB-INF/security/user-roles.jsp
trunk/nuiton-security/src/main/resources/WEB-INF/security/user.jsp
trunk/nuiton-security/src/main/resources/i18n/nuiton-security_en_GB.properties
trunk/nuiton-security/src/main/resources/i18n/nuiton-security_fr_FR.properties
Modified: trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecurityShiroFilter.java
===================================================================
--- trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecurityShiroFilter.java 2012-10-24 12:43:58 UTC (rev 229)
+++ trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecurityShiroFilter.java 2012-10-24 15:05:53 UTC (rev 230)
@@ -59,7 +59,7 @@
public static final String ROOT_CONTEXT_CONTEXT = SecurityShiroFilter.class.getName() + "#" + TopiaContext.class.getName();
- protected static final String ANON_LOGIN = "anonymous";
+ public static final String ANON_LOGIN = "anonymous";
public static final String SESSION_SAVED_URL = "savedUrl";
Modified: trunk/nuiton-security/src/main/java/org/nuiton/web/security/TopiaSecurityRealm.java
===================================================================
--- trunk/nuiton-security/src/main/java/org/nuiton/web/security/TopiaSecurityRealm.java 2012-10-24 12:43:58 UTC (rev 229)
+++ trunk/nuiton-security/src/main/java/org/nuiton/web/security/TopiaSecurityRealm.java 2012-10-24 15:05:53 UTC (rev 230)
@@ -34,6 +34,7 @@
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.SimpleAuthenticationInfo;
import org.apache.shiro.authc.UsernamePasswordToken;
+import org.apache.shiro.authc.credential.CredentialsMatcher;
import org.apache.shiro.authz.AuthorizationInfo;
import org.apache.shiro.authz.SimpleAuthorizationInfo;
import org.apache.shiro.realm.AuthorizingRealm;
@@ -42,9 +43,10 @@
import org.nuiton.topia.TopiaException;
import org.nuiton.topia.TopiaRuntimeException;
import org.nuiton.util.ApplicationConfig;
+import org.nuiton.util.StringUtil;
import org.nuiton.web.SecurityDAOHelper;
-public class TopiaSecurityRealm extends AuthorizingRealm {
+public class TopiaSecurityRealm extends AuthorizingRealm implements CredentialsMatcher {
private static final Log log = LogFactory.getLog(TopiaSecurityRealm.class);
@@ -55,9 +57,21 @@
public TopiaSecurityRealm(TopiaContext rootContext, ApplicationConfig config) {
this.rootContext = rootContext;
this.config = config;
+
+ setCredentialsMatcher(this);
}
@Override
+ public boolean doCredentialsMatch(AuthenticationToken token, AuthenticationInfo info) {
+ char[] tokenCredentials = (char[]) token.getCredentials();
+ String submittedPassword = String.valueOf(tokenCredentials);
+ String submittedHashedPassword = StringUtil.encodeMD5(submittedPassword);
+
+ String expectedHashedPassword = (String) info.getCredentials();
+ return expectedHashedPassword.equals(submittedHashedPassword);
+ }
+
+ @Override
protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {
SimpleAuthorizationInfo result = null;
@@ -162,7 +176,7 @@
if (securityUser != null) {
if (login.equals(SecurityShiroFilter.ANON_LOGIN)) {
result = new SimpleAuthenticationInfo(securityUser.getLogin(),
- "", getName());
+ StringUtil.encodeMD5(""), getName());
} else {
result = new SimpleAuthenticationInfo(securityUser.getLogin(),
securityUser.getPassword(), getName());
Modified: trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/RoleAction.java
===================================================================
--- trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/RoleAction.java 2012-10-24 12:43:58 UTC (rev 229)
+++ trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/RoleAction.java 2012-10-24 15:05:53 UTC (rev 230)
@@ -26,6 +26,8 @@
package org.nuiton.web.security.actions;
import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.nuiton.topia.TopiaContext;
import org.nuiton.topia.TopiaException;
import org.nuiton.topia.TopiaRuntimeException;
@@ -39,6 +41,8 @@
/** serialVersionUID. */
private static final long serialVersionUID = 1L;
+ private static final Log log = LogFactory.getLog(RoleAction.class);
+
protected SecurityRoleDAO securityRoleDAO;
protected SecurityRole role;
@@ -48,7 +52,10 @@
String roleId = getParameter("roleId");
if (StringUtils.isNotBlank(roleId)) {
try {
+ TopiaContext transaction = rootContext.beginTransaction();
+ securityRoleDAO = SecurityDAOHelper.getSecurityRoleDAO(transaction);
role = securityRoleDAO.findByTopiaId(roleId);
+ transaction.closeContext();
} catch (TopiaException ex) {
throw new TopiaRuntimeException(ex);
}
@@ -59,6 +66,27 @@
return role;
}
+ public String delete() throws Exception {
+ try {
+ String roleId = getParameter("roleId");
+ if (StringUtils.isNotBlank(roleId)) {
+ TopiaContext transaction = rootContext.beginTransaction();
+ securityRoleDAO = SecurityDAOHelper.getSecurityRoleDAO(transaction);
+ SecurityRole role = securityRoleDAO.findByTopiaId(roleId);
+ securityRoleDAO.delete(role);
+ transaction.commitTransaction();
+ transaction.closeContext();
+ }
+
+ } catch (Exception ex) {
+ if (log.isErrorEnabled()) {
+ log.error("Can't delete role", ex);
+ }
+ }
+
+ return SUCCESS;
+ }
+
@Override
public String execute() throws Exception {
String result = super.execute();
@@ -66,10 +94,10 @@
try {
TopiaContext transaction = rootContext.beginTransaction();
securityRoleDAO = SecurityDAOHelper.getSecurityRoleDAO(transaction);
- if (role.getTopiaId() == null) {
- securityRoleDAO.create(role);
+ if (getRole().getTopiaId() == null) {
+ securityRoleDAO.create(getRole());
} else {
- securityRoleDAO.update(role);
+ securityRoleDAO.update(getRole());
}
transaction.commitTransaction();
transaction.closeContext();
Modified: trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/UserAction.java
===================================================================
--- trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/UserAction.java 2012-10-24 12:43:58 UTC (rev 229)
+++ trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/UserAction.java 2012-10-24 15:05:53 UTC (rev 230)
@@ -24,10 +24,14 @@
package org.nuiton.web.security.actions;
+import static org.nuiton.i18n.I18n._;
import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.nuiton.topia.TopiaContext;
import org.nuiton.topia.TopiaException;
import org.nuiton.topia.TopiaRuntimeException;
+import org.nuiton.util.StringUtil;
import org.nuiton.web.SecurityDAOHelper;
import org.nuiton.web.security.SecurityUser;
import org.nuiton.web.security.SecurityUserDAO;
@@ -38,16 +42,25 @@
/** serialVersionUID. */
private static final long serialVersionUID = 1L;
+ private static final Log log = LogFactory.getLog(UserAction.class);
+
protected SecurityUserDAO securityUserDAO;
protected SecurityUser user;
+ protected String password;
+
+ protected String confirm;
+
public SecurityUser getUser() {
if (user == null) {
String roleId = getParameter("userId");
if (StringUtils.isNotBlank(roleId)) {
try {
+ TopiaContext transaction = rootContext.beginTransaction();
+ securityUserDAO = SecurityDAOHelper.getSecurityUserDAO(transaction);
user = securityUserDAO.findByTopiaId(roleId);
+ transaction.closeContext();
} catch (TopiaException ex) {
throw new TopiaRuntimeException(ex);
}
@@ -58,13 +71,56 @@
return user;
}
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ public void setConfirm(String confirm) {
+ this.confirm = confirm;
+ }
+
+ public String delete() throws Exception {
+ try {
+ String roleId = getParameter("userId");
+ if (StringUtils.isNotBlank(roleId)) {
+ TopiaContext transaction = rootContext.beginTransaction();
+ securityUserDAO = SecurityDAOHelper.getSecurityUserDAO(transaction);
+ SecurityUser user = securityUserDAO.findByTopiaId(roleId);
+ securityUserDAO.delete(user);
+ transaction.commitTransaction();
+ transaction.closeContext();
+ }
+ } catch (Exception ex) {
+ if (log.isErrorEnabled()) {
+ log.error("Can't delete user", ex);
+ }
+ }
+
+ return SUCCESS;
+ }
+
@Override
+ public void validate() {
+ if (StringUtils.isNotBlank(password)) {
+ if (!password.equals(confirm)) {
+ addActionError(_("Les mots de passes ne sont pas identiques !"));
+ }
+ }
+ }
+
+ @Override
public String execute() throws Exception {
String result = super.execute();
try {
TopiaContext transaction = rootContext.beginTransaction();
securityUserDAO = SecurityDAOHelper.getSecurityUserDAO(transaction);
+
+ SecurityUser user = getUser();
+ if (StringUtils.isNotBlank(password)) {
+ String md5Password = StringUtil.encodeMD5(password);
+ user.setPassword(md5Password);
+ }
if (user.getTopiaId() == null) {
securityUserDAO.create(user);
} else {
Modified: trunk/nuiton-security/src/main/resources/WEB-INF/security/login.jsp
===================================================================
--- trunk/nuiton-security/src/main/resources/WEB-INF/security/login.jsp 2012-10-24 12:43:58 UTC (rev 229)
+++ trunk/nuiton-security/src/main/resources/WEB-INF/security/login.jsp 2012-10-24 15:05:53 UTC (rev 230)
@@ -1,24 +1,12 @@
<%--
#%L
- Nuiton Web :: Nuiton Security
+ SGQ :: Web
$Id:$
$HeadURL:$
%%
- Copyright (C) 2012 CodeLutin, Chatellier Eric
+ Copyright (C) 2012 Herboristerie Cailleau
%%
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation, either version 3 of the
- License, or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Lesser Public License for more details.
-
- You should have received a copy of the GNU General Lesser Public
- License along with this program. If not, see
- <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ Herboristerie Cailleau - Tous droits réservés
#L%
--%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
Modified: trunk/nuiton-security/src/main/resources/WEB-INF/security/role-permissions.jsp
===================================================================
--- trunk/nuiton-security/src/main/resources/WEB-INF/security/role-permissions.jsp 2012-10-24 12:43:58 UTC (rev 229)
+++ trunk/nuiton-security/src/main/resources/WEB-INF/security/role-permissions.jsp 2012-10-24 15:05:53 UTC (rev 230)
@@ -1,24 +1,12 @@
<%--
#%L
- Nuiton Web :: Nuiton Security
+ SGQ :: Web
$Id:$
$HeadURL:$
%%
- Copyright (C) 2012 CodeLutin, Chatellier Eric
+ Copyright (C) 2012 Herboristerie Cailleau
%%
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation, either version 3 of the
- License, or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Lesser Public License for more details.
-
- You should have received a copy of the GNU General Lesser Public
- License along with this program. If not, see
- <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ Herboristerie Cailleau - Tous droits réservés
#L%
--%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
Modified: trunk/nuiton-security/src/main/resources/WEB-INF/security/role.jsp
===================================================================
--- trunk/nuiton-security/src/main/resources/WEB-INF/security/role.jsp 2012-10-24 12:43:58 UTC (rev 229)
+++ trunk/nuiton-security/src/main/resources/WEB-INF/security/role.jsp 2012-10-24 15:05:53 UTC (rev 230)
@@ -1,24 +1,12 @@
<%--
#%L
- Nuiton Web :: Nuiton Security
+ SGQ :: Web
$Id:$
$HeadURL:$
%%
- Copyright (C) 2012 CodeLutin, Chatellier Eric
+ Copyright (C) 2012 Herboristerie Cailleau
%%
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation, either version 3 of the
- License, or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Lesser Public License for more details.
-
- You should have received a copy of the GNU General Lesser Public
- License along with this program. If not, see
- <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ Herboristerie Cailleau - Tous droits réservés
#L%
--%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
@@ -33,14 +21,14 @@
<div class="security-div">
<h1>Sécurité</h1>
-
- <s:if test='%{product.topiaId != null}'>
- <h2>Nouveau rôle</h2>
+
+ <s:if test='%{role.topiaId != null}'>
+ <h2>Modification d'un rôle</h2>
</s:if>
<s:else>
- <h2>Modification d'un rôle</h2>
+ <h2>Nouveau rôle</h2>
</s:else>
-
+
<s:form action="role" namespace="/security" class="security-form">
<s:actionerror />
<s:hidden name="roleId" value="%{role.topiaId}" />
@@ -49,5 +37,12 @@
</s:form>
</div>
+ <s:if test='%{role.topiaId != null}'>
+ <s:a action="role!delete" namespace="/security" class="delete">
+ <s:param name="roleId"><s:property value="role.topiaId" /></s:param>
+ Supprimer
+ </s:a>
+ </s:if>
+
</body>
</html>
\ No newline at end of file
Modified: trunk/nuiton-security/src/main/resources/WEB-INF/security/user-roles.jsp
===================================================================
--- trunk/nuiton-security/src/main/resources/WEB-INF/security/user-roles.jsp 2012-10-24 12:43:58 UTC (rev 229)
+++ trunk/nuiton-security/src/main/resources/WEB-INF/security/user-roles.jsp 2012-10-24 15:05:53 UTC (rev 230)
@@ -1,24 +1,12 @@
<%--
#%L
- Nuiton Web :: Nuiton Security
+ SGQ :: Web
$Id:$
$HeadURL:$
%%
- Copyright (C) 2012 CodeLutin, Chatellier Eric
+ Copyright (C) 2012 Herboristerie Cailleau
%%
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation, either version 3 of the
- License, or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Lesser Public License for more details.
-
- You should have received a copy of the GNU General Lesser Public
- License along with this program. If not, see
- <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ Herboristerie Cailleau - Tous droits réservés
#L%
--%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
@@ -63,11 +51,16 @@
<th rowspan="<s:property value="users.size()" />" class="vertical">Utilisateurs</th>
</s:if>
<td>
- <a href="<s:url action='user!input' namespace='/security'>
- <s:param name="userId"><s:property value="topiaId" /></s:param>
- </s:url>">
+ <s:if test="login == @org.nuiton.web.security.SecurityShiroFilter@ANON_LOGIN">
<s:property value="login" />
- </a>
+ </s:if>
+ <s:else>
+ <a href="<s:url action='user!input' namespace='/security'>
+ <s:param name="userId"><s:property value="topiaId" /></s:param>
+ </s:url>">
+ <s:property value="login" />
+ </a>
+ </s:else>
</td>
<s:iterator value="roles" var="role">
<td>
Modified: trunk/nuiton-security/src/main/resources/WEB-INF/security/user.jsp
===================================================================
--- trunk/nuiton-security/src/main/resources/WEB-INF/security/user.jsp 2012-10-24 12:43:58 UTC (rev 229)
+++ trunk/nuiton-security/src/main/resources/WEB-INF/security/user.jsp 2012-10-24 15:05:53 UTC (rev 230)
@@ -1,24 +1,12 @@
<%--
#%L
- Nuiton Web :: Nuiton Security
+ SGQ :: Web
$Id:$
$HeadURL:$
%%
- Copyright (C) 2012 CodeLutin, Chatellier Eric
+ Copyright (C) 2012 Herboristerie Cailleau
%%
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation, either version 3 of the
- License, or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Lesser Public License for more details.
-
- You should have received a copy of the GNU General Lesser Public
- License along with this program. If not, see
- <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ Herboristerie Cailleau - Tous droits réservés
#L%
--%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
@@ -26,7 +14,7 @@
<%@taglib uri="/struts-tags" prefix="s" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
- <title>Secu</title>
+ <title>Sécurité</title>
</head>
<body>
@@ -34,14 +22,28 @@
<div class="security-div">
<h1>Sécurité</h1>
- <h2>Nouvel utilisateur</h2>
+ <s:if test='%{role.topiaId != null}'>
+ <h2>Modification d'un utilisateur</h2>
+ </s:if>
+ <s:else>
+ <h2>Nouveau utilisateur</h2>
+ </s:else>
+
<s:form action="user" namespace="/security" class="security-form">
<s:actionerror />
<s:hidden name="userId" value="%{user.topiaId}" />
<s:textfield label="Identifiant" name="user.login" value="%{user.login}"/>
- <s:password label="Mot de passe" name="user.password" value="%{user.password}" />
+ <s:password label="Mot de passe" name="password" />
+ <s:password label="Confirmation" name="confirm" />
<s:submit label="Valider" />
</s:form>
+
+ <s:if test='%{user.topiaId != null}'>
+ <s:a action="user!delete" namespace="/security" class="delete">
+ <s:param name="userId"><s:property value="user.topiaId" /></s:param>
+ Supprimer
+ </s:a>
+ </s:if>
</div>
</body>
</html>
\ No newline at end of file
Modified: trunk/nuiton-security/src/main/resources/i18n/nuiton-security_en_GB.properties
===================================================================
--- trunk/nuiton-security/src/main/resources/i18n/nuiton-security_en_GB.properties 2012-10-24 12:43:58 UTC (rev 229)
+++ trunk/nuiton-security/src/main/resources/i18n/nuiton-security_en_GB.properties 2012-10-24 15:05:53 UTC (rev 230)
@@ -1,3 +1,4 @@
Compte\ bloqué.\ Contacter\ un\ administrateur=
Identifiant\ ou\ mot\ de\ passe\ invalide\ \!=
+Les\ mots\ de\ passes\ ne\ sont\ pas\ identiques\ \!=
Nombre\ de\ tentatives\ dépassé=
Modified: trunk/nuiton-security/src/main/resources/i18n/nuiton-security_fr_FR.properties
===================================================================
--- trunk/nuiton-security/src/main/resources/i18n/nuiton-security_fr_FR.properties 2012-10-24 12:43:58 UTC (rev 229)
+++ trunk/nuiton-security/src/main/resources/i18n/nuiton-security_fr_FR.properties 2012-10-24 15:05:53 UTC (rev 230)
@@ -1,3 +1,4 @@
Compte\ bloqué.\ Contacter\ un\ administrateur=
Identifiant\ ou\ mot\ de\ passe\ invalide\ \!=
+Les\ mots\ de\ passes\ ne\ sont\ pas\ identiques\ \!=
Nombre\ de\ tentatives\ dépassé=
1
0
r229 - in trunk/nuiton-security: . src src/license src/main/java/org/nuiton/web/security src/main/java/org/nuiton/web/security/actions src/main/resources src/main/resources/WEB-INF/security src/main/xmi
by echatellier@users.nuiton.org Oct. 24, 2012
by echatellier@users.nuiton.org Oct. 24, 2012
Oct. 24, 2012
Author: echatellier
Date: 2012-10-24 14:43:58 +0200 (Wed, 24 Oct 2012)
New Revision: 229
Url: http://nuiton.org/repositories/revision/nuiton-web/229
Log:
Fix headers, third party and deps
Added:
trunk/nuiton-security/src/license/
trunk/nuiton-security/src/license/THIRD-PARTY.properties
Modified:
trunk/nuiton-security/LICENSE.txt
trunk/nuiton-security/pom.xml
trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecurityShiroFilter.java
trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecuritySubjectFactory.java
trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecurityUtil.java
trunk/nuiton-security/src/main/java/org/nuiton/web/security/TopiaSecurityRealm.java
trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/AbstractAction.java
trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/LoginAction.java
trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/LogoutAction.java
trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/RoleAction.java
trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/RolePermissionsAction.java
trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/UserAction.java
trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/UserRolesAction.java
trunk/nuiton-security/src/main/resources/WEB-INF/security/login.jsp
trunk/nuiton-security/src/main/resources/WEB-INF/security/role-permissions.jsp
trunk/nuiton-security/src/main/resources/WEB-INF/security/role.jsp
trunk/nuiton-security/src/main/resources/WEB-INF/security/user-roles.jsp
trunk/nuiton-security/src/main/resources/WEB-INF/security/user.jsp
trunk/nuiton-security/src/main/resources/struts.xml
trunk/nuiton-security/src/main/xmi/security.properties
Modified: trunk/nuiton-security/LICENSE.txt
===================================================================
--- trunk/nuiton-security/LICENSE.txt 2012-10-23 15:29:49 UTC (rev 228)
+++ trunk/nuiton-security/LICENSE.txt 2012-10-24 12:43:58 UTC (rev 229)
@@ -0,0 +1,166 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
+
Modified: trunk/nuiton-security/pom.xml
===================================================================
(Binary files differ)
Added: trunk/nuiton-security/src/license/THIRD-PARTY.properties
===================================================================
--- trunk/nuiton-security/src/license/THIRD-PARTY.properties (rev 0)
+++ trunk/nuiton-security/src/license/THIRD-PARTY.properties 2012-10-24 12:43:58 UTC (rev 229)
@@ -0,0 +1,25 @@
+# Generated by org.codehaus.mojo.license.AddThirdPartyMojo
+#-------------------------------------------------------------------------------
+# Already used licenses in project :
+# - BSD License
+# - BSD-style license
+# - COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
+# - GNU Library or Lesser General Public License
+# - Indiana University Extreme! Lab Software License, vesion 1.1.1
+# - Lesser General Public License (LGPL) v 3.0
+# - Lesser General Public License (LPGL)
+# - Lesser General Public License (LPGL) v 2.1
+# - MIT License
+# - MPL 1.1
+# - The Apache Software License, Version 2.0
+# - license.txt
+#-------------------------------------------------------------------------------
+# Please fill the missing licenses for dependencies :
+#
+#
+#Wed Oct 24 14:21:56 CEST 2012
+antlr--antlr--2.7.6=BSD License
+commons-primitives--commons-primitives--1.0=The Apache Software License, Version 2.0
+dom4j--dom4j--1.6.1=BSD License
+javax.servlet--servlet-api--2.5=License Agreement for Java(TM) Servlet API Specification Interface Classes
+javax.transaction--jta--1.1=COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
Modified: trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecurityShiroFilter.java
===================================================================
--- trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecurityShiroFilter.java 2012-10-23 15:29:49 UTC (rev 228)
+++ trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecurityShiroFilter.java 2012-10-24 12:43:58 UTC (rev 229)
@@ -1,3 +1,27 @@
+/*
+ * #%L
+ * Nuiton Web :: Nuiton Security
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 CodeLutin, Chatellier Eric
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
package org.nuiton.web.security;
import java.io.IOException;
Modified: trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecuritySubjectFactory.java
===================================================================
--- trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecuritySubjectFactory.java 2012-10-23 15:29:49 UTC (rev 228)
+++ trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecuritySubjectFactory.java 2012-10-24 12:43:58 UTC (rev 229)
@@ -1,3 +1,27 @@
+/*
+ * #%L
+ * Nuiton Web :: Nuiton Security
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 CodeLutin, Chatellier Eric
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
package org.nuiton.web.security;
import javax.servlet.ServletRequest;
Modified: trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecurityUtil.java
===================================================================
--- trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecurityUtil.java 2012-10-23 15:29:49 UTC (rev 228)
+++ trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecurityUtil.java 2012-10-24 12:43:58 UTC (rev 229)
@@ -1,3 +1,27 @@
+/*
+ * #%L
+ * Nuiton Web :: Nuiton Security
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 CodeLutin, Chatellier Eric
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
package org.nuiton.web.security;
public class SecurityUtil {
Modified: trunk/nuiton-security/src/main/java/org/nuiton/web/security/TopiaSecurityRealm.java
===================================================================
--- trunk/nuiton-security/src/main/java/org/nuiton/web/security/TopiaSecurityRealm.java 2012-10-23 15:29:49 UTC (rev 228)
+++ trunk/nuiton-security/src/main/java/org/nuiton/web/security/TopiaSecurityRealm.java 2012-10-24 12:43:58 UTC (rev 229)
@@ -1,3 +1,27 @@
+/*
+ * #%L
+ * Nuiton Web :: Nuiton Security
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 CodeLutin, Chatellier Eric
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
package org.nuiton.web.security;
import java.util.Properties;
Modified: trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/AbstractAction.java
===================================================================
--- trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/AbstractAction.java 2012-10-23 15:29:49 UTC (rev 228)
+++ trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/AbstractAction.java 2012-10-24 12:43:58 UTC (rev 229)
@@ -1,3 +1,27 @@
+/*
+ * #%L
+ * Nuiton Web :: Nuiton Security
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 CodeLutin, Chatellier Eric
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
package org.nuiton.web.security.actions;
import java.util.Map;
@@ -12,6 +36,7 @@
import com.opensymphony.xwork2.ActionSupport;
+
public class AbstractAction extends ActionSupport implements ServletContextAware, ParameterAware {
/** serialVersionUID. */
Modified: trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/LoginAction.java
===================================================================
--- trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/LoginAction.java 2012-10-23 15:29:49 UTC (rev 228)
+++ trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/LoginAction.java 2012-10-24 12:43:58 UTC (rev 229)
@@ -1,3 +1,27 @@
+/*
+ * #%L
+ * Nuiton Web :: Nuiton Security
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 CodeLutin, Chatellier Eric
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
package org.nuiton.web.security.actions;
import static org.nuiton.i18n.I18n._;
@@ -2,3 +26,2 @@
-import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;
@@ -17,8 +40,6 @@
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.session.Session;
import org.apache.shiro.subject.Subject;
-import org.apache.shiro.web.util.SavedRequest;
-import org.apache.shiro.web.util.WebUtils;
import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;
import org.nuiton.web.security.SecurityShiroFilter;
Modified: trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/LogoutAction.java
===================================================================
--- trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/LogoutAction.java 2012-10-23 15:29:49 UTC (rev 228)
+++ trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/LogoutAction.java 2012-10-24 12:43:58 UTC (rev 229)
@@ -1,3 +1,27 @@
+/*
+ * #%L
+ * Nuiton Web :: Nuiton Security
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 CodeLutin, Chatellier Eric
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
package org.nuiton.web.security.actions;
import org.apache.shiro.SecurityUtils;
Modified: trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/RoleAction.java
===================================================================
--- trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/RoleAction.java 2012-10-23 15:29:49 UTC (rev 228)
+++ trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/RoleAction.java 2012-10-24 12:43:58 UTC (rev 229)
@@ -1,3 +1,28 @@
+/*
+ * #%L
+ * Nuiton Web :: Nuiton Security
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 CodeLutin, Chatellier Eric
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
+
package org.nuiton.web.security.actions;
import org.apache.commons.lang3.StringUtils;
Modified: trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/RolePermissionsAction.java
===================================================================
--- trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/RolePermissionsAction.java 2012-10-23 15:29:49 UTC (rev 228)
+++ trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/RolePermissionsAction.java 2012-10-24 12:43:58 UTC (rev 229)
@@ -1,3 +1,27 @@
+/*
+ * #%L
+ * Nuiton Web :: Nuiton Security
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 CodeLutin, Chatellier Eric
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
package org.nuiton.web.security.actions;
import java.util.ArrayList;
Modified: trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/UserAction.java
===================================================================
--- trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/UserAction.java 2012-10-23 15:29:49 UTC (rev 228)
+++ trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/UserAction.java 2012-10-24 12:43:58 UTC (rev 229)
@@ -1,3 +1,27 @@
+/*
+ * #%L
+ * Nuiton Web :: Nuiton Security
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 CodeLutin, Chatellier Eric
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
package org.nuiton.web.security.actions;
import org.apache.commons.lang3.StringUtils;
Modified: trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/UserRolesAction.java
===================================================================
--- trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/UserRolesAction.java 2012-10-23 15:29:49 UTC (rev 228)
+++ trunk/nuiton-security/src/main/java/org/nuiton/web/security/actions/UserRolesAction.java 2012-10-24 12:43:58 UTC (rev 229)
@@ -1,3 +1,27 @@
+/*
+ * #%L
+ * Nuiton Web :: Nuiton Security
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 CodeLutin, Chatellier Eric
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
package org.nuiton.web.security.actions;
import java.util.List;
Modified: trunk/nuiton-security/src/main/resources/WEB-INF/security/login.jsp
===================================================================
--- trunk/nuiton-security/src/main/resources/WEB-INF/security/login.jsp 2012-10-23 15:29:49 UTC (rev 228)
+++ trunk/nuiton-security/src/main/resources/WEB-INF/security/login.jsp 2012-10-24 12:43:58 UTC (rev 229)
@@ -1,3 +1,26 @@
+<%--
+ #%L
+ Nuiton Web :: Nuiton Security
+ $Id:$
+ $HeadURL:$
+ %%
+ Copyright (C) 2012 CodeLutin, Chatellier Eric
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Lesser Public License for more details.
+
+ You should have received a copy of the GNU General Lesser Public
+ License along with this program. If not, see
+ <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ #L%
+ --%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@taglib uri="/struts-tags" prefix="s" %>
Modified: trunk/nuiton-security/src/main/resources/WEB-INF/security/role-permissions.jsp
===================================================================
--- trunk/nuiton-security/src/main/resources/WEB-INF/security/role-permissions.jsp 2012-10-23 15:29:49 UTC (rev 228)
+++ trunk/nuiton-security/src/main/resources/WEB-INF/security/role-permissions.jsp 2012-10-24 12:43:58 UTC (rev 229)
@@ -1,3 +1,26 @@
+<%--
+ #%L
+ Nuiton Web :: Nuiton Security
+ $Id:$
+ $HeadURL:$
+ %%
+ Copyright (C) 2012 CodeLutin, Chatellier Eric
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Lesser Public License for more details.
+
+ You should have received a copy of the GNU General Lesser Public
+ License along with this program. If not, see
+ <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ #L%
+ --%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@taglib uri="/struts-tags" prefix="s" %>
Modified: trunk/nuiton-security/src/main/resources/WEB-INF/security/role.jsp
===================================================================
--- trunk/nuiton-security/src/main/resources/WEB-INF/security/role.jsp 2012-10-23 15:29:49 UTC (rev 228)
+++ trunk/nuiton-security/src/main/resources/WEB-INF/security/role.jsp 2012-10-24 12:43:58 UTC (rev 229)
@@ -1,3 +1,26 @@
+<%--
+ #%L
+ Nuiton Web :: Nuiton Security
+ $Id:$
+ $HeadURL:$
+ %%
+ Copyright (C) 2012 CodeLutin, Chatellier Eric
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Lesser Public License for more details.
+
+ You should have received a copy of the GNU General Lesser Public
+ License along with this program. If not, see
+ <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ #L%
+ --%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@taglib uri="/struts-tags" prefix="s" %>
@@ -10,8 +33,13 @@
<div class="security-div">
<h1>Sécurité</h1>
-
- <h2>Nouveau Rôle</h2>
+
+ <s:if test='%{product.topiaId != null}'>
+ <h2>Nouveau rôle</h2>
+ </s:if>
+ <s:else>
+ <h2>Modification d'un rôle</h2>
+ </s:else>
<s:form action="role" namespace="/security" class="security-form">
<s:actionerror />
Modified: trunk/nuiton-security/src/main/resources/WEB-INF/security/user-roles.jsp
===================================================================
--- trunk/nuiton-security/src/main/resources/WEB-INF/security/user-roles.jsp 2012-10-23 15:29:49 UTC (rev 228)
+++ trunk/nuiton-security/src/main/resources/WEB-INF/security/user-roles.jsp 2012-10-24 12:43:58 UTC (rev 229)
@@ -1,3 +1,26 @@
+<%--
+ #%L
+ Nuiton Web :: Nuiton Security
+ $Id:$
+ $HeadURL:$
+ %%
+ Copyright (C) 2012 CodeLutin, Chatellier Eric
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Lesser Public License for more details.
+
+ You should have received a copy of the GNU General Lesser Public
+ License along with this program. If not, see
+ <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ #L%
+ --%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@taglib uri="/struts-tags" prefix="s" %>
Modified: trunk/nuiton-security/src/main/resources/WEB-INF/security/user.jsp
===================================================================
--- trunk/nuiton-security/src/main/resources/WEB-INF/security/user.jsp 2012-10-23 15:29:49 UTC (rev 228)
+++ trunk/nuiton-security/src/main/resources/WEB-INF/security/user.jsp 2012-10-24 12:43:58 UTC (rev 229)
@@ -1,3 +1,26 @@
+<%--
+ #%L
+ Nuiton Web :: Nuiton Security
+ $Id:$
+ $HeadURL:$
+ %%
+ Copyright (C) 2012 CodeLutin, Chatellier Eric
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Lesser Public License for more details.
+
+ You should have received a copy of the GNU General Lesser Public
+ License along with this program. If not, see
+ <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ #L%
+ --%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@taglib uri="/struts-tags" prefix="s" %>
Modified: trunk/nuiton-security/src/main/resources/struts.xml
===================================================================
--- trunk/nuiton-security/src/main/resources/struts.xml 2012-10-23 15:29:49 UTC (rev 228)
+++ trunk/nuiton-security/src/main/resources/struts.xml 2012-10-24 12:43:58 UTC (rev 229)
@@ -1,3 +1,26 @@
+<!--
+ #%L
+ Nuiton Web :: Nuiton Security
+ $Id:$
+ $HeadURL:$
+ %%
+ Copyright (C) 2012 CodeLutin, Chatellier Eric
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Lesser Public License for more details.
+
+ You should have received a copy of the GNU General Lesser Public
+ License along with this program. If not, see
+ <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ #L%
+ -->
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
Modified: trunk/nuiton-security/src/main/xmi/security.properties
===================================================================
--- trunk/nuiton-security/src/main/xmi/security.properties 2012-10-23 15:29:49 UTC (rev 228)
+++ trunk/nuiton-security/src/main/xmi/security.properties 2012-10-24 12:43:58 UTC (rev 229)
@@ -1,3 +1,26 @@
+###
+# #%L
+# Nuiton Web :: Nuiton Security
+# $Id:$
+# $HeadURL:$
+# %%
+# Copyright (C) 2012 CodeLutin, Chatellier Eric
+# %%
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Lesser Public License for more details.
+#
+# You should have received a copy of the GNU General Lesser Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/lgpl-3.0.html>.
+# #L%
+###
model.tagvalue.String=text
org.nuiton.web.security.SecurityUser.attribute.securityRole.tagvalue.lazy=false
org.nuiton.web.security.SecurityRole.attribute.permissions.tagvalue.lazy=false
1
0
r228 - trunk/nuiton-security/src/main/java/org/nuiton/web/security
by echatellier@users.nuiton.org Oct. 23, 2012
by echatellier@users.nuiton.org Oct. 23, 2012
Oct. 23, 2012
Author: echatellier
Date: 2012-10-23 17:29:49 +0200 (Tue, 23 Oct 2012)
New Revision: 228
Url: http://nuiton.org/repositories/revision/nuiton-web/228
Log:
Add configuration option to split url on various characters
Added:
trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecurityUtil.java
Modified:
trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecurityShiroFilter.java
trunk/nuiton-security/src/main/java/org/nuiton/web/security/TopiaSecurityRealm.java
Modified: trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecurityShiroFilter.java
===================================================================
--- trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecurityShiroFilter.java 2012-10-19 13:11:36 UTC (rev 227)
+++ trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecurityShiroFilter.java 2012-10-23 15:29:49 UTC (rev 228)
@@ -114,13 +114,9 @@
// get permission
String uri = ((HttpServletRequest)servletRequest).getRequestURI();
- String perm = "url" + uri.replace('/', ':');
- // cas de la permission url: qui est equivalente a url:*
- if (perm.endsWith(":")) {
- perm += "/";
- }
+ String perm = SecurityUtil.convertToShiroPerm(uri, config.getOption("topia.security.separators"));
- if (subjectUser.isPermitted(perm)) {
+ if (subjectUser.isPermitted("url" + perm)) {
if (log.isDebugEnabled()) {
log.debug("User is permitted to access " + perm);
}
@@ -136,7 +132,12 @@
}
// save request and redirect to login
Session session = subjectUser.getSession();
- session.setAttribute(SESSION_SAVED_URL, ((HttpServletRequest)servletRequest).getRequestURL().toString());
+ HttpServletRequest httpServletRequest = (HttpServletRequest)servletRequest;
+ StringBuffer requestURL = new StringBuffer(httpServletRequest.getRequestURL());
+ if (httpServletRequest.getQueryString() != null) {
+ requestURL.append('?').append(httpServletRequest.getQueryString());
+ }
+ session.setAttribute(SESSION_SAVED_URL, requestURL.toString());
((HttpServletResponse)servletResponse).sendRedirect(config.getOption("topia.security.loginurl"));
} else {
((HttpServletResponse)servletResponse).sendError(401, "Not authorized to access " + uri);
Added: trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecurityUtil.java
===================================================================
--- trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecurityUtil.java (rev 0)
+++ trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecurityUtil.java 2012-10-23 15:29:49 UTC (rev 228)
@@ -0,0 +1,27 @@
+package org.nuiton.web.security;
+
+public class SecurityUtil {
+
+ /**
+ * Split url with separators definined in separator string.
+ *
+ * @param url url to convert
+ * @param separators each string character is used a separator char (null allowed)
+ * @return shiro permission (: separator)
+ */
+ public static String convertToShiroPerm(String url, String separators) {
+ String perm = url;
+ if (separators != null) {
+ for (int i = 0; i < separators.length(); i++) {
+ perm = perm.replace(separators.charAt(i), ':');
+ }
+ }
+
+ // cas de la permission url: qui est equivalente a url:*
+ if (perm.endsWith(":")) {
+ perm += "/";
+ }
+
+ return perm;
+ }
+}
Property changes on: trunk/nuiton-security/src/main/java/org/nuiton/web/security/SecurityUtil.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/nuiton-security/src/main/java/org/nuiton/web/security/TopiaSecurityRealm.java
===================================================================
--- trunk/nuiton-security/src/main/java/org/nuiton/web/security/TopiaSecurityRealm.java 2012-10-19 13:11:36 UTC (rev 227)
+++ trunk/nuiton-security/src/main/java/org/nuiton/web/security/TopiaSecurityRealm.java 2012-10-23 15:29:49 UTC (rev 228)
@@ -97,8 +97,10 @@
}
// ajout de l'url de login et logout quand meme !!!
- result.addStringPermission("url" + config.getOption("topia.security.loginurl").replace('/', ':'));
- result.addStringPermission("url" + config.getOption("topia.security.logouturl").replace('/', ':'));
+ result.addStringPermission("url" + SecurityUtil.convertToShiroPerm(config.getOption("topia.security.loginurl"),
+ config.getOption("topia.security.separators")));
+ result.addStringPermission("url" + SecurityUtil.convertToShiroPerm(config.getOption("topia.security.logouturl"),
+ config.getOption("topia.security.separators")));
} catch (Exception ex) {
1
0