Unverified Commit 96406ce9 authored by kamaleeswary's avatar kamaleeswary Committed by GitHub
Browse files

Issue #SB-28990 fix: Mobile App: User not able to add the Mobile numb… (#1063)

* Issue #SB-28990 fix: Mobile App: User not able to add the Mobile number at the Profile page.

* Issue #SB-28990 fix: changed the exception response code

* Issue #SB-28990 fix: minor change
Showing with 7 additions and 0 deletions
+7 -0
......@@ -478,6 +478,12 @@ public class BaseController extends Controller {
response.getParams().setErr("USER_CONSENT_NOT_FOUND");
response.getParams().setStatus("USER_CONSENT_NOT_FOUND");
}
if (request.path() != null
&& (request.path().startsWith("/v1/user/get/"))
&& ("resourceNotFound".equalsIgnoreCase(exception.getResponseCode().name()))) {
response.getParams().setErr("USER_NOT_FOUND");
response.getParams().setStatus("USER_NOT_FOUND");
}
}
/**
......
......@@ -30,6 +30,7 @@ GET /private/user/v1/read/:externalId @controllers.usermanagement.User
GET /v1/user/managed/:lua_uuid @controllers.usermanagement.UserController.getManagedUsers(lua_uuid:String, request: play.mvc.Http.Request)
POST /v1/user/getuser @controllers.usermanagement.UserController.getUserByLoginId(request: play.mvc.Http.Request)
GET /v1/user/get/:idType/:id @controllers.usermanagement.UserController.getUserByKey(idType:String, id:String, request: play.mvc.Http.Request)
GET /v2/user/get/:idType/:id @controllers.usermanagement.UserController.getUserByKey(idType:String, id:String, request: play.mvc.Http.Request)
POST /private/user/v1/lookup @controllers.usermanagement.UserController.userLookup(request: play.mvc.Http.Request)
GET /v1/user/exists/:key/:value @controllers.usermanagement.UserController.isUserValid(key:String, value:String, request: play.mvc.Http.Request)
GET /v2/user/exists/:key/:value @controllers.usermanagement.UserController.userExists(key:String, value:String, request: play.mvc.Http.Request)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment