go to post Rubens Silva · Mar 11, 2020 Indeed, I got this error too. However if I use a dummy directory it accepts.I haven't used this feature yet because I must change plenty of things to actually consume that REST application. But the way I'm seeing things so far I guess it would work.So what if you provide a dummy directory like: "/tmp/dummycsp" as well?
go to post Rubens Silva · Mar 10, 2020 From your code above I see that you attempted to use both Directory and DispatchClass attributes. Have you tried removing the Directory attribute?
go to post Rubens Silva · Mar 9, 2020 Looks like the new version of the %Installer for IRIS already supports this setting.But it might still be helpful to clear that question about the ZPM for other circunstances.
go to post Rubens Silva · Mar 9, 2020 Yeah, I just noticed it now: https://docs.intersystems.com/csp/documatic/%25CSP.Documatic.cls?PAGE=CLASS&LIBRARY=%25SYS&CLASSNAME=%25Installer.CSPApplicationEDIT: I'll make some tests and see if it works fine. I'll report back for you if it does.
go to post Rubens Silva · Mar 9, 2020 Can I use the ZPM client like a standalone the same way it works when using the %Installer manifest? Bu that I mean, just calling the ZPM to parse the manifest and install it without relying on the registry and the CLI for now, because all the code I want to import is already local, I just need to create a web application that uses the DispatchClass property.
go to post Rubens Silva · Mar 9, 2020 I might have to check the IRIS version, because my Caché 2018 doesn't have any traces of the DispatchClass configuration. Method CSPApplication(pUrl As %String,pNamespace As %String,pDescription As %String,pDirectory As %String,pResource As %String,pRecurse As %String,pLoginClass As %String,pGrant As %String,pCookiePath As %String,pAuthMethods As %Integer,pLockCSPName As %Boolean,pEventClass As %String,pDefaultTimeout As %Integer,pDefaultSuperclass As %String,pUseSessionCookie As %Integer,pServeFiles As %Boolean,pServeFilesTimeout As %Integer,pCustomErrorPage As %String,pPackageName As %String,pChangePasswordPage As %String,pGroupById As %String = "",pCspZenEnabled As %Boolean = 1,pInboundWebServicesEnabled As %Boolean = 1,pTwoFactorEnabled As %Boolean = 0,pIsNameSpaceDefault As %Boolean = 0,pPermittedClasses As %String = "",pAutoCompile As %Boolean = 1) [ Internal ]
go to post Rubens Silva · Mar 6, 2020 Is your Caché unicode?Can you try reading the content of headings.en right before you send it? So that we can see see if that's already corrupted before the HttprRequest takes control or if it's corrupting the input.
go to post Rubens Silva · Mar 5, 2020 Try defining these settings and see if that solves your issue. set httpRequest.ContentCharset = "utf-8" set httpRequest.ContentType = "application/json" set httpRequest.ContentEncoding = "utf-8" set httpRequest.NoDefaultContentCharset = 0 // Specifically this one.
go to post Rubens Silva · Feb 27, 2020 Neither alternatives. I'd usually archive the repository instead.
go to post Rubens Silva · Feb 11, 2020 For your version, you'll need to create your own serializer.Here's an idea on how to do it.
go to post Rubens Silva · Feb 10, 2020 Hello @Ken Earl Since you're using a VCS for a personal project. You might want to check Port and see if it fits your needs.You can also see how it works by reading the tutorial that I posted sometime ago.
go to post Rubens Silva · Feb 4, 2020 Sorry for taking so long to reply, here's the result from one line: DEV2>Zw line line=$c(9,9,9)_"title: 'Erro de aplicação'," DEV2>zzdump line 0000: 09 09 09 74 69 74 6C 65 3A 20 27 45 72 72 6F 20 ...title: 'Erro 0010: 64 65 20 61 70 6C 69 63 61 C3 A7 C3 A3 6F 27 2C de aplicação' Just so you know, my Caché terminal is configured to output using UTF-8 already.
go to post Rubens Silva · Jan 31, 2020 To read the hex I think the zzdump command should suffice? We're not using Notepad, but Visual Studio Code and Notepad++ because both support changing the current encoding to test the results. What do you mean by reading from Caché with utf8? If I understood well, we also did the test with "utf-8" being provided instead of "latin1", but when passing utf-8 it broke our encoding, which is weird, because we expected this to happen with "latin1" instead.
go to post Rubens Silva · Jan 14, 2020 sighs I should have expected that much. Which version are you using?
go to post Rubens Silva · Jan 14, 2020 I think it is: write %request.GetCgiEnv("HTTP_APPLICATION_ID") Although by convention, custom headers should begin with a X character to avoid possible conflicts with future but spec-based implementations.
go to post Rubens Silva · Jan 14, 2020 Looks like there's a pvaoref property that points to the original instance as you can see below: Method %OnNew(oref As %Library.DynamicAbstractObject) As %Status [ Private, ProcedureBlock = 1, ServerOnly = 1 ] { set i%pointer = -1 set ..pvaoref = oref return $$$OK } And it seems to work: USER>set a = [] USER>set it = a.%GetIterator() USER>w it.pvaoref 1@%Library.DynamicArray USER>
go to post Rubens Silva · Jan 8, 2020 For example, some months ago there was a discussion about how to bring functional programming to ObjectScript. I think this could be possible if we had a way to transpile functional-oriented code to pure ObjectScript.
go to post Rubens Silva · Jan 8, 2020 Check for the following methods: FindInFiles and FindInFilesRegex. Optionally you could limit the search for a single project using the method FindInProject. All methods belong to the %Studio.Project class. Here's how Atelier does: Set tSC=##class(%Studio.Project).FindInFiles( tSearch, doclist, system, wholeword, casesensitive, max, "GENERATED="_generated, // filter wildcards ) But you'll need to use device redirection to capture and parse its content. Because Studio uses these methods to display the results in the Output window.
go to post Rubens Silva · Jan 8, 2020 Hello Raj, I'm fine with Studio, but... what are the chances of: Native Studio support for Linux and macOS. Default studio editor support for up-to-date language syntaxes like recent ECMAScript revisions. API allowing access to ObjectScript AST, parser and lexer as well. (this might be out-of-context for this discussion, but still it could help the community creating transpilable languages). * Integrated and full featured terminal with support for special characters including colors. Improved debug support for jobs or simply multiple job debugging (this would make it easier to debug HTTP requests). Studio editor API that allows users to add new language syntaxes, like JSX, TypeScript, Flow, etc. ?