go to post Dmitry Maslennikov · May 2, 2021 So, you may have something like this in your CSP file <csp:class super="%CSP.Page,App.Utils"> By default, it has only %CSP.Page class, but you may have some other class, where you may the logic with method OnPreHTTPafter
go to post Dmitry Maslennikov · May 2, 2021 Where did you find OnPreHTTPafter? There is only OnPreHTTP method, probably it's a custom method in your application. <script language=objectscript method=OnPreHTTP arguments="" returntype=%Boolean> Quit 1 </script>
go to post Dmitry Maslennikov · Apr 27, 2021 Documentation about installation IRIS in macOS. The easiest way to try it is to start it with docker. docker run -d --name irishealth -p 52773:52773 store/intersystems/irishealth-community:2021.1.0.205.0 With installed docker when this command will successfully download the image, and starts IRIS for Health, you may try to open it, as usual by URL http://localhost:52773/csp/sys/UtilHome.csp, with default login and password, but will ask to change it. For Ensemble docker run -d --name ensemble -p 52772:52772 daimor/intersystems-ensemble:2018.1 But, be aware, that all your changes will disappear when the container will be stopped and deleted.
go to post Dmitry Maslennikov · Apr 26, 2021 Are you sure, that the process was terminated? You should check cconsole.log/messages.log journal records, you should find there where transaction was started, you changed the data, check if change was really in transaction and any other records within the process, it should be commit or rollback. In any case, when restart Cache, it should terminate any unfinished processes and rollback data.
go to post Dmitry Maslennikov · Apr 26, 2021 It’s connected with a process, until it’s alive, transaction will be open. When process will be finished by any reasons, it should rollback any transactions left open.
go to post Dmitry Maslennikov · Apr 24, 2021 RAR is proprietary format, I would recommend 7zip, which works even better, and for free
go to post Dmitry Maslennikov · Apr 24, 2021 When I replied it was in Dockerfile Any switch to root in Dockerfile, should return back the original user irisowner back USER irisowner Or this way USER ${ISC_PACKAGE_MGRUSER}
go to post Dmitry Maslennikov · Apr 24, 2021 That’s interesting, somebody dislike that new ability? With this language server in fact, it’s possible to add the ability to compile ObjectScript code to any editor which got the support for Language Server Protocol, and it includes even vim/neovim, emacs, and some other editors. If you would like to add this to any supported editor and need help, contact me.
go to post Dmitry Maslennikov · Apr 24, 2021 Could you explain the term you used, Language Server? Language Server now used for editors. And I see no reactions to it in your article. And InterSystems already implemented real language server for VSCode, and I have implemented one more for any other editor.
go to post Dmitry Maslennikov · Apr 23, 2021 just set it to the local array or global, will sort it set arr("cba")="" set arr("abc")="" zw arr
go to post Dmitry Maslennikov · Apr 21, 2021 Some example of code in Go package main import ( "fmt" "os" "strings" "github.com/caretdev/go-irisnative/src/connection" ) func main() { var addr = "localhost:1972" var namespace = "%SYS" var login = "_SYSTEM" var password = "SYS" connection, err := connection.Connect(addr, namespace, login, password) if err != nil { println("Connection failed:", err.Error()) os.Exit(1) } defer connection.Disconnect() // Kill ^A connection.GlobalKill("A") // Set ^A(1) = 1 connection.GlobalSet("A", 1, 1) // Set ^A(1, 2) = "test" connection.GlobalSet("A", "test", 1, 1) // Set ^A(1, "2", 3) = "123" connection.GlobalSet("A", 123, 1, "a", 3) // Set ^A(2, 1) = "21test" connection.GlobalSet("A", "21test", 2, 1) // Set ^A(3, 1) = "test31" connection.GlobalSet("A", "test31", 3, 1) var globalFull = func(global string, subs ...interface{}) string { return fmt.Sprintf("^A(%v)", strings.Trim(strings.Join(strings.Split(fmt.Sprintf("%+v", subs), " "), ", "), "[]")) } var queryGlobal func(global string, subs ...interface{}) queryGlobal = func(global string, subs ...interface{}) { for i := ""; ; { if hasNext, _ := connection.GlobalNext("A", &i, subs...); !hasNext { break } var allSubs = []interface{}{i} allSubs = append(subs, allSubs...) hasValue, hasSubNode := connection.GlobalIsDefined("A", allSubs...) if hasValue { var value string connection.GlobalGet("A", &value, allSubs...) fmt.Printf("%v = %#v\n", globalFull("A", allSubs...), value) } if hasSubNode { queryGlobal("A", allSubs...) } } } queryGlobal("A") }
go to post Dmitry Maslennikov · Apr 21, 2021 Btw, this project is written in Go, and uses a freshly developed go-irisnative project, as a connector to IRIS. With Go I can read and change data directly in globals, execute SQL, and work with objects.
go to post Dmitry Maslennikov · Apr 21, 2021 As in Studio, in VSCode there is a command, View Others, with hotkey ctrl/cmd+shift+V
go to post Dmitry Maslennikov · Apr 20, 2021 Those symbols in any way do not exist in Windows-1251 at all. You can store it in CP866 or UTF-8 only
go to post Dmitry Maslennikov · Apr 20, 2021 Those are special symbols used to draw UI in textual interfaces and no way to get any readable text from it, it can be translated to the same symbols only, just in the different codepage.
go to post Dmitry Maslennikov · Apr 20, 2021 VSCode and Cache server can be far from each other, on different machines, so, it’s not as easy to implement. And as I said, it’s not a task for VSCode, it’s mostly a deployment task, which have to be done separately.
go to post Dmitry Maslennikov · Apr 18, 2021 I read the note, somebody will not read and will use it in production. Again, if you need root access in real-time inside the container, you doing something wrong. If you need to install anything, you have to do it with Dockerfile, if you need to change some system settings you have to do it in Dockerfile. The container is just to run a particular application inside, and it gets permissions to fit its needs. Docker containers completely different from Virtual Machines, and it's important to remember. One container one application, in our case it's IRIS. The state of the container does not matter at all, what's matters is what in the image. Container may die at any time for any reason, and its content has to be restored from the image. And your image has to be prepared for this case. If your delete the container and restart it, will break your application, that something wrong with it, and have to be fixed with Dockerfile. And even, any Dockerfile can be configured with HEALTHCHECK, which has to check periodically the state of the running application inside, and with control from outside, like with Kubernetes, it will sacrifice container with no expected state and will start it the state from the image. And basic IRIS image produced by InterSystems has it as well. So, if you just stop IRIS inside, the container will be destroyed after a while. Again container it's not a virtual machine, and in any size of organizations, should not be any restrictions to having only direct access inside.
go to post Dmitry Maslennikov · Apr 18, 2021 This is a completely very bad idea. You have several issues with your Dockerfile, for instance Hardcoded password for irisowner and even for root IRIS starts with root, instead of irisowner user Administrators of the running instance should always have access from the Docker host, or through Kubernetes. In container should appear only what supposed to be in a Production environment, no backdoors of any kind. Pinging @Luca Ravazzolo for comments
go to post Dmitry Maslennikov · Apr 16, 2021 Demo server means, that it was already well prepared to be ready for demo. If you need any such changes, you have to change it in the original repo, and it should be re-deployed with new settings. Consider this technique as Infrastructure as code