From 7170621cf87852a271993fa537c5c337a0b6acd5 Mon Sep 17 00:00:00 2001 From: Laurent ML Date: Wed, 29 Sep 2021 08:40:06 +0200 Subject: [PATCH] #23 upgrade to Kiban 9.15.0 fixing Kibana users pb --- doc/TODO.txt | 10 +++++++++- .../catalog/dbinterface/KibanaCatalogDbInterface.java | 9 +-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/doc/TODO.txt b/doc/TODO.txt index d2f95304..e5b11987 100644 --- a/doc/TODO.txt +++ b/doc/TODO.txt @@ -4,7 +4,10 @@ v2.2.5: ------- CPU usage on server increases ... ??? -#150 Uploading data with complex fields names leads to failed WS communication #150 +[https-jsse-nio-20000-exec-2] WARN org.springframework.web.servlet.PageNotFound - No mapping for POST /webapp/Error401 +[https-jsse-nio-20000-exec-2] WARN org.springframework.web.servlet.PageNotFound - No mapping for POST /webapp/ErrorAuth + +#150 Uploading data with complex fields names seems to lead to failed WS communication #150 - need to make server more robust to such anomaly - prevent user to make such mistake - generate a simple field name and add corresponding vocabulary entry? @@ -12,6 +15,11 @@ CPU usage on server increases ... ??? in preference menu, lockers shall not be displayed (not used at all) +count how much toolbox page is reached + +remove log msg "### adding proc task 1001" + + v3.0.0: ------- diff --git a/src/main/java/metaindex/data/catalog/dbinterface/KibanaCatalogDbInterface.java b/src/main/java/metaindex/data/catalog/dbinterface/KibanaCatalogDbInterface.java index 63f8616f..1eb2d1ef 100644 --- a/src/main/java/metaindex/data/catalog/dbinterface/KibanaCatalogDbInterface.java +++ b/src/main/java/metaindex/data/catalog/dbinterface/KibanaCatalogDbInterface.java @@ -195,14 +195,7 @@ public Boolean deleteCatalogStatisticsRoles(IUserProfileData activeUser,ICatalog public Boolean createOrUpdateCatalogStatisticsUser(IUserProfileData activeUser) throws DataProcessException { List rolesList = new ArrayList(); - - if (activeUser.getRole()==USER_ROLE.ROLE_OBSERVER) { rolesList.add("kibana_dashboard_only_user"); } - // TODO issue #23 - // kibana_user gives rights to configure the 'Kibana' app including deleting all spaces - // but is necessary for proper use of Kibana for now - // (see elasticsearch issue https://github.com/elastic/kibana/issues/51759) - else { rolesList.add("kibana_user"); } - + for (Integer catId : activeUser.getUserCatalogsIds()) { ICatalog c = Globals.Get().getCatalogsMgr().getCatalog(catId); if (c==null) {