Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r3641 - trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService

Subject: perfsonar development work

List archive

perfsonar: r3641 - trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r3641 - trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService
  • Date: Thu, 10 Apr 2008 03:44:30 -0400

Author: rodriguez
Date: 2008-04-10 03:44:30 -0400 (Thu, 10 Apr 2008)
New Revision: 3641

Modified:

trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/AuthNAction.java
Log:
- Analyze the WSSecHeaderException and set the properly error code

Modified:
trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/AuthNAction.java
===================================================================
---
trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/AuthNAction.java
2008-04-10 07:20:27 UTC (rev 3640)
+++
trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/AuthNAction.java
2008-04-10 07:44:30 UTC (rev 3641)
@@ -155,7 +155,13 @@
throw e;
} catch (WSSecurityException e) {
logger.error("WSSecurityException: "+e.getMessage());
- throw new
PerfSONARException("error.authn.wssec",e.getMessage(),e);
+ String errorCode="error.authn.wssec";
+ if
((e.getErrorCode()==WSSecurityException.INVALID_SECURITY)&&
+
(e.getMessage().contains("(WSSecurityEngine: Invalid timestamp The security
semantics of message have expired)"))) {
+ // This means the timestamp has expired
+ errorCode="error.authn.timestamp";
+ }
+ throw new
PerfSONARException(errorCode,e.getMessage(),e);
} catch (Exception e) {
e.printStackTrace();
String m = "Error getting the SOAP envelope of the
authN request";



  • perfsonar: r3641 - trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService, svnlog, 04/10/2008

Archive powered by MHonArc 2.6.16.

Top of Page