You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2026/02/17 17:33:41 UTC

(james-project) branch master updated: [FIX] VacationRoutes error handling 500 instead of 500 (#2942)

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

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git


The following commit(s) were added to refs/heads/master by this push:
     new 63d1fdcfe7 [FIX] VacationRoutes error handling 500 instead of 500 (#2942)
63d1fdcfe7 is described below

commit 63d1fdcfe7c6d5813a474d16315b035dd334a459
Author: Benoit TELLIER <bt...@linagora.com>
AuthorDate: Tue Feb 17 18:33:36 2026 +0100

    [FIX] VacationRoutes error handling 500 instead of 500 (#2942)
---
 .../src/main/java/org/apache/james/webadmin/routes/VacationRoutes.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/protocols/webadmin/webadmin-data/src/main/java/org/apache/james/webadmin/routes/VacationRoutes.java b/server/protocols/webadmin/webadmin-data/src/main/java/org/apache/james/webadmin/routes/VacationRoutes.java
index 8d518d9352..dc7c46ba95 100644
--- a/server/protocols/webadmin/webadmin-data/src/main/java/org/apache/james/webadmin/routes/VacationRoutes.java
+++ b/server/protocols/webadmin/webadmin-data/src/main/java/org/apache/james/webadmin/routes/VacationRoutes.java
@@ -134,7 +134,7 @@ public class VacationRoutes implements Routes {
         try {
             return usersRepository.contains(username);
         } catch (UsersRepositoryException e) {
-            return false;
+            throw new RuntimeException(e);
         }
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org