Closed eduard93 closed 2 years ago
I have validated that these queries work under eduard93
user (from the browser):
Clicking on a Projects
as a %ALL user I see the same error.
But in VSCode explorer everything works.
Caused by the assumption made here.
To run any query we need to specify a namespace.
I guess we should get the list of namespaces the user has access to and use the first one.
Is it hard to implement this change? USER
could be a better default as a quick workaround.
@gjsjohnmurray are there any news on this issue?
Here's a pull request with a temporary workaround, please consider merging it: https://github.com/intersystems-community/intersystems-servermanager/pull/139
@eduard93 with Global Summit over I took a closer look at this issue. My previous response misdiagnosed the cause of the message you reported. The lines I pointed to are only used to try and pre-authenticate the Portal page when you use one of these command buttons in the Server Manager tree:
Based on my testing with a user who doesn't have the %DB_IRISSYS:R privilege, the only consequence is that they may have to enter credentials when launching Portal from Server Manager.
Your message actually comes from the vscode-objectscript extension here:
I'm guessing you're using the client-side editing paradigm, not server-side (isfs), right?
What does your objectscript.conn
settings object contain? In particular, what is its ns
property set to?
Please check this at the User level (i.e. your local settings.json file) and at the Workspace level (i.e. .vscode/settings.json in the folder you opened in VS Code).
@gjsjohnmurray Found it in the workspace. Looks like this:
{
"objectscript.conn": {
"server": "myServer",
"ns": "USER",
"active": true
}
}
I see in console:
workbench.desktop.main.js:802 TypeError: Cannot read properties of undefined (reading 'map')
at ProjectsTreeItem.<anonymous> (c:\Users\elebedyu\.vscode\extensions\intersystems-community.servermanager-2.0.9\out\ui\serverManagerView.js:429:46)
at Generator.next (<anonymous>)
at fulfilled (c:\Users\elebedyu\.vscode\extensions\intersystems-community.servermanager-2.0.9\out\ui\serverManagerView.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
That's here.
My user can execute SELECT Name, Description FROM %Studio.Project
, but it returns no results.
I just need to browse the server.
@eduard93 please try the dev VSIX from the zip at https://github.com/intersystems-community/intersystems-servermanager/suites/7134425170/artifacts/283337062
With this, when you expand the Projects folder of a namespace and your user account doesn't have the %All role you should now see an error notification telling you the GRANT statement you need to run in that namespace (as a suitably privileged user).
@eduard93 the correction for this is now in 2.0.10-beta.3 which you can get at https://github.com/intersystems-community/intersystems-servermanager/releases/download/v2.0.10-beta.3/servermanager-2.0.10-beta.3.vsix
Thank you @gjsjohnmurray !
@eduard93 we have now published 2.0.10
I'm getting an error trying to connect to a server with a user (without %ALL):
But how do I specify a
USER
namespace as a default?My
settings.json
looks like this:In servers view I can view a list of namespaces but clicking on a
Projects
results in: