Commit 4e45d24fd1882679aec123c285a84835c5d7d4b3

Authored by Volodymyr Babak
1 parent 4e8c05f6

Fixed IE issue with redirect. 308 return code doesn't work. 303 does. All other …

…browsers are verified agains 303 code as well.
@@ -107,7 +107,7 @@ public class AuthController extends BaseController { @@ -107,7 +107,7 @@ public class AuthController extends BaseController {
107 try { 107 try {
108 URI location = new URI(createPasswordURI + "?activateToken=" + activateToken); 108 URI location = new URI(createPasswordURI + "?activateToken=" + activateToken);
109 headers.setLocation(location); 109 headers.setLocation(location);
110 - responseStatus = HttpStatus.PERMANENT_REDIRECT; 110 + responseStatus = HttpStatus.SEE_OTHER;
111 } catch (URISyntaxException e) { 111 } catch (URISyntaxException e) {
112 log.error("Unable to create URI with address [{}]", createPasswordURI); 112 log.error("Unable to create URI with address [{}]", createPasswordURI);
113 responseStatus = HttpStatus.BAD_REQUEST; 113 responseStatus = HttpStatus.BAD_REQUEST;
@@ -146,7 +146,7 @@ public class AuthController extends BaseController { @@ -146,7 +146,7 @@ public class AuthController extends BaseController {
146 try { 146 try {
147 URI location = new URI(resetPasswordURI + "?resetToken=" + resetToken); 147 URI location = new URI(resetPasswordURI + "?resetToken=" + resetToken);
148 headers.setLocation(location); 148 headers.setLocation(location);
149 - responseStatus = HttpStatus.PERMANENT_REDIRECT; 149 + responseStatus = HttpStatus.SEE_OTHER;
150 } catch (URISyntaxException e) { 150 } catch (URISyntaxException e) {
151 log.error("Unable to create URI with address [{}]", resetPasswordURI); 151 log.error("Unable to create URI with address [{}]", resetPasswordURI);
152 responseStatus = HttpStatus.BAD_REQUEST; 152 responseStatus = HttpStatus.BAD_REQUEST;