From 1ca95fc0b5e826e3693aac2f40f42b111b28d121 Mon Sep 17 00:00:00 2001 From: Viktor Klang Date: Tue, 30 Mar 2010 21:20:01 +0200 Subject: [PATCH 1/2] Added missing dependency --- project/build/AkkaProject.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/project/build/AkkaProject.scala b/project/build/AkkaProject.scala index c860ce5625..2293800c42 100644 --- a/project/build/AkkaProject.scala +++ b/project/build/AkkaProject.scala @@ -365,6 +365,7 @@ class AkkaParent(info: ProjectInfo) extends DefaultProject(info) { class AkkaSampleSecurityProject(info: ProjectInfo) extends DefaultProject(info) { val jsr311 = "javax.ws.rs" % "jsr311-api" % "1.1.1" % "compile" val jsr250 = "javax.annotation" % "jsr250-api" % "1.0" + val commons_codec = "commons-codec" % "commons-codec" % "1.3" % "compile" lazy val dist = deployTask(info, deployPath) dependsOn(`package`) describedAs("Deploying") } From 933a7c806f9fd637d6360802f05086bfd1e3f973 Mon Sep 17 00:00:00 2001 From: Viktor Klang Date: Tue, 30 Mar 2010 22:10:49 +0200 Subject: [PATCH 2/2] Fixed reported exception in Akka-Security --- akka-security/src/main/scala/Security.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/akka-security/src/main/scala/Security.scala b/akka-security/src/main/scala/Security.scala index 8a144f4282..cded5cde0b 100644 --- a/akka-security/src/main/scala/Security.scala +++ b/akka-security/src/main/scala/Security.scala @@ -87,7 +87,8 @@ class AkkaSecurityFilterFactory extends ResourceFilterFactory with Logging { override def filter(request: ContainerRequest): ContainerRequest = rolesAllowed match { case Some(roles) => { - (authenticator.!![AnyRef](Authenticate(request, roles), 10000)) match { + val result : Option[AnyRef] = authenticator !! Authenticate(request, roles) + result match { case Some(OK) => request case Some(r) if r.isInstanceOf[Response] => throw new WebApplicationException(r.asInstanceOf[Response])