Has anybody ever enabled the standard CSP login page for a web application with REST dispatch class? Any ideas how to do this?
(Context: I'm using %CSP.REST with other stuff behind it, not actually a REST API.)
Caché Server Pages (CSP) is both an architecture and toolset used to build an interactive web applications with the InterSystems Data Platform.
Has anybody ever enabled the standard CSP login page for a web application with REST dispatch class? Any ideas how to do this?
(Context: I'm using %CSP.REST with other stuff behind it, not actually a REST API.)
I have a CSP page that throw a "414 error - Request-URI Too Long" when I put lot of text (eg : 10000 characters) into a field of a submitted form. The form is submitted using POST method.
Based on some experiments I made, it seems the max size of a URL is around 8200 characters.
What is the official limit, and is there a way to increase it ? I searched in the documentation but couldn't find anything.
I have to create a SOAP WebService that receives the username/password as part of a field in the Request. I have no control of the client's application.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org">
<soapenv:Body>
<tem:ProcessRequest>
<!--Optional:-->
<tem:myRequest>
<tem:NomUtilisateur>ACGendron</tem:NomUtilisateur>
<tem:MotDePasse>MyPassword</tem:MotDePasse>
<!-- Other request fields -->
<tem:PrenomMere>?Is there a way for web application to set its session timeout value according to the user role or other criteria?
In this case, I have a custom production monitor page, and I want to set 5 minutes for most users but allow managers a longer time or those displaying pages on a monitor a longer time.
Getting proctect error on csp custom login page.
.png)
It says to add role to CSPSYSTEM i have given role to db (rw i would like to change to R once working). It has not solved issue
.png)
.png)
Hi -
I'm looking for some help in getting an OS level application on my server to startup from a csp page and I'm just missing something.
I have a routine (and I've tried the same code from an instance method, with the same results) that will launch an application at the OS level using the $zf(-100,keywords,program,parms) from a terminal session, but it won't/doesn't seem to work when I call the code from a #server() call from my webpage. I don't know if there is some combination of keywords or perhaps a different version of the $zf() call that should/would work.
Hello,
Can I please check if anyone knows what the following alert means:
[Utility.Event] ISCLOG: CSPServer [css] Error setting up server $ZE=<DISCONNECT>Request+3^%SYS.cspServer2 ns=%SYS rtn=%SYS.cspServer2
Thank you for your help.
Hi,
Over time I have created an house-automation solution based on IRIS:
90% of my code is pure ObjectScript, with the most recent 10% being the use of Python libraries for specific tasks.
All of the above being terminal based up to now.
I would like to expose some configuration options / parameters via a very simple web page, to be serviced with the IRIS private web service (so I don't want to use an external Webserver just for this..)
My question:
how should I approach the creation of this simple, one page, web
Consider the simplest possible CSP file upload/download page - you upload a file, it's saved in the database, and the file is immediately re-download via %CSP.StreamServer:
Class DC.Demo.CSPUpload.Page Extends (%Persistent, %CSP.Page)
{
Property stream As %CSP.BinaryStream [ Required ];
ClassMethod OnPage() As %Status
{
&html<<form method="post" enctype="multipart/form-data">
<input type="file" name="file" />
<input type="submit" />
</form>>
quit $$$OK
}
ClassMethod OnPreHTTP() As %Boolean [ ServerOnly = 1 ]
{
#dim %request As %CSP.Request
#dim %response As %CSP.Hi folks!
It's not an innovation, but often I saw not a very informative Error page for CSP apps and got it for myself. Something like that:

What are other's thoughts, opinions and experiences going from CSP to RESTful services, specifically when it comes to reusing code in CSP files?
One could define a method in CSP as follows:
<script language="cache" method="SubmitSomethingAwesome" arguments="aswesomeId:%Numeric">
And it's generated in csp.mycsppage.cls ascsp.mycsppage.SubmitSomethingAwesome(awesomeId as %Numeric).
Have people had success defining there rest call by calling the generated CSP classmethod?
As I was thinking what I could develop for InterSystems Full Stack Contest, I saw this post:
https://community.intersystems.com/post/how-access-production-items-through-objectscript
I developed ProductionManager.csp. It displays items in the active production. It also displays the Class in use and the date and time of last message. I believe these data points can help you make decisions which items to remove from the production.
I read that contest asked for apps which insert, update, or delete data in InterSystems IRIS.
I am still working on iris-for-money app: https://github.com/oliverwilms/iris-for-money
Account.csp posts a rest call with _SYSTEM username and the password.
xhttp.open("POST", "/restapi/sql/" + query, true,"_SYSTEM","SYS");
xhttp.send();
/restapi web application has Password Authentication Method enabled.
SYS is the correct password for _SYSTEM user.
I do not understand why I see login failure in Audit database.
Suppose you have developed your own web app with InterSystems technologies stack and now want to perform a captcha validation on the client side in order to determine whether or not the user is human and make it safer. There are some modern frameworks to address the captcha issue, however most part of them needs internet access to generate codes and sometimes are complex to implement. Take this as basic example considering that image recognition has gotten too good. That's why you nowadays you tend to see more pattern recognition captchas than mere reading ones. (I.e.
Hi all!
I'm currently trying to find out how to have one Web Gateway route to multiple servers Management Portal. The only thing that I have come up with so far is to potentially make different routes per server?
I have a development, test, and production server and I want to use the same Gateway server using IIS to do SSL/TLS encryption for the CSP pages.
Any ideas or recommendations to pull this off?
This month I announce the release of version 1.8.0 of the VS Code extension, which contains the following enhancements and bug fixes.
The big news is support for server-side project files as some of you old-timers will remember from Studio. If you work client-side, VS Code already has great project management features. You can simply use a folder as a project, or use multi-root workspaces. But if you work server-side, you might appreciate some better artifact management capabilities, and that's what this feature is about. Read more in this new Projects chapter of the documentation.
Hi there,
I'm passing a JSON object to the server as such:
{"key":"value","key":"value","key":"value"}From the client:
- Build object
object=JSON.stringify(object)
-pass to server side method as %String
On the server:
s object={}.FromJSON(object)Instead of getting something like
object=<OBJECT REFERENCE>[2@%Library.DynamicObject]
I get
object="991@%Library.DynamicObject"
I can't access that object using %Get as if says invalid OREF.
Hi Community,
This post is a introduction of my open exchange iris-fhir-client application.
iris-fhir-client can connect to any open FHIR Server by using embedded python with the help of fhirpy Library.
Get Resource information by terminal and by using CSP web application.
Hi,
Has anyone experienced any issues when using Cloudflare in front of a csp application?
I keep getting 502 errors when Cloudflare is active?
Strangely, the SMP works but only if I remove the trailing question mark from the url but it doesn't resolve the issue when I try any other csp application URL's.
There is a popular package "WebTerminal". It is excellent in most situations.
Except:
We are experience this with our own web app and even the demo/template here: intersystems-community/iris-fullstack-template: This template shows you how to build, test and deploy a simple full-stack application using InterSystems IRIS REST API (github.com)
When changes are made to CSS or HTML files, we can see the changes are saved to file in the Docker container by visiting the command line. However, after refreshing, clearing cache, etc. the changes don't appear on the web application in the browser. Viewing the source css in the browser, we see it's the old file.
I have a .woff2 file I'm trying to serve over CSP.
If I set:
^%SYS("CSP","DefaultFileCharset")="UTF8"
Then it "just works" - but I'd rather not do something so heavy-handed/instance-wide, on principle. (This is for something that will ultimately be published on the Open Exchange.)
A more granular option, it seems, is described in the %CSP.StreamServer class reference:
if you need to define settings per extension (in uppercase) you can use ^%SYS("CSP","MimeFileClassify",$zcvt(ext,"U"))=$listbuild(type,bin,charset) where:
I am referencing the documentation here: https://docs.intersystems.com/ens201815/csp/docbook/DocBook.UI.Page.cls…
I have embedded html within a <script language="cache" runat="server"> block. Within that I'm defining and using a macro, but it doesn't display at all. Something like:
<script language="cache" runat="server">
s stringData=obj.Hi -
I'm trying to get my VS Code instance that is connected to an AWS IRIS instance to edit/save/compile .csp files, but it's failing to work and I'm not sure why. The ".csp" is associated with the objectscript-csp code, and the server is connected, but things just don't act like they are enabled.
Should this work? and if so, what might I have missed in configuring things?
Working with CSP applications, I've noticed behaviour that does not seem to be documented anywhere.
When you create a new application, Cache seems to create a virtual folder and populate it with everything that is in the physical path you set for that application.
This leads to some weird issues regarding compilation of the CSP pages that exist in both physical folder and virtual folder.
Is there a way, given a %CSP.SessionEvents subclass, to simply return an HTTP 403 error status from OnStartRequest?
If I return an error %Status from the method, it'll go to the error page; if I don't, it's always a 200 OK and the page continues to render.
The documentation suggests this method for calling server side methods via SUBMIT: https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KE…
Following that, the form I'm submitting needs to validate the dates entered (the startDate isn't past the endDate).
Trying to keep everything in the .
I'm pleased to announce the release of version 1.4.4 of the VS Code extension, which contains the following enhancements and bug fixes. Links will take you to the GitHub issue being addressed. As always, if you already have the extension installed, VS Code should automatically update your extension. If you're a new user, use these instructions to get started.
objectscript.explorer.Is there a way, for testing purposes at least, to change a CSP session over to a different user? We have a lot of things in our system that are allowed or restricted based on the user login, so it would be useful for me to be able to occasionally run as a different user to see how things look and work for them. I've tried using the %CSP.Session.Login function, but that still shows the CSP session as being from the original user, not the one I've switched to.