Question Martin Nielsen · May 20 %Stream files do not get purged from the <namespace>/stream/ folder on the system disk As the title says, I've noticed that files that gets saved to the disk where the database lies (.DAT file) in the stream directory, does not get purged. Is this expected and do we need to create our own schedule task to clean this folder up? I could only find old answers that say this, however I find it a bit odd if that is the case because they are considered temporary files. Perhaps I do not handle the streams correctly in the code? #InterSystems IRIS 0 7 1 77
Question Martin Nielsen · May 2 SQLCODE: -99 when executing dynamic SQL on specific properties Hi, I am unsure how to remove this restriction; when I am performing dynamic SQL using ##class(%SQL.Statement).%ExecDirectNoPriv(, .query, args...) It works fine, but the moment I add specific properties from the persistent class I am performing the select on into the WHERE clause, I get: ERROR #5540: SQLCODE: -99 Message: User UnknownUser is not privileged for the operation. Despite using %ExecDirectNoPriv, I've tried with prepared statement as well, exact same situation. #SQL #InterSystems IRIS 0 5 0 87
Question Martin Nielsen · Jan 23 %REST.API swagger specs generation from comments / response type Hi, I am currently setting up a new API using %CSP.REST - I've gotten swagger spec generation to work like such: #API #CSP #JSON #Namespace #REST API #InterSystems IRIS 0 3 0 94
Question Martin Nielsen · Aug 21, 2024 Invalid CSP response cookie. SameSite cannot be set to None without Secure. : CSP Error We have a CSP pages script, which gets and sets a cookie for email tracking purposes, we had problems with cookies not being passed to this script when the URL was opened from an email client due to being cross-site, so I set Session Cookie Scope & User Cookie Scope to None instead of Strict. This solved the issue with cookies not being passed, however the script entirely does not work anymore due to the error: "Invalid CSP response cookie. SameSite cannot be set to None without Secure. : CSP Error" #CSP #Security #Caché #Ensemble 0 3 0 184
Question Martin Nielsen · Jul 15, 2024 Swagger generation for REST api Hi, I am considering making my own swagger json generation based on my rest api implementing the %CSP.REST class. Before I begin, I was wondering if there is already some kind of support, perhaps in IRIS already, or some tools that might help me. #API #CSP #JSON #REST API #Tools #Caché #Ensemble #InterSystems IRIS #Health Connect #InterSystems IRIS for Health 0 5 0 307
Question Martin Nielsen · Jul 4, 2024 forward REST calls and retain path parameters Hi, I have a controller which handles accounts, and forwards to the relevant controller based on the path, example below: #ObjectScript #REST API #Caché 0 2 0 123