Question David Losiewicz · Apr 1, 2020 %CSP.Page - proper way to change ContentType to display text error or return expected pdf content I want to create a CSP page that returns a pdf. The pdf is identified by a pdftoken parameter. My goal is to validate the token and return the pdf (ContentType=”application/pdf”) if the token is good and return a text error message "Bad Token" (ContentType=”text/plain”) if the token is missing or bad. My issue seems to be associated with ContentType. I can define one ContentType that works for the pdf or the error message. I am unable to change the ContentType. Any assistance is appreciated. #CSP #Caché 1 2 1 358
Question David Losiewicz · Oct 3, 2019 Ensemble SFTP public key authentication -- Best practice for permissions on public/private key files I am using Ensemble FTP adapter to monitor file directory for files that require SFTP transfer to remote server using public/private keys for remote server authentication. This works great in my engineering development space where file protections are loose. I want to apply "principle of least privilege" regarding the public and private key files specified in FTP Outbound adapter Business Operation. Can anyone recommend (Linux) permissions that allow Ensemble to execute the SFTP operation but minimizing access to the key files? #FTP #Ensemble 0 1 0 859
Question David Losiewicz · Jun 23, 2016 Enable $$$GeneralError Macro I am testing application code and want to simulate error conditions. I am trying to use the following to define a custom error with a class method. $SYSTEM.Status.Error($$$GeneralError,"Any text here") My class method code looks like this.... #Object Data Model #ObjectScript #Caché 0 5 0 1.2K