From 070815c95ce5e1f8db401650d56620ca0179c2f4 Mon Sep 17 00:00:00 2001 From: Ezequiel Bergamaschi Date: Wed, 26 Aug 2015 23:38:41 -0300 Subject: [PATCH] fix api rest for get user by email, email was trimmed --- .../src/main/java/com/wisemapping/rest/AdminController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wise-webapp/src/main/java/com/wisemapping/rest/AdminController.java b/wise-webapp/src/main/java/com/wisemapping/rest/AdminController.java index 6290026d..b2df9709 100644 --- a/wise-webapp/src/main/java/com/wisemapping/rest/AdminController.java +++ b/wise-webapp/src/main/java/com/wisemapping/rest/AdminController.java @@ -72,7 +72,7 @@ public class AdminController extends BaseController { } @ApiOperation("Note: Administration permissions required.") - @RequestMapping(method = RequestMethod.GET, value = "admin/users/email/{email}", produces = {"application/json", "application/xml"}) + @RequestMapping(method = RequestMethod.GET, value = "admin/users/email/{email:.+}", produces = {"application/json", "application/xml"}) @ResponseBody public RestUser getUserByEmail(@PathVariable String email) throws IOException { final User user = userService.getUserBy(email);