go to post Tomas Vaverka · Jan 23, 2018 To access Caché Session (Terminal) without password, you should make two steps:1. Check if the UnknownUser has got appropriate roles (e.g. %All) in System Administration | Security | Users. As a minimum it should have role with %Development resource and resource for given database (e.g. %DB_USER for access to USER namespace).2. Un-check Password and allow Unauthenticated access for service %Service_Terminal in System Administration | Security | Services. This is for linux/Unix systems. For Windows you should enable Unauthenticated access for %Service_Console and %Service_Telnet.
go to post Tomas Vaverka · Jan 16, 2018 This is not related to global block size but to maximum string length. You could enable Long Strings in Management Portal > System Administration ? Configuration > System Configuration > Memory and Startup. The traditional maximum string length is 32,767 characters. For Long Strings the maximum string length is 3,641,144 characters.
go to post Tomas Vaverka · Nov 21, 2017 You are right that if you access frameset page from another CSP page, all frames should use the same session.5916 Illegal CSP Request error happens if you access encrypted or private CSP page with incorrect session token. I guess if it can be because of some cached pages in the browser. Do you use cookies to identify the session? And what happens if you make a forced refresh of the frameset page (CTRL-F5), does it load correctly then?
go to post Tomas Vaverka · Jun 13, 2017 Populate method for Sample.Employee:Company doesn't create a new Company, it just creates a relationships/reference to existing Sample.Company object.Thus you need to start to populate first Sample.Company and then Sample.Employee.
go to post Tomas Vaverka · Jun 1, 2017 MAC routines and classes can contain macros - $$$, embedded SQL - &sql() and &html<> and &js<> scripts. It is then compiled into the INT routine, where above constructs are generated into the final code (which is then compiled into pcode - OBJ).
go to post Tomas Vaverka · May 17, 2017 Have you tried to compile %SOAP.WebClient class in Studio? This is how this message can happen, because you don't have write access for CACHELIB database by default.
go to post Tomas Vaverka · Apr 18, 2017 I think you should also consider other factor - performance. If we implemented all kinds of these checks/warnings, it would slow down the compiler, which is not the way we would like to go.
go to post Tomas Vaverka · Mar 29, 2017 What I understand is that you have webservice in Caché and want to create a SOAP Client in PHP, correct? I am not expert on PHP (you should better contact PHP community) so I cannot comment on your PHP code.Anyway - what problems have you experienced? Is there any error running given code?
go to post Tomas Vaverka · Mar 2, 2017 Yes, this is the syntax error in the code.Anyway, question is still what is a purpose of such page? If you require such functionality, wouldn't be better to use standard CSP page?
go to post Tomas Vaverka · Feb 23, 2017 As Dmitry wrote above, you shouldn't use http://localhost:57772/csp/samples/REST.DocServer.cls , this is not correct call for REST services.Correct URL to get list of namespaces is http://localhost:57772/csp/samples/docserver/namespaces in with GET method. Look at the http://localhost:57772/csp/documatic/%25CSP.Documatic.cls?LIBRARY=samples&CLASSNAME=REST.DocServer class documentation for further available methods.
go to post Tomas Vaverka · Feb 14, 2017 Please, are you able to log into Caché Terminal? The best start to debug such kind of problems is to enable Security Audit (if not already enabled) and Login, LoginFailure and Protect system events using ^SECURITY routine (option 6 - Auditing setup) in %SYS namespace: USER>ZN "%SYS" %SYS>Do ^SECURITY Then reproduce the error and view the Audit, check for the latest records - you should see LoginFailure or Protect events there. Check details of given record, it should tell you more about the problem.
go to post Tomas Vaverka · Feb 9, 2017 It depends on selected initial security during installation. Using Minimal Security it doesn't set CSPSystem user for CSP Gateway Server Access, therefore unauthenticated access with UnknownUser is used.Basics of Initial Caché Security Settings are described in Caché documentation:http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...
go to post Tomas Vaverka · Feb 9, 2017 The best start to debug such kind of problems is to enable Security Audit (if not already enabled) and Login, LoginFailure and Protect system events using ^SECURITY routine (option 6 - Auditing setup).Then reproduce the error and view the Audit, check for the latest records - you should see LoginFailure or Protect events there. Check details of given record, it tells you more about the problem.In your case it was LoginFailure event with error message: User UnknownUser account is disabled.
go to post Tomas Vaverka · Nov 24, 2016 The files looks same if you open it e.g. in Windows Notepad. This is because Notepad recognize the file as UTF-8 even if the BOM is missing but file contains some Unicode characters (>255). If you write pure ASCII ("Hello"), it will be open as ANSI file. But if you open it in any hexadecimal editor you would see the second file is missing BOM. EDIT: I found it sets the BOM property only if you set it AFTER setting of translation table: Set stream=##class(%Stream.FileCharacter).%New() Set sc=stream.LinkToFile("c:\temp\UTF8ExampleWithBom.txt") Set stream.TranslateTable="UTF8" Set stream.BOM=$C(239,187,191) Do stream.Write("Hello") w stream.%Save() This is because setting of TranslateTable reset BOM to empty string again.
go to post Tomas Vaverka · Nov 24, 2016 Setting of TranslateTable to UTF8 just makes a translation of characters to utf-8, it doesn't set BOM. So you need to set both.
go to post Tomas Vaverka · Nov 22, 2016 To force to create UTF-8 even if you write just ASCII characters, you need to set BOM property of stream object: Set stream.BOM=$C(239,187,191)BOM is abbreviation of Byte Order Mark and for UTF-8 it is the byte sequence 0xEF,0xBB,0xBFhttps://en.wikipedia.org/wiki/Byte_order_mark
go to post Tomas Vaverka · Nov 10, 2016 AFAIK there is not any default timeout on Caché WebSocket implementation in the Caché server or CSP gateway. It just open a persistent connection between CSP Gateway and Caché server (if SharedConnection=0) to allow to exchange messages.If the connection is closed for some reason, I would start to look at some intermediates - like firewall, proxy or any other tool which could close the connection. Or maybe your websocket implementation does it?
go to post Tomas Vaverka · Nov 10, 2016 Caché ODBC driver should recognize the client charset (if correctly sent by client) and use corresponding translation table.To investigate your issue it would need more details, e.g. produce the ODBC log to see what data is sent by client and server. I would recommend to log it to WRC.
go to post Tomas Vaverka · Nov 10, 2016 It is not client name but Caché Username ($USERNAME). The 'Username' cookie is set by Management Portal, it's just to remember last user who was logged on. You cannot depend on this cookie in your application.To get the client name, you should check some other CGIENV variables, like REMOTE_ADDR resp. REMOTE_USER. But it doesn't always exist.Please, let us know what information you are looking for. Do you need to know name of the remote user connecting to the application?
go to post Tomas Vaverka · Nov 9, 2016 You can also use syntax: set currPath=$SYSTEM.Process.CurrentDirectory() set oldPath=$SYSTEM.Process.CurrentDirectory(newPath) The CurentDirectory method is an API covering the internal $ZUTIL functions: ClassMethod CurrentDirectory(dir As %String) As %String { quit:'$d(dir) $zu(168) quit $zu(168,dir) } Therefore in older Caché versions you can use: set currPath=$ZU(168) set oldPath=$ZU(168,newPath)