go to post Jiri Svoboda · Apr 2, 2019 Seriously, this the only this year's April Fools joke I fell for. Congratulations, Timur Safin!
go to post Jiri Svoboda · Feb 17, 2019 Hi Dimitry,the new version refuses to work with installations with V2 Atelier api, I always get the error message:Failed to load page "/api/atelier/v3/JISD/docnames/CLS/*", status code: 404Will you support older installations with V2 API support only?Anyway ...Thanks for creating the extension. It seriously rocks!Jiri
go to post Jiri Svoboda · Feb 13, 2019 Thank you Bernd, I am interested, I will write a WRC request and reference you.Kind regards,Jiri
go to post Jiri Svoboda · Jan 23, 2019 In case your back-end logic is not too complex, I would suggest to migrate your back-end code to some other technology (we have great experience with node.js), and use Caché just as a datastore, not as a rendering engine. You have a variety of options on how to connect to Caché (REST, RabbitMQ etc ...)Then your license units will limit just the number of concurrent datastore connections, not total number of connected clients.In case you choose some popular language (node.js), this has an added benefit that you can draw from the wealth of libraries the node.js ecosystem provides. No more re-inventing the wheel in Caché.You mention rendering html on the backend -- there is about a gazillion javascript templating libraries out there. Also, you get to work in some more modern language than COS, and, possibly, with more mature development tools.That is just how I would do things after working with Caché for four years. Sorry InterSystems. On the other hand, I still think the database is blazing fast :)
go to post Jiri Svoboda · Jan 21, 2019 Thank you Eduard and Dimitry, I was able, eventually, to get correct behavior with RewriteEngine on RewriteRule ^ https://%{SERVER_NAME}:57782%{REQUEST_URI} [END,QSA,R=307] Redirecting with R=permanent somehow still lost namespace information.
go to post Jiri Svoboda · Jan 21, 2019 Thanks Dimitry, for your response.We have our own PKI deployed and configured so trust chain issues are not a problem for us.Our problem is somewhat different.Currently, we have (in our httpd.conf) a Redirect directive on all incoming http traffic on port 57772 to https on a different port, but this setup breaks add-ins functionality. The SOAP wizard in particular, which we need to use quite frequently, always executes in the context of %SYS namespace when SSL is enabled ( see attached screenshot).We always need to temporarily disable SSL to use this wizard, but this is a hassle and, also, I guess that SSL usage should be seamless to the developer when configured correctly, so I suspect we might be doing something the wrong way.
go to post Jiri Svoboda · Jan 21, 2019 Thanks Eduard for your answer, perhaps my original question was a bit vague, I have elaborated somewhat on my issue in response to Dimitry's post.
go to post Jiri Svoboda · Jan 3, 2019 With profound apologies, I feel the compulsion to add an "don't do that" comment.Use UUIDs instead of database IDs.Why? The reason is quite simple: With database IDs, you do not have an ID until after the object is saved into the database. Are you sure you won't need an ID before saving the object, ever? Also, saving the object just to get an ID is bad practice IMO, as it possibly encourages mixing of database layer logic with other layers.Also, with UUIDs, implementing your desired functionality will become trivial. Just implement GetObjectByUUID using ..%ClassName() in base class.
go to post Jiri Svoboda · Dec 23, 2018 Source control should be standard practice these days.It is number one -- the most important item -- of the Joel test.https://www.joelonsoftware.com/2000/08/09/the-joel-test-12-steps-to-bett...
go to post Jiri Svoboda · Nov 9, 2018 Thanks for the reply. I eventually solved my task via $ZF(-1) and the 'jq' tool.
go to post Jiri Svoboda · Oct 3, 2018 Debugging COS in VS code - that sounds really interesting. Is it part of some George James Software product?
go to post Jiri Svoboda · May 11, 2018 I cannot stress the importance of network effect enough.Recently, we have been implementing microservices written in node.js around our central Caché database and according to my experience chances are, that for all but the most obscure use cases, a library solving your particular problem exists. Features that would take days to implement in COS from scratch are generally solved with one or two api calls.
go to post Jiri Svoboda · Mar 9, 2018 Thanks for all the responses, it turned out Robert Cemper's solution fit my needs perfectly.
go to post Jiri Svoboda · Sep 14, 2017 I would not mind if it were statically typed, but I know there are lots of people who would prefer otherwise. Anyway, I would like it to have some way of declaring strings like Ruby's heredoc and string interpolation, because my code is full of ""s, """"s and "_var_" (those all in combination decrease legibility significantly IMO). variable = <<-TERMINATOR Your free trial will expire in #{days_until_expiration} days. Please update your billing information. TERMINATOR Also, lambdas and closures would be nice.
go to post Jiri Svoboda · Aug 8, 2017 ISC advises against using %objlasterror in production code.citation from http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...Using the %objlasterror error status variableThe Test class includes references to %objlasterror, which should be used as a debug resource only (for example, in development code that does not yet report errors properly), so that the underlying problem can be diagnosed and the offending code's error reporting can be corrected. It is appropriate for such code to kill %objlasterror whenever it uses an error status that is an expected condition and not a reportable error.
go to post Jiri Svoboda · Jul 20, 2017 Hello, I would like to read it, I think know some little Russian :)Thanks, Jiri
go to post Jiri Svoboda · Jul 18, 2017 That is really cool !I would be interested in the metrics you measured. What was the measurement methodology? What is the performance difference? Is your thesis available somewhere?Jiri
go to post Jiri Svoboda · Jun 7, 2017 Greetings, I have been dealing with the problem of securing the Portal on our Linux server a while ago, so I am pasting my notes on the necessary steps below. Hopefully, they will be of some use. httpd for SSL-enabled Caché Management Portal Download necessary tarballs: wget http://mirror.dkm.cz/apache//httpd/httpd-2.4.25.tar.gz wget http://apache.miloslavbrada.cz//apr/apr-util-1.5.4.tar.bz2 wget http://mirror.hosting90.cz/apache//apr/apr-1.5.2.tar.gz Extract tar xvvf ./httpd-2.4.25.tar.gz tar xvvf ./apr-util-1.5.4.tar.bz2 tar xvvf ./apr-1.5.2.tar.gz Copy Apache Portable Runtime sources in apache srclib directory cp -r ./apr-1.5.2 ./httpd-2.4.25/srclib/apr cp -r ./apr-util-1.5.4 ./httpd-2.4.25/srclib/apr-util Configure cd httpd-2.4.25 ./configure --prefix=/cachesys/httpd --enable-ssl --enable-so --with-included-apr \ --enable-mods-static="log_config mime alias unixd authz_core rewrite ssl" --without-gdbm \ --without-ndbm --without-berkeley-db --with-expat=builtin --with-mpm=worker --disable-shared Compile make Kill the original httpd kill `cat /cachesys/httpd/logs/httpd.pid` Backup the old httpd sudo mv /cachesys/httpd /cachesys/httpd.old Install the new httpd sudo make install Change /cachesys/httpd/conf/httpd.conf to look like this: ServerRoot "/cachesys/httpd" DocumentRoot "/cachesys/csp" CSPModulePath /cachesys/csp/bin/ LoadModule csp_module_sa /cachesys/csp/bin/CSPa24.so User cacheusr Group cacheusr <Location /> CSP On SetHandler csp-handler-sa </Location> ServerName localhost PidFile logs/httpd.pid TraceEnable off Timeout 300 KeepAlive On MaxKeepAliveRequests 0 KeepAliveTimeout 120 UseCanonicalName Off <VirtualHost *:57772> Redirect "/" "https://your.server.name:57782/" </VirtualHost> <VirtualHost *:57782> SSLEngine On SSLCertificateFile "/path/to/your/public.key" SSLCertificateKeyFile "/path/to/your/private.key" <Directory /> Options MultiViews FollowSymLinks AllowOverride None Require all granted <FilesMatch "\.(log|ini|pid|exe|so)$"> Require all denied </FilesMatch> </Directory> <Location "/csp/bin/Systems/"> SetHandler csp-handler-sa </Location> <Location "/csp/bin/RunTime/"> SetHandler csp-handler-sa </Location> AddHandler csp-handler-sa csp cls cxw zen </VirtualHost> TypesConfig conf/mime.types HostnameLookups Off ErrorLog logs/error.log LogLevel error LogFormat "%h %l %u %t \"%r\" %>s %b" common #CustomLog logs/access.log common StartServers 1 MinSpareThreads 5 MaxSpareThreads 15 ThreadLimit 25 ThreadsPerChild 5 MaxClients 25 MaxRequestsPerChild 200 ServerTokens Prod Listen 57772 Listen 57782 Finally, launch the new httpd /cachesys/httpd/bin/httpd -d /cachesys/httpd -c "Listen 57772" That's it. IMO, SSL really should be on by default in 2017. Jiri
go to post Jiri Svoboda · Feb 3, 2017 Oh, I was trying to coerce a wrong method apparently ... thanks!