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 /id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols | |
parent | 8746e1a7e3e4a3d19922acf81a952bf27618989f (diff) | |
download | moa-id-spss-54a26c8e353069abacefe5232f8270bec6b3cc60.tar.gz moa-id-spss-54a26c8e353069abacefe5232f8270bec6b3cc60.tar.bz2 moa-id-spss-54a26c8e353069abacefe5232f8270bec6b3cc60.zip |
update libs
Diffstat (limited to 'id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/SingleLogOutAction.java | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } |