You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by se...@apache.org on 2021/01/27 05:34:14 UTC

[openmeetings] branch feature/OPENMEETINGS-2560-improve-api-error-response created (now 212b360)

This is an automated email from the ASF dual-hosted git repository.

sebawagner pushed a change to branch feature/OPENMEETINGS-2560-improve-api-error-response
in repository https://gitbox.apache.org/repos/asf/openmeetings.git.


      at 212b360  OPENMEETINGS-2560 Improve response to return the actual error to client.

This branch includes the following new commits:

     new 212b360  OPENMEETINGS-2560 Improve response to return the actual error to client.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[openmeetings] 01/01: OPENMEETINGS-2560 Improve response to return the actual error to client.

Posted by se...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sebawagner pushed a commit to branch feature/OPENMEETINGS-2560-improve-api-error-response
in repository https://gitbox.apache.org/repos/asf/openmeetings.git

commit 212b360cf56786d220683ebb9bf8bfe5f13b644e
Author: Sebastian Wagner <se...@apache.org>
AuthorDate: Wed Jan 27 18:33:56 2021 +1300

    OPENMEETINGS-2560 Improve response to return the actual error to client.
---
 .../java/org/apache/openmeetings/webservice/UserWebService.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/UserWebService.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/UserWebService.java
index 7d469de..c85aca5 100644
--- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/UserWebService.java
+++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/UserWebService.java
@@ -156,7 +156,7 @@ public class UserWebService extends BaseWebService {
 			@WebParam(name="sid") @QueryParam("sid") String sid
 			, @WebParam(name="user") @FormParam("user") UserDTO user
 			, @WebParam(name="confirm") @FormParam("confirm") Boolean confirm
-			)
+			) throws ServiceException
 	{
 		return performCall(sid, User.Right.SOAP, sd -> {
 			if (!isAllowRegisterSoap()) {
@@ -180,7 +180,7 @@ public class UserWebService extends BaseWebService {
 				user.setLanguageId(1L);
 			}
 			User jsonUser = user.get(userDao, groupDao);
-			IValidator<String> passValidator = new StrongPasswordValidator(true, jsonUser);
+			IValidator<String> passValidator = new StrongPasswordValidator(false, jsonUser);
 			Validatable<String> passVal = new Validatable<>(user.getPassword());
 			passValidator.validate(passVal);
 			if (!passVal.isValid()) {
@@ -294,7 +294,7 @@ public class UserWebService extends BaseWebService {
 			@WebParam(name="sid") @QueryParam("sid") String sid
 			, @WebParam(name="user") @FormParam("user") ExternalUserDTO user
 			, @WebParam(name="options") @FormParam("options") RoomOptionsDTO options
-			)
+			) throws ServiceException
 	{
 		return performCall(sid, User.Right.SOAP, sd -> {
 			if (Strings.isEmpty(user.getExternalId()) || Strings.isEmpty(user.getExternalType())) {