go to post Timothy Leavitt · Dec 11, 2024 What mappings do you have configured (on the Settings page in the menu)? How is your VSCode workspace defined? Should be using isfs with something like:isfs://yourserver:NAMESPACE/csp/testdb?csp
go to post Timothy Leavitt · Dec 4, 2024 I definitely haven't seen issues like this with Apache, and the trailing "///" in ^XVMC("base") is definitely suspicious. It's very possible that the "clever" approach of having a .csp page serve things under further URL segments doesn't work nicely on nginx.
go to post Timothy Leavitt · Nov 20, 2024 It looks like the page is so broken that Scott probably doesn't see the "Feedback" button. I've submitted feedback on Scott's behalf with a link to this post.
go to post Timothy Leavitt · Nov 20, 2024 This looks like it's trying to serve a file from the filesystem for a URL that should be handled by CSP. Are you using a limited set of CSPFileTypes? I have zero nginx experience, but based on the web server / nginx configuration docs you probably need something like: location /isc/studio/usertemplates { CSP on; }
go to post Timothy Leavitt · Nov 7, 2024 Note - for the HTML attribute context (see https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html#output-encoding-for-html-attribute-contexts) you should use EscapeHTML enclosed in double quotes.
go to post Timothy Leavitt · Nov 7, 2024 The two key methods here for output sanitization are: %CSP.Page:QuoteJS - for output sanitization targeting JavaScript string literals %CSP.Page:EscapeHTML - for output sanitization targeting HTML content
go to post Timothy Leavitt · Nov 6, 2024 Note, setting the /exportselectivity flag to 0 as a default may help with this - https://docs.intersystems.com/iris20242/csp/docbook/Doc.View.cls?KEY=RCO...
go to post Timothy Leavitt · Nov 4, 2024 @Jani Hurskainen providing a top-level answer here: If you want to truly build your own unit test framework from scratch, you'd need to create a custom resource processor class in IPM. I see from https://github.com/intersystems/ipm/issues/616 that you've already discovered this feature and I appreciate your tenacity and the deep dive into IPM that you're doing. Every development team I've worked on within InterSystems (that is, three very different ones) has had its own things it's wanted to do that %UnitTest.Manager and %UnitTest.TestCase don't *quite* do the way we want, with the API we want, right out of the box. The approach in general is to extend %UnitTest.Manager to tweak unit test runner behaviors (IPM does this itself, as you may have noticed); to extend %UnitTest.TestCase to add application-specific utility methods, assertions, and generic On(Before|After)(All|One)Test(s?) implementations (often controlled by class parameters); and potentially to add some mix-in utility classes that one might extend along with %UnitTest.TestCase or your own derived unit test base class. For the basic case of "I want to run tests with my own %UnitTest.Manager subclass" we have a flag you can pass in to override the unit test manager class, -DUnitTest.ManagerClass=yourclassname. See https://community.intersystems.com/post/unit-tests-and-test-coverage-int... for an example of how to use this (with my team's https://github.com/intersystems/TestCoverage open source package). At the IPM codebase level, there's special treatment of the common "pParams" array passed around everywhere - something looking at pParams("UnitTest","ManagerClass") will find the value specified in -DUnitTest.ManagerClass in the package manager shell command. Hopefully this is helpful!
go to post Timothy Leavitt · Nov 4, 2024 @Evgeny Shvarov to some extent we already do, via the -DUnitTest.ManagerClass parameter we use to run TestCoverage and through custom resource processors (which I see @Jani Hurskainen is already playing with!)The common pattern in ObjectScript if you're going to customize unit test processes is to write a subclass of %UnitTest.Manager that does things the way you want. (And probably a few subclasses of %UnitTest.TestCase that add the standard assertion types, maybe some application-specific utility methods / wrappers, etc.) IPM will play well with this model, it's more work (all around!) if you want to write your own entire unit test framework from scratch.
go to post Timothy Leavitt · Oct 31, 2024 Great question! I mean the client (install -v moduleName / etc.) - will clarify in the original question.
go to post Timothy Leavitt · Oct 30, 2024 Re: Nexus, I don't see it listed here (https://oras.land/adopters/) but it's possible that it could be supported anyway. From an IPM perspective there isn't anything too registry-provider-specific (hooray standards!)
go to post Timothy Leavitt · Oct 30, 2024 Confirmed - OCI/ORAS will be supported in the next major release after v0.9 and getting this wrapped up is our top priority.
go to post Timothy Leavitt · Oct 29, 2024 Sorted this out through a thread in a GitHub issue - https://github.com/intersystems/git-source-control/issues/597
go to post Timothy Leavitt · Oct 28, 2024 Perhaps the private webserver is running on 52773 inside the container and exposed as 52774 on the host? So from within the container you should connect to localhost:52773 instead of 52774.
go to post Timothy Leavitt · Oct 28, 2024 Wrote a sample UDAF for this today: https://community.intersystems.com/post/writing-user-defined-aggregate-f...
go to post Timothy Leavitt · Oct 28, 2024 Wrote a sample UDAF for this today: https://community.intersystems.com/post/writing-user-defined-aggregate-f...
go to post Timothy Leavitt · Oct 1, 2024 Actually I just went ahead and filed the issue so this doesn't get lost:https://github.com/intersystems/isc-ipm-js/issues/18