diff options
| author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2016-03-21 15:49:24 +0100 | 
|---|---|---|
| committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2016-03-21 15:49:24 +0100 | 
| commit | 54a26c8e353069abacefe5232f8270bec6b3cc60 (patch) | |
| tree | af0bdc8377085ffab2d6899a645a4d6a2b041ea1 | |
| parent | 8746e1a7e3e4a3d19922acf81a952bf27618989f (diff) | |
| download | moa-id-spss-54a26c8e353069abacefe5232f8270bec6b3cc60.tar.gz moa-id-spss-54a26c8e353069abacefe5232f8270bec6b3cc60.tar.bz2 moa-id-spss-54a26c8e353069abacefe5232f8270bec6b3cc60.zip | |
update libs
18 files changed, 68 insertions, 451 deletions
| diff --git a/id/moa-spss-container/pom.xml b/id/moa-spss-container/pom.xml index 1f7cb673f..fb08989b4 100644 --- a/id/moa-spss-container/pom.xml +++ b/id/moa-spss-container/pom.xml @@ -68,12 +68,12 @@  			<artifactId>iaik_X509TrustManager</artifactId>  		</dependency> -		<dependency> +<!-- 		<dependency>  			<groupId>axis</groupId>  			<artifactId>axis</artifactId> -		</dependency> +		</dependency> --> -		<dependency> +<!-- 		<dependency>  			<groupId>axis</groupId>  			<artifactId>axis</artifactId>  		</dependency> @@ -84,7 +84,7 @@  		<dependency>  			<groupId>org.apache.axis</groupId>  			<artifactId>axis-saaj</artifactId> -		</dependency> +		</dependency> -->  		<dependency>  			<groupId>commons-discovery</groupId>  			<artifactId>commons-discovery</artifactId> diff --git a/id/server/idserverlib/pom.xml b/id/server/idserverlib/pom.xml index 1c8d89fb4..b226f01b3 100644 --- a/id/server/idserverlib/pom.xml +++ b/id/server/idserverlib/pom.xml @@ -182,11 +182,11 @@  		</dependency>
  		<!-- Required for MOA-SPSS API access -->
 -		<dependency>
 +<!-- 		<dependency>
  			<groupId>com.sun.xml.rpc</groupId>
  			<artifactId>jaxrpc-impl</artifactId>
  			<version>1.1.3_01</version>
 -		</dependency>
 +		</dependency> -->
  		<dependency>
 diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/ConfigurationProviderImpl.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/ConfigurationProviderImpl.java index db6ff8d9b..395aeaadb 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/ConfigurationProviderImpl.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/ConfigurationProviderImpl.java @@ -57,7 +57,6 @@ import at.gv.egovernment.moa.id.commons.db.MOASessionDBUtils;  import at.gv.egovernment.moa.id.commons.db.StatisticLogDBUtils;  import at.gv.egovernment.moa.id.commons.db.dao.session.AssertionStore;  import at.gv.egovernment.moa.id.commons.db.dao.session.AuthenticatedSessionStore; -import at.gv.egovernment.moa.id.commons.db.dao.session.ExceptionStore;  import at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore;  import at.gv.egovernment.moa.id.commons.db.dao.session.OASessionStore;  import at.gv.egovernment.moa.id.commons.db.dao.session.OldSSOSessionIDStore; @@ -221,7 +220,6 @@ public abstract class ConfigurationProviderImpl implements ConfigurationProvider  					config.addAnnotatedClass(AuthenticatedSessionStore.class);  					config.addAnnotatedClass(OASessionStore.class);  					config.addAnnotatedClass(OldSSOSessionIDStore.class); -					config.addAnnotatedClass(ExceptionStore.class);  					config.addAnnotatedClass(InterfederationSessionStore.class);  					config.addAnnotatedClass(ProcessInstanceStore.class);  					config.addProperties(moaSessionProp); diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/SingleLogOutAction.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/SingleLogOutAction.java index ae88f3ea4..dfe9ecb49 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/SingleLogOutAction.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/SingleLogOutAction.java @@ -34,6 +34,7 @@ import org.hibernate.HibernateException;  import org.hibernate.Query;  import org.hibernate.Session;  import org.hibernate.Transaction; +import org.hibernate.resource.transaction.spi.TransactionStatus;  import org.opensaml.saml2.core.LogoutRequest;  import org.opensaml.saml2.core.LogoutResponse;  import org.opensaml.saml2.metadata.SingleLogoutService; @@ -274,7 +275,7 @@ public class SingleLogOutAction implements IAction {  					throw new AuthenticationException("pvp2.13", new Object[]{});  				} finally { -					if (tx != null && !tx.wasCommitted()) { +					if (tx != null && !tx.getStatus().equals(TransactionStatus.COMMITTED)) {  						tx.commit();  					} diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/DBAuthenticationSessionStoreage.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/DBAuthenticationSessionStoreage.java index 43b4ecf17..094e25040 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/DBAuthenticationSessionStoreage.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/DBAuthenticationSessionStoreage.java @@ -32,6 +32,7 @@ import org.hibernate.HibernateException;  import org.hibernate.Query;  import org.hibernate.Session;  import org.hibernate.Transaction; +import org.hibernate.resource.transaction.spi.TransactionStatus;  import org.springframework.beans.factory.annotation.Autowired;  import org.springframework.stereotype.Service; @@ -231,7 +232,7 @@ public class DBAuthenticationSessionStoreage implements IAuthenticationSessionSt  			  }  		  } catch (Exception e) { -			  if (tx != null && !tx.wasCommitted()) +			  if (tx != null && !tx.getStatus().equals(TransactionStatus.COMMITTED))  				  tx.rollback();  			  throw e; @@ -321,7 +322,7 @@ public class DBAuthenticationSessionStoreage implements IAuthenticationSessionSt  			  }  		  } catch (Exception e) { -			  if (tx != null && !tx.wasCommitted()) +			  if (tx != null && !tx.getStatus().equals(TransactionStatus.COMMITTED))  				  tx.rollback();  			  throw e;  		  } @@ -371,7 +372,7 @@ public class DBAuthenticationSessionStoreage implements IAuthenticationSessionSt  				  return result.get(0);  			  }  		  } catch (Exception e) { -			  if (tx != null && !tx.wasCommitted()) +			  if (tx != null && !tx.getStatus().equals(TransactionStatus.COMMITTED))  				  tx.rollback();  			  throw e;  		  } @@ -477,7 +478,7 @@ public class DBAuthenticationSessionStoreage implements IAuthenticationSessionSt  		} catch(HibernateException e) {  	  		Logger.warn("Error during database saveOrUpdate. Rollback.", e); -	  		if (tx != null && !tx.wasCommitted()) +	  		if (tx != null && !tx.getStatus().equals(TransactionStatus.COMMITTED))  	  			tx.rollback();  	  		throw new AuthenticationException("SSO Session information can not be stored!  --> SSO is deactivated", null);	  	  	} @@ -504,7 +505,7 @@ public class DBAuthenticationSessionStoreage implements IAuthenticationSessionSt  		} catch (Exception e) {  			if (session != null && session.getTransaction() != null  -					&& !session.getTransaction().wasCommitted()) { +					&& !session.getTransaction().getStatus().equals(TransactionStatus.COMMITTED)) {  				session.getTransaction().rollback();  				throw e; @@ -534,7 +535,7 @@ public class DBAuthenticationSessionStoreage implements IAuthenticationSessionSt  		} catch (Exception e) {  			if (session != null && session.getTransaction() != null  -					&& !session.getTransaction().wasCommitted()) { +					&& !session.getTransaction().getStatus().equals(TransactionStatus.COMMITTED)) {  				session.getTransaction().rollback();  				throw e; @@ -583,7 +584,7 @@ public class DBAuthenticationSessionStoreage implements IAuthenticationSessionSt  			return null;  		} catch (Exception e) { -			if (tx != null && !tx.wasCommitted()) +			if (tx != null && !tx.getStatus().equals(TransactionStatus.COMMITTED))  				tx.rollback();  			throw e;  		} @@ -626,7 +627,7 @@ public class DBAuthenticationSessionStoreage implements IAuthenticationSessionSt  			  return  result.get(0).getActiveOAsessions().get(0);  		  } catch (Exception e) { -				if (tx != null && !tx.wasCommitted()) +				if (tx != null && !tx.getStatus().equals(TransactionStatus.COMMITTED))  					tx.rollback();  				throw e;  			} @@ -665,7 +666,7 @@ public class DBAuthenticationSessionStoreage implements IAuthenticationSessionSt  		} catch (Throwable e) {  			Logger.warn("MOASession deserialization-exception by using MOASessionID=" + nameID);			 -			if (tx != null && !tx.wasCommitted()) +			if (tx != null && !tx.getStatus().equals(TransactionStatus.COMMITTED))  				tx.rollback();  			return null;  		} @@ -702,7 +703,7 @@ public class DBAuthenticationSessionStoreage implements IAuthenticationSessionSt  			  return result.get(0).getInderfederation().get(0);  		} catch (Exception e) { -			if (tx != null && !tx.wasCommitted()) +			if (tx != null && !tx.getStatus().equals(TransactionStatus.COMMITTED))  				tx.rollback();  			throw e;  		}	 @@ -740,7 +741,7 @@ public class DBAuthenticationSessionStoreage implements IAuthenticationSessionSt  			  return result.get(0).getInderfederation().get(0);  		  } catch (Exception e) { -				if (tx != null && !tx.wasCommitted()) +				if (tx != null && !tx.getStatus().equals(TransactionStatus.COMMITTED))  					tx.rollback();  				throw e;  		  }	 @@ -856,7 +857,7 @@ public class DBAuthenticationSessionStoreage implements IAuthenticationSessionSt  			  return result.get(0).getInderfederation().get(0);  		} catch (Exception e) { -			if (tx != null && !tx.wasCommitted()) +			if (tx != null && !tx.getStatus().equals(TransactionStatus.COMMITTED))  				tx.rollback();  			throw e;  		}	 @@ -948,7 +949,7 @@ public class DBAuthenticationSessionStoreage implements IAuthenticationSessionSt  			}  		} catch (Exception e) { -			if (tx != null && !tx.wasCommitted()) +			if (tx != null && !tx.getStatus().equals(TransactionStatus.COMMITTED))  				tx.rollback();  			throw e;  		}	 @@ -1018,7 +1019,7 @@ public class DBAuthenticationSessionStoreage implements IAuthenticationSessionSt  			  return (AuthenticatedSessionStore) result.get(0);  		  } catch (Exception e) { -				if (tx != null && !tx.wasCommitted() && commit) +				if (tx != null && !tx.getStatus().equals(TransactionStatus.COMMITTED) && commit)  					tx.rollback();  				throw e;  		}	 diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/AxisSecureSocketFactory.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/AxisSecureSocketFactory.java deleted file mode 100644 index fff5fac96..000000000 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/AxisSecureSocketFactory.java +++ /dev/null @@ -1,258 +0,0 @@ -/******************************************************************************* - * Copyright 2014 Federal Chancellery Austria - * MOA-ID has been developed in a cooperation between BRZ, the Federal - * Chancellery Austria - ICT staff unit, and Graz University of Technology. - *  - * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by - * the European Commission - subsequent versions of the EUPL (the "Licence"); - * You may not use this work except in compliance with the Licence. - * You may obtain a copy of the Licence at: - * http://www.osor.eu/eupl/ - *  - * Unless required by applicable law or agreed to in writing, software - * distributed under the Licence is distributed on an "AS IS" basis, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the Licence for the specific language governing permissions and - * limitations under the Licence. - *  - * This product combines work with different licenses. See the "NOTICE" text - * file for details on the various modules and licenses. - * The "NOTICE" text file is part of the distribution. Any derivative works - * that you distribute must include a readable copy of the "NOTICE" text file. - ******************************************************************************/ -/* - * Copyright 2003 Federal Chancellery Austria - * MOA-ID has been developed in a cooperation between BRZ, the Federal - * Chancellery Austria - ICT staff unit, and Graz University of Technology. - * - * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by - * the European Commission - subsequent versions of the EUPL (the "Licence"); - * You may not use this work except in compliance with the Licence. - * You may obtain a copy of the Licence at: - * http://www.osor.eu/eupl/ - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the Licence is distributed on an "AS IS" basis, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the Licence for the specific language governing permissions and - * limitations under the Licence. - * - * This product combines work with different licenses. See the "NOTICE" text - * file for details on the various modules and licenses. - * The "NOTICE" text file is part of the distribution. Any derivative works - * that you distribute must include a readable copy of the "NOTICE" text file. - */ - - -package at.gv.egovernment.moa.id.util; - -import java.io.BufferedWriter; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.io.OutputStreamWriter; -import java.io.PrintWriter; -import java.net.Socket; -import java.security.GeneralSecurityException; -import java.util.Hashtable; - -import javax.net.ssl.SSLSocket; -import javax.net.ssl.SSLSocketFactory; - -import org.apache.axis.components.net.BooleanHolder; -import org.apache.axis.components.net.DefaultSocketFactory; -import org.apache.axis.components.net.SocketFactory; -import org.apache.axis.components.net.TransportClientProperties; -import org.apache.axis.components.net.TransportClientPropertiesFactory; -import org.apache.axis.utils.Messages; -import org.apache.axis.utils.XMLUtils; - -import at.gv.egovernment.moa.logging.Logger; - -/** - * Secure socket factory for Axis webs service clients of the MOA-ID component, - * which are the MOA-SP calls from MOA-ID Auth,  - * and the MOA-ID Auth calls from MOA-ID Proxy. - * <br/>Use this initialization code:<br/> - * <code>	// ConnectionParameter connParam = ... get from ConfigurationProvider - * 	AxisSecureSocketFactory.initialize(connParam);</code> - * <br/>See the Apache Axis documentation on how to configure this class - * as the default secure socket factory to be used by Axis. - * <br/> - * This code has been copied from <code>JSSESocketFactory</code>, the - * method <code>initialize()</code> has been added. - *  - *  - * @author Paul Ivancsics - * @version $Id$ - */ -public class AxisSecureSocketFactory -  extends DefaultSocketFactory implements SocketFactory { - -  /** Field sslFactory           */ -  private static SSLSocketFactory sslFactory; - -  /** -   * Constructor for AxisSecureSocketFactory. -   * @param attributes ??? -   */ -  public AxisSecureSocketFactory(Hashtable attributes) { -    super(attributes); -  } -  /** -   * Initializes the factory by setting the connection parameters to be used for -   * setting the secure socket factory, and by setting the system property  -   * <code>axis.socketSecureFactory</code>. -   * @param ssf <code>SSLSocketFactory</code> to initialize with -   */ -  public static void initialize(SSLSocketFactory ssf) -    throws IOException, GeneralSecurityException { - -    Logger.debug("Initialize AxisSecureSocketFactory"); -    sslFactory = ssf; -  } - -  /** -   * creates a secure socket -   * -   * @param host -   * @param port -   * @param otherHeaders -   * @param useFullURL -   * -   * @return Socket -   * @throws Exception -   */ -  public Socket create( -    String host, -    int port, -    StringBuffer otherHeaders, -    BooleanHolder useFullURL) -    throws Exception { -    if (port == -1) { -      port = 443; -    } - -    TransportClientProperties tcp = -      TransportClientPropertiesFactory.create("https"); - -    boolean hostInNonProxyList = -      isHostInNonProxyList(host, tcp.getNonProxyHosts()); - -    Socket sslSocket = null; -    if (tcp.getProxyHost().length() == 0 || hostInNonProxyList) { -      // direct SSL connection -      sslSocket = sslFactory.createSocket(host, port); -    } -    else { - -      // Default proxy port is 80, even for https -      int tunnelPort = -        (tcp.getProxyPort().length() != 0) -          ? Integer.parseInt(tcp.getProxyPort()) -          : 80; -      if (tunnelPort < 0) -        tunnelPort = 80; - -      // Create the regular socket connection to the proxy -      Socket tunnel = new Socket(tcp.getProxyHost(), tunnelPort); - -      // The tunnel handshake method (condensed and made reflexive) -      OutputStream tunnelOutputStream = tunnel.getOutputStream(); -      PrintWriter out = -        new PrintWriter( -          new BufferedWriter(new OutputStreamWriter(tunnelOutputStream))); - -      // More secure version... engage later? -      // PasswordAuthentication pa = -      // Authenticator.requestPasswordAuthentication( -      // InetAddress.getByName(tunnelHost), -      // tunnelPort, "SOCK", "Proxy","HTTP"); -      // if(pa == null){ -      // printDebug("No Authenticator set."); -      // }else{ -      // printDebug("Using Authenticator."); -      // tunnelUser = pa.getUserName(); -      // tunnelPassword = new String(pa.getPassword()); -      // } -      out.print( -        "CONNECT " -          + host -          + ":" -          + port -          + " HTTP/1.0\r\n" -          + "User-Agent: AxisClient"); -      if (tcp.getProxyUser().length() != 0 -        && tcp.getProxyPassword().length() != 0) { - -        // add basic authentication header for the proxy -        String encodedPassword = -          XMLUtils.base64encode( -            (tcp.getProxyUser() + ":" + tcp.getProxyPassword()).getBytes()); - -        out.print("\nProxy-Authorization: Basic " + encodedPassword); -      } -      out.print("\nContent-Length: 0"); -      out.print("\nPragma: no-cache"); -      out.print("\r\n\r\n"); -      out.flush(); -      InputStream tunnelInputStream = tunnel.getInputStream(); - -      if (log.isDebugEnabled()) { -        log.debug( -          Messages.getMessage( -            "isNull00", -            "tunnelInputStream", -            "" + (tunnelInputStream == null))); -      } -      String replyStr = ""; - -      // Make sure to read all the response from the proxy to prevent SSL negotiation failure -      // Response message terminated by two sequential newlines -      int newlinesSeen = 0; -      boolean headerDone = false; /* Done on first newline */ - -      while (newlinesSeen < 2) { -        int i = tunnelInputStream.read(); - -        if (i < 0) { -          throw new IOException("Unexpected EOF from proxy"); -        } -        if (i == '\n') { -          headerDone = true; -          ++newlinesSeen; -        } -        else if (i != '\r') { -          newlinesSeen = 0; -          if (!headerDone) { -            replyStr += String.valueOf((char) i); -          } -        } -      } -      if (!replyStr.startsWith("HTTP/1.0 200") -        && !replyStr.startsWith("HTTP/1.1 200")) { -        throw new IOException( -          Messages.getMessage( -            "cantTunnel00", -            new String[] { tcp.getProxyHost(), "" + tunnelPort, replyStr })); -      } - -      // End of condensed reflective tunnel handshake method -      sslSocket = sslFactory.createSocket(tunnel, host, port, true); -      if (log.isDebugEnabled()) { -        log.debug( -          Messages.getMessage( -            "setupTunnel00", -            tcp.getProxyHost(), -            "" + tunnelPort)); -      } -    } - -    ((SSLSocket) sslSocket).startHandshake(); -    if (log.isDebugEnabled()) { -      log.debug(Messages.getMessage("createdSSL00")); -    } -    return sslSocket; -  } - -} diff --git a/id/server/idserverlib/src/main/resources/moaid.configuration.beans.xml b/id/server/idserverlib/src/main/resources/moaid.configuration.beans.xml index 5855fc766..9c27ba581 100644 --- a/id/server/idserverlib/src/main/resources/moaid.configuration.beans.xml +++ b/id/server/idserverlib/src/main/resources/moaid.configuration.beans.xml @@ -15,7 +15,7 @@  		<constructor-arg value="#{systemProperties['moa.id.configuration']}"/>  	</bean> -	<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" lazy-init="true" destroy-method="close"> +	<bean id="dataSource" class="org.apache.commons.dbcp2.BasicDataSource" lazy-init="true" destroy-method="close">  		<aop:scoped-proxy/>  		<property name="driverClassName" value="${configuration.hibernate.connection.driver_class}" />  		<property name="url" value="${configuration.hibernate.connection.url}"/> @@ -24,10 +24,10 @@  		<property name="connectionProperties" value="${configuration.dbcp.connectionProperties}" />  		<property name="initialSize" value="${configuration.dbcp.initialSize}" />		 -		<property name="maxActive" value="${configuration.dbcp.maxActive}" /> +		<property name="maxTotal" value="${configuration.dbcp.maxActive}" />  		<property name="maxIdle" value="${configuration.dbcp.maxIdle}" />  		<property name="minIdle" value="${configuration.dbcp.minIdle}" /> -		<property name="maxWait" value="${configuration.dbcp.maxWaitMillis}" /> +		<!-- property name="maxWait" value="${configuration.dbcp.maxWaitMillis}" / -->  		<property name="testOnBorrow" value="${configuration.dbcp.testOnBorrow}" />  		<property name="testOnReturn" value="${configuration.dbcp.testOnReturn}" />  		<property name="testWhileIdle" value="${configuration.dbcp.testWhileIdle}" /> diff --git a/id/server/moa-id-commons/pom.xml b/id/server/moa-id-commons/pom.xml index d0cd08844..df38c8384 100644 --- a/id/server/moa-id-commons/pom.xml +++ b/id/server/moa-id-commons/pom.xml @@ -270,10 +270,16 @@  			<scope>test</scope>  		</dependency> -		<dependency> +<!-- 		<dependency>  			<groupId>commons-dbcp</groupId>  			<artifactId>commons-dbcp</artifactId>  			<version>1.4</version> +		</dependency> --> + +		<dependency> +			<groupId>org.apache.commons</groupId> +			<artifactId>commons-dbcp2</artifactId> +			<version>2.1.1</version>  		</dependency>  		<dependency> diff --git a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/AssertionStore.java b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/AssertionStore.java index a49142d87..c2f5ec962 100644 --- a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/AssertionStore.java +++ b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/AssertionStore.java @@ -27,8 +27,6 @@ import java.util.Date;  import javax.persistence.Column;  import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType;  import javax.persistence.Id;  import javax.persistence.Lob;  import javax.persistence.NamedQueries; @@ -52,7 +50,7 @@ public class AssertionStore implements Serializable{  	private static final long serialVersionUID = 1L;  	@Id -	@GeneratedValue(strategy = GenerationType.AUTO) +	//@GeneratedValue(strategy = GenerationType.AUTO)  	@Column(name = "id", unique=true, nullable=false)  	private long id; diff --git a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/AuthenticatedSessionStore.java b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/AuthenticatedSessionStore.java index a8cc1928e..6333451b9 100644 --- a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/AuthenticatedSessionStore.java +++ b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/AuthenticatedSessionStore.java @@ -31,8 +31,6 @@ import javax.persistence.CascadeType;  import javax.persistence.Column;  import javax.persistence.Entity;  import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType;  import javax.persistence.Id;  import javax.persistence.Lob;  import javax.persistence.NamedQueries; @@ -67,7 +65,7 @@ public class AuthenticatedSessionStore implements Serializable{  	private static final long serialVersionUID = 1L;  	@Id -	@GeneratedValue(strategy = GenerationType.AUTO) +	//@GeneratedValue(strategy = GenerationType.AUTO)  	@Column(name = "id", unique=true, nullable=false)  	private long id; diff --git a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/ExceptionStore.java b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/ExceptionStore.java deleted file mode 100644 index 0d56896ff..000000000 --- a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/ExceptionStore.java +++ /dev/null @@ -1,125 +0,0 @@ -/******************************************************************************* - * Copyright 2014 Federal Chancellery Austria - * MOA-ID has been developed in a cooperation between BRZ, the Federal - * Chancellery Austria - ICT staff unit, and Graz University of Technology. - * - * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by - * the European Commission - subsequent versions of the EUPL (the "Licence"); - * You may not use this work except in compliance with the Licence. - * You may obtain a copy of the Licence at: - * http://www.osor.eu/eupl/ - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the Licence is distributed on an "AS IS" basis, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the Licence for the specific language governing permissions and - * limitations under the Licence. - * - * This product combines work with different licenses. See the "NOTICE" text - * file for details on the various modules and licenses. - * The "NOTICE" text file is part of the distribution. Any derivative works - * that you distribute must include a readable copy of the "NOTICE" text file. - *******************************************************************************/ -package at.gv.egovernment.moa.id.commons.db.dao.session; - -import java.io.Serializable; -import java.util.Date; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Lob; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.Table; - -import org.hibernate.annotations.DynamicUpdate; - - - -@Entity -@DynamicUpdate(value=true) -@Table(name = "exceptionstore") -@NamedQueries({ -    @NamedQuery(name="getExceptionWithID", query = "select exceptionstore from ExceptionStore exceptionstore where exceptionstore.exid = :id"), -    @NamedQuery(name="getExceptionWithTimeOut", query = "select exceptionstore from ExceptionStore exceptionstore where exceptionstore.timestamp < :timeout") -}) - -public class ExceptionStore implements Serializable{ - -	private static final long serialVersionUID = 1L; - -	@Id -	@GeneratedValue(strategy = GenerationType.AUTO) -	@Column(name = "id", unique=true, nullable=false) -	private long id; -	 -	@Column(name = "exid", unique=true, nullable=false) -	private String exid; -		 -	@Column(name = "exception", nullable=false) -	@Lob private byte [] exception; -	 -	@Column(name = "timestamp", nullable=false) -	private Date timestamp; - -	/** -	 * @return the id -	 */ -	public long getId() { -		return id; -	} - -	/** -	 * @param id the id to set -	 */ -	public void setId(long id) { -		this.id = id; -	} - -	/** -	 * @return the exid -	 */ -	public String getExid() { -		return exid; -	} - -	/** -	 * @param exid the exid to set -	 */ -	public void setExid(String exid) { -		this.exid = exid; -	} - -	/** -	 * @return the exception -	 */ -	public byte[] getException() { -		return exception; -	} - -	/** -	 * @param exception the exception to set -	 */ -	public void setException(byte[] exception) { -		this.exception = exception; -	} - -	/** -	 * @return the timestamp -	 */ -	public Date getTimestamp() { -		return timestamp; -	} - -	/** -	 * @param timestamp the timestamp to set -	 */ -	public void setTimestamp(Date timestamp) { -		this.timestamp = timestamp; -	} - -		 -} diff --git a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/InterfederationSessionStore.java b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/InterfederationSessionStore.java index 54216edc4..c62e8be32 100644 --- a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/InterfederationSessionStore.java +++ b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/InterfederationSessionStore.java @@ -28,8 +28,6 @@ import java.util.Date;  import javax.persistence.Column;  import javax.persistence.Entity;  import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType;  import javax.persistence.Id;  import javax.persistence.JoinColumn;  import javax.persistence.ManyToOne; @@ -46,7 +44,7 @@ public class InterfederationSessionStore implements Serializable{  	private static final long serialVersionUID = 1L;  	@Id -	@GeneratedValue(strategy = GenerationType.AUTO) +	//@GeneratedValue(strategy = GenerationType.AUTO)  	@Column(name = "id", unique=true, nullable=false)  	private long id; diff --git a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/OASessionStore.java b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/OASessionStore.java index 44ae43115..a11d94af4 100644 --- a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/OASessionStore.java +++ b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/OASessionStore.java @@ -28,8 +28,6 @@ import java.util.Date;  import javax.persistence.Column;  import javax.persistence.Entity;  import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType;  import javax.persistence.Id;  import javax.persistence.JoinColumn;  import javax.persistence.ManyToOne; @@ -46,7 +44,7 @@ public class OASessionStore implements Serializable{  	private static final long serialVersionUID = 1L;  	@Id -	@GeneratedValue(strategy = GenerationType.AUTO) +	//@GeneratedValue(strategy = GenerationType.AUTO)  	@Column(name = "idOASession", unique=true, nullable=false)  	private long idOASession; diff --git a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/OldSSOSessionIDStore.java b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/OldSSOSessionIDStore.java index a85bdf2ca..195406a37 100644 --- a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/OldSSOSessionIDStore.java +++ b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/OldSSOSessionIDStore.java @@ -27,8 +27,6 @@ import java.io.Serializable;  import javax.persistence.Column;  import javax.persistence.Entity;  import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType;  import javax.persistence.Id;  import javax.persistence.JoinColumn;  import javax.persistence.ManyToOne; @@ -51,7 +49,7 @@ public class OldSSOSessionIDStore implements Serializable{  	private static final long serialVersionUID = 1L;  	@Id -	@GeneratedValue(strategy = GenerationType.AUTO) +	//@GeneratedValue(strategy = GenerationType.AUTO)  	@Column(name = "idOldSSOSession", unique=true, nullable=false)  	private long idOldSSOSession; diff --git a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/statistic/StatisticLog.java b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/statistic/StatisticLog.java index 97f26812f..6040d9870 100644 --- a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/statistic/StatisticLog.java +++ b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/statistic/StatisticLog.java @@ -27,8 +27,6 @@ import java.util.Date;  import javax.persistence.Column;  import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType;  import javax.persistence.Id;  import javax.persistence.NamedQueries;  import javax.persistence.NamedQuery; @@ -50,7 +48,7 @@ public class StatisticLog implements Serializable{  	private static final long serialVersionUID = 1L;  	@Id -	@GeneratedValue(strategy = GenerationType.AUTO) +	//@GeneratedValue(strategy = GenerationType.AUTO)  	@Column(name = "id", unique=true, nullable=false)  	private long id; diff --git a/id/server/moa-id-commons/src/main/resources/moaid.migration.beans.xml b/id/server/moa-id-commons/src/main/resources/moaid.migration.beans.xml index c758e230e..fd16e8f96 100644 --- a/id/server/moa-id-commons/src/main/resources/moaid.migration.beans.xml +++ b/id/server/moa-id-commons/src/main/resources/moaid.migration.beans.xml @@ -15,7 +15,7 @@  	<context:property-placeholder location="${moa.id.webconfig}"/>  -	<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" lazy-init="true" destroy-method="close"> +	<bean id="dataSource" class="org.apache.commons.dbcp2.BasicDataSource" lazy-init="true" destroy-method="close">  		<aop:scoped-proxy/>  		<property name="driverClassName" value="${hibernate.connection.driver_class}" />  		<property name="url" value="${hibernate.connection.url}"/> @@ -24,10 +24,10 @@  		<property name="connectionProperties" value="${dbcp.connectionProperties}" />  		<property name="initialSize" value="${dbcp.initialSize}" />		 -		<property name="maxActive" value="${dbcp.maxActive}" /> +		<property name="maxTotal" value="${dbcp.maxActive}" />  		<property name="maxIdle" value="${dbcp.maxIdle}" />  		<property name="minIdle" value="${dbcp.minIdle}" /> -		<property name="maxWait" value="${dbcp.maxWaitMillis}" /> +		<!-- property name="maxWait" value="${dbcp.maxWaitMillis}" /-->  		<property name="testOnBorrow" value="${dbcp.testOnBorrow}" />  		<property name="testOnReturn" value="${dbcp.testOnReturn}" />  		<property name="testWhileIdle" value="${dbcp.testWhileIdle}" /> @@ -23,7 +23,8 @@  			<!-- Project Version -->			  			<moa-id-version>3.2.0-OPB-Snapshot</moa-id-version> -			<moa-id-version-final>3.2.0-RC1</moa-id-version-final> +			 +			<moa-id-version-final>3.1.0-RC2</moa-id-version-final>			  			<moa-id-version-edu>3.2.0-OPB-Snapshot</moa-id-version-edu>			  			<moa-id-proxy-version>2.0.1-Snapshot</moa-id-proxy-version> @@ -32,31 +33,35 @@  			<demo-oa-version>2.0.5</demo-oa-version>  			<moa-id-module-elga_mandate_client>1.0.0-Snapshot</moa-id-module-elga_mandate_client> -		 -		 -			<moa-spss-version>2.0.5-RC1</moa-spss-version> -		 +				 +					  			<!-- Library Versions --> -			<org.springframework.version>4.2.4.RELEASE</org.springframework.version> -			<surefire.version>2.18.1</surefire.version>		 -			<opensaml.version>2.6.5</opensaml.version> -			<xmltooling.version>1.4.5</xmltooling.version> -			<cxf.version>3.1.4</cxf.version> +			<moa-spss-version>2.0.5</moa-spss-version> +			 +			<org.springframework.version>4.2.5.RELEASE</org.springframework.version> +			<surefire.version>2.19.1</surefire.version>		 +			 +			<opensaml.version>2.6.6</opensaml.version> <!-- update to v3 (v2 is end-of-life in june 2016)--> +			<xmltooling.version>1.4.6</xmltooling.version> +			 +			<hibernate.version>5.1.0.Final</hibernate.version>  <!-- update to v5 --> +			<cxf.version>3.1.5</cxf.version>			  			<struts.version>2.3.24.1</struts.version> +			  			<egovutils.version>2.0.0</egovutils.version> -			<slf4j.version>1.7.19</slf4j.version> -			<hibernate.version>4.3.11.Final</hibernate.version> +			 +			<slf4j.version>1.7.19</slf4j.version>						  			<mysql-connector.java>5.1.38</mysql-connector.java>			 -			<junit.version>4.11</junit.version> +			<junit.version>4.11</junit.version>			  			<org.apache.commons.io.version>2.4</org.apache.commons.io.version>  			<org.apache.commons.lang3.version>3.4</org.apache.commons.lang3.version>  			<org.apache.commons.collections4.version>4.1</org.apache.commons.collections4.version>  			<org.apache.commons.collections3.version>3.2.2</org.apache.commons.collections3.version>  			<jodatime.version>2.7</jodatime.version> -			<jackson-version>2.7.0</jackson-version> +			<jackson-version>2.7.3</jackson-version>  	    <apache-cli-version>1.3.1</apache-cli-version> -	    <spring-orm-version>3.1.1.RELEASE</spring-orm-version> +	    <spring-orm-version>${org.springframework.version}</spring-orm-version>      </properties> @@ -337,7 +342,7 @@  				</dependency> -            <dependency> +<!--             <dependency>                  <groupId>axis</groupId>                  <artifactId>axis</artifactId>                  <version>1.0_IAIK_1.2</version>                 @@ -360,7 +365,8 @@                 <artifactId>axis-wsdl4j</artifactId>                 <version>1.5.1</version>                 <scope>compile</scope> -            </dependency> +            </dependency> --> +                          <dependency>                  <groupId>jaxen</groupId>                  <artifactId>jaxen</artifactId> @@ -411,7 +417,7 @@              <dependency>  							 <groupId>org.apache.httpcomponents</groupId>  							 <artifactId>httpclient</artifactId> -							 <version>4.5.1</version> +							 <version>4.5.2</version>  						</dependency>                          <dependency>                  <groupId>dav4j</groupId> @@ -432,11 +438,11 @@              </dependency> --> -						<dependency> +<!-- 						<dependency>  							<groupId>org.bouncycastle</groupId>  							<artifactId>bcprov-jdk16</artifactId>  							<version>1.46</version> -						</dependency> +						</dependency> -->        			<dependency>  							<groupId>MOA.id.server</groupId> diff --git a/repository/MOA/spss/server/moa-spss-lib/2.0.5/moa-spss-lib-2.0.5.jar b/repository/MOA/spss/server/moa-spss-lib/2.0.5/moa-spss-lib-2.0.5.jarBinary files differ new file mode 100644 index 000000000..5097e2f28 --- /dev/null +++ b/repository/MOA/spss/server/moa-spss-lib/2.0.5/moa-spss-lib-2.0.5.jar | 
