Skip to content

Commit

Permalink
Merge pull request #1211 from gjsjohnmurray/azure-albatross
Browse files Browse the repository at this point in the history
Improve message to help resolve scenario where isfs user lacks %DB_IRISSYS:READ
  • Loading branch information
gjsjohnmurray authored Aug 17, 2023
2 parents 487f7bd + a278002 commit 795a993
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/providers/FileSystemProvider/FileSystemProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,10 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
if (error) {
console.log(error);
if (error.errorText.includes(" #5540:")) {
const nsUpper = api.config.ns.toUpperCase();
const message = `User '${api.config.username}' cannot list ${
csp ? "web application" : "namespace"
} contents. To resolve this, execute the following SQL in the ${api.config.ns.toUpperCase()} namespace:\n\t GRANT EXECUTE ON %Library.RoutineMgr_StudioOpenDialog TO ${
csp ? `web application '${uri.path}'` : "namespace"
} contents. If they do not have READ permission on the default code database of the ${nsUpper} namespace then grant it and retry. If the problem remains then execute the following SQL in that namespace:\n\t GRANT EXECUTE ON %Library.RoutineMgr_StudioOpenDialog TO ${
api.config.username
}`;
outputChannel.appendError(message);
Expand Down

0 comments on commit 795a993

Please sign in to comment.