You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: export/WebTerminal/Installer.xml
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,8 @@ This method is invoked when a class is compiled.</Description>
84
84
set cspProperties("AutheEnabled") = 64
85
85
set cspProperties("Description") = "An application representing the open socket for /terminal application. Required since 2016.* Cache versions changed WebSocket behavior. PLEASE LEAVE THIS APPLICATION UNAUTHENTICATED, but do not worry: the socket won't accept anyone without the key."
86
86
set cspProperties("DispatchClass") = ""
87
-
set cspProperties("MatchRoles")=":%DB_CACHESYS:" _ ..GetDBRole(dbdir)
87
+
set role = ..GetDBRole(dbdir)
88
+
set cspProperties("MatchRoles")=":%DB_CACHESYS" _ $case($get(role)'="", 1: ":"_role, :"")
88
89
do ..RegisterWebApplication("/terminalsocket", .cspProperties)
89
90
set status = ##Class(Config.Namespaces).Get("%All")
90
91
if ($$$ISERR(status)) { // no namespace %All
@@ -133,8 +134,8 @@ This method is invoked when a class is 'uncompiled'.</Description>
133
134
write !, "Uninstalling WebTerminal application from " _ $NAMESPACE
134
135
set ns = $NAMESPACE // has to be package home namespace!
135
136
if ($get(^WebTerminal("HomeNamespace")) = "") {
136
-
set msg = "Terminal home namespace is not defined! Uninstalling will be skipped."
137
-
set msg = msg _ $Char(13,10) _ "Set ^WebTerminal(""HomeNamespace"") global equal to home namespace"
137
+
set msg = "Please, set ^WebTerminal(""HomeNamespace"") global equal to " _
138
+
"the namespace WebTerminal was installed to before uninstalling."
0 commit comments