From 2ac76c7937ff462f99c5713ab99c6230a11cbcf5 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Tue, 8 Apr 2014 23:04:40 -0700 Subject: Fixing 500 on New Account Login Bug. AccountRedirectResource was expecting the user to have a UserRecord, but new users did not have one. This caused JsonRequestProvider to throw an IOException and AccountRedirectResource to return 500. JsonRequestProvider now throws a NotFoundException on 404 and AccountRedirectResource properly handles it. --- src/com/p4square/grow/frontend/NotFoundException.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/com/p4square/grow/frontend/NotFoundException.java (limited to 'src/com/p4square/grow/frontend/NotFoundException.java') diff --git a/src/com/p4square/grow/frontend/NotFoundException.java b/src/com/p4square/grow/frontend/NotFoundException.java new file mode 100644 index 0000000..dfa2a4c --- /dev/null +++ b/src/com/p4square/grow/frontend/NotFoundException.java @@ -0,0 +1,13 @@ +/* + * Copyright 2014 Jesse Morgan + */ + +package com.p4square.grow.frontend; + +import java.io.IOException; + +public class NotFoundException extends IOException { + public NotFoundException(final String message) { + super(message); + } +} -- cgit v1.2.3