Skip to content

Commit

Permalink
chore: Mention limitations for Ubuntu 24.04 and openResource()
Browse files Browse the repository at this point in the history
  • Loading branch information
pospisilf committed Jan 9, 2025
1 parent ee88733 commit 36c763e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions KNOWN_ISSUES.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,15 @@ A few page objects have had slight changes to their API. Others have had their i
- `ViewControl` and `ActionsItem` method `getTitle` is now async, make sure to await
- `ViewControl` and `ActionsItem` constructors were changed to take a `WebElement` directly, instead of a title
- hopefully, no one was using these directly, but if you do, use `ActionBar#getViewControl` or `getGlobalAction` instead to get the proper object

## `openResource()` Not Working on Ubuntu 24.04

The `openResource()` method does not work properly on Ubuntu 24.04 due to restrictions imposed by the system's AppArmor security framework.

### Workaround
Run the following command to temporarily adjust the kernel parameter and bypass the restriction:
```bash
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
```

This issue is caused by AppArmor's limitation on unprivileged user namespaces, which affects certain operations in the framework. The workaround disables this restriction, allowing openResource() to function as intended. However, this change is temporary and will revert after a system reboot. To make it permanent, add the setting to `/etc/sysctl.conf`.

0 comments on commit 36c763e

Please sign in to comment.