From 44a1389dd75738774ccb12ecb9371fa18767ba46 Mon Sep 17 00:00:00 2001 From: Benjamin Gamard Date: Sun, 4 Mar 2018 16:10:32 +0100 Subject: [PATCH] inbox service: catch all errors to avoid service crash --- .../main/java/com/sismics/docs/core/service/InboxService.java | 2 +- docs-web/src/main/webapp/src/locale/en.json | 2 +- docs-web/src/main/webapp/src/partial/docs/document.html | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs-core/src/main/java/com/sismics/docs/core/service/InboxService.java b/docs-core/src/main/java/com/sismics/docs/core/service/InboxService.java index a94b5777..2f2ed03c 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/service/InboxService.java +++ b/docs-core/src/main/java/com/sismics/docs/core/service/InboxService.java @@ -56,7 +56,7 @@ public class InboxService extends AbstractScheduledService { protected void runOneIteration() { try { syncInbox(); - } catch (Exception e) { + } catch (Throwable e) { log.error("Exception during inbox synching", e); } } diff --git a/docs-web/src/main/webapp/src/locale/en.json b/docs-web/src/main/webapp/src/locale/en.json index 2b9e11e4..158b9f1b 100644 --- a/docs-web/src/main/webapp/src/locale/en.json +++ b/docs-web/src/main/webapp/src/locale/en.json @@ -291,7 +291,7 @@ "type_approve": "Approve", "type_validate": "Validate", "target": "Assigned to", - "target_help": "Approve: Review and continue the workflow
Validate: Accept or reject the review", + "target_help": "Approve: Accept or reject the review
Validate: Review and continue the workflow", "add_step": "Add a workflow step" } }, diff --git a/docs-web/src/main/webapp/src/partial/docs/document.html b/docs-web/src/main/webapp/src/partial/docs/document.html index 0d3bc686..42f07e83 100644 --- a/docs-web/src/main/webapp/src/partial/docs/document.html +++ b/docs-web/src/main/webapp/src/partial/docs/document.html @@ -38,7 +38,7 @@
- +
@@ -188,6 +188,8 @@
+ Add this search query on the home +