You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@clerezza.apache.org by re...@apache.org on 2010/08/05 19:28:18 UTC
svn commit: r982702 -
/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.security.foafssl/core/src/main/scala/org/apache/clerezza/foafssl/auth/FoafSslAuthentication.scala
Author: reto
Date: Thu Aug 5 17:28:18 2010
New Revision: 982702
URL: http://svn.apache.org/viewvc?rev=982702&view=rev
Log:
prevent exception when using non-foaf+ssl client certificate
Modified:
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.security.foafssl/core/src/main/scala/org/apache/clerezza/foafssl/auth/FoafSslAuthentication.scala
Modified: incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.security.foafssl/core/src/main/scala/org/apache/clerezza/foafssl/auth/FoafSslAuthentication.scala
URL: http://svn.apache.org/viewvc/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.security.foafssl/core/src/main/scala/org/apache/clerezza/foafssl/auth/FoafSslAuthentication.scala?rev=982702&r1=982701&r2=982702&view=diff
==============================================================================
--- incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.security.foafssl/core/src/main/scala/org/apache/clerezza/foafssl/auth/FoafSslAuthentication.scala (original)
+++ incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.security.foafssl/core/src/main/scala/org/apache/clerezza/foafssl/auth/FoafSslAuthentication.scala Thu Aug 5 17:28:18 2010
@@ -50,7 +50,12 @@ class FoafSslAuthentication extends Weig
return null
} else {
val webIdUriRefs = Utilities.getClaimedWebIds(certificates)
- Utilities.cretateUsernameForWebId(webIdUriRefs(0))
+ if (webIdUriRefs.size > 0) {
+ Utilities.cretateUsernameForWebId(webIdUriRefs(0))
+ } else {
+ null
+ }
+
}
}