|
@@ -438,6 +438,9 @@ public class AuthenticationFilter implements Filter {
|
|
|
for (Cookie cookie : cookies) {
|
|
|
if (cookie.getName().equals(AuthenticatedURL.AUTH_COOKIE)) {
|
|
|
tokenStr = cookie.getValue();
|
|
|
+ if (tokenStr.isEmpty()) {
|
|
|
+ throw new AuthenticationException("Unauthorized access");
|
|
|
+ }
|
|
|
try {
|
|
|
tokenStr = signer.verifyAndExtract(tokenStr);
|
|
|
} catch (SignerException ex) {
|