diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0ab2524d1..6cbba4f24 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,7 +38,7 @@ repos: - id: eslint additional_dependencies: - eslint@8.0.1 - - http://diracproject.web.cern.ch/diracproject/externalLibraries/@sencha_eslint-plugin-extjs.7.0.0.tgz + - https://diracproject.web.cern.ch/diracproject/externalLibraries/@sencha_eslint-plugin-extjs.7.0.0.tgz - repo: https://github.com/ikamensh/flynt/ rev: "0.77" diff --git a/src/WebAppDIRAC/Core/App.py b/src/WebAppDIRAC/Core/App.py index cce986444..0d7de6e0b 100644 --- a/src/WebAppDIRAC/Core/App.py +++ b/src/WebAppDIRAC/Core/App.py @@ -102,6 +102,7 @@ def bootstrap(self): cookie_secret=str(Conf.cookieSecret()), log_function=self._logRequest, autoreload=Conf.numProcesses() < 2, + websocket_ping_interval=15, ) # please do no move this lines. The lines must be before the fork_processes diff --git a/src/WebAppDIRAC/WebApp/handler/ConfigurationManagerHandler.py b/src/WebAppDIRAC/WebApp/handler/ConfigurationManagerHandler.py index e47a144ff..b07f4a67a 100644 --- a/src/WebAppDIRAC/WebApp/handler/ConfigurationManagerHandler.py +++ b/src/WebAppDIRAC/WebApp/handler/ConfigurationManagerHandler.py @@ -103,8 +103,11 @@ def __getSubnodesForPath(self, sectionPath, retData): sectionCfg = self.__configData["cfgData"].getCFG() for section in [section for section in sectionPath.split("/") if not section.strip() == ""]: sectionCfg = sectionCfg[section] - except Exception as v: - self.log.exception("Section does not exist", f"{sectionPath} -> {v!r}") + except KeyError as err: + self.log.info("Client requested non-existent section", f"{sectionPath} -> {err!r}") + return False + except Exception as err: + self.log.exception("Error loading config section", f"{sectionPath} -> {err!r}") return False for entryName in sectionCfg.listAll(): diff --git a/src/WebAppDIRAC/WebApp/static/core/js/utils/DiracTimeSearchPanel.js b/src/WebAppDIRAC/WebApp/static/core/js/utils/DiracTimeSearchPanel.js index 1c2a6dc54..2ebc3d4b7 100644 --- a/src/WebAppDIRAC/WebApp/static/core/js/utils/DiracTimeSearchPanel.js +++ b/src/WebAppDIRAC/WebApp/static/core/js/utils/DiracTimeSearchPanel.js @@ -230,7 +230,7 @@ Ext.define("Ext.dirac.utils.DiracTimeSearchPanel", { var iSpanValue = me.cmbTimeSpan.getValue(); - if (iSpanValue == null && iSpanValue == 0) { + if (iSpanValue == null || iSpanValue == 0) { sStartDate = null; sStartTime = null; sEndDate = null; diff --git a/src/WebAppDIRAC/WebApp/static/core/js/views/tabs/RightContainer.js b/src/WebAppDIRAC/WebApp/static/core/js/views/tabs/RightContainer.js index bfc98f1b5..0c2e33680 100644 --- a/src/WebAppDIRAC/WebApp/static/core/js/views/tabs/RightContainer.js +++ b/src/WebAppDIRAC/WebApp/static/core/js/views/tabs/RightContainer.js @@ -97,10 +97,12 @@ Ext.define("Ext.dirac.views.tabs.RightContainer", { layout: "fit", closable: false, xtype: "component", + /* autoEl: { tag: "iframe", - src: "http://diracgrid.org", + src: "https://diracgrid.org", }, + */ }); }, getStateData: function () { diff --git a/src/WebAppDIRAC/WebApp/static/core/js/views/tabs/TabPanel.js b/src/WebAppDIRAC/WebApp/static/core/js/views/tabs/TabPanel.js index a6c7e6016..8477bf6ce 100644 --- a/src/WebAppDIRAC/WebApp/static/core/js/views/tabs/TabPanel.js +++ b/src/WebAppDIRAC/WebApp/static/core/js/views/tabs/TabPanel.js @@ -21,7 +21,7 @@ Ext.define("Ext.dirac.views.tabs.TabPanel", { renderTo: Ext.getBody(), defaults: { bodyPadding: 0, - scrollable: true, + scrollable: false, }, bodyStyle: { background: "#AAAAAA", diff --git a/src/WebAppDIRAC/WebApp/web.cfg b/src/WebAppDIRAC/WebApp/web.cfg index f28c78966..615f56ce1 100644 --- a/src/WebAppDIRAC/WebApp/web.cfg +++ b/src/WebAppDIRAC/WebApp/web.cfg @@ -39,7 +39,7 @@ WebApp Schema { - Help = link|http://dirac.readthedocs.io/en/latest/UserGuide/index.html + Help = link|https://dirac.readthedocs.io/en/latest/UserGuide/index.html Tools { Application Wizard = DIRAC.ApplicationWizard @@ -71,7 +71,7 @@ WebApp #ExampleApp = DIRAC.ExampleApp } - DIRAC = link|http://diracgrid.org + DIRAC = link|https://diracgrid.org } }