Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Mention limitations for Ubuntu 24.04 and openResources() #1702

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

pospisilf
Copy link
Contributor

Before submitting your PR, please review the following checklist:

  • CONSIDER adding a new test if your PR resolves an issue.
  • DO keep pull requests small so they can be easily reviewed.
  • DO make sure tests pass.
  • DO make sure any public APIs changes are documented.
  • DO make sure not to introduce any compiler warnings.

Before merging the PR:

  • CHECK continuous integration of main branch is green.
  • CHECK pull request check job is green.
  • CHECK all pull request questions/requests are resolved.
  • WAIT till PR is approved by at least 1 committer.

@pospisilf pospisilf requested a review from djelinek January 9, 2025 17:10
@pospisilf pospisilf linked an issue Jan 9, 2025 that may be closed by this pull request
@djelinek djelinek changed the title chore: Mention limitations for Ubuntu 24.04 and openResource() chore: Mention limitations for Ubuntu 24.04 and openResources() Jan 9, 2025
 #i#chore: Mention limitations for Ubuntu 24.04 and openResource()
@pospisilf pospisilf requested a review from djelinek January 10, 2025 00:06
@djelinek djelinek merged commit 0185367 into redhat-developer:main Jan 10, 2025
13 checks passed
@gilbysunil14
Copy link

Thank you for the workaround. Based on the explanation, we are bypassing some sort of security restriction. Are there any security concerns with bypassing this restriction? Will this be addressed in the future?

@pospisilf
Copy link
Contributor Author

Thank you for the workaround. Based on the explanation, we are bypassing some sort of security restriction. Are there any security concerns with bypassing this restriction? Will this be addressed in the future?

Actually this is not issue of ExTester itself, it is new security feature of AppArmour 24.04 (which is used by Ubuntu 24.04). This workaround disables this security feature of AppArmor, which may expose your system to potential risks, but at the moment that is the only option we are aware.

Another way how to avoid this security option is to open resources using VS Code UI file dialogs.

@Arcticae
Copy link

@pospisilf do you guys have any examples on how to do it using native VSCode UI? or perhaps some helpers? would highly appreciate that

@djelinek
Copy link
Collaborator

Hello @Arcticae
you can see description how to use dialogs in our docs - https://github.com/redhat-developer/vscode-extension-tester/wiki#using-dialogs

Here is an example how to use it eg. for opening file - https://github.com/redhat-developer/vscode-extension-tester/blob/main/tests/test-project/src/test/workbench/open.test.ts#L30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[🚫 Bug] openResources() not working on Ubuntu 24.04
4 participants