⚠️ This issue respects the following points: ⚠️
Bug description
I'm using https://github.com/nextcloud/nextcloud-docker-dev for local development of a Nextcloud app. Using the up to date nextcloud/server master branch within the dev repo, a call to $this->session->get('user_id') returns null. I couldn't find the exact change that causes this but I narrowed it down to the PR #62241. Before that PR was merged into master, $this->session->get('user_id') would return the session's user ID.
Steps to reproduce
- Setup https://github.com/nextcloud/nextcloud-docker-dev
- Configure a debugger
- Set a breakpoint in a file using
$this->session->get('user_id') (I used workspace/server/lib/private/DateTimeZone.php line 30 for this)
- Start the dev environment
- Open the local Nextcloud instance with your browser
- Login as admin
- Enable debugging in the docker container
- Start debugging
- Refresh the browser page
- Observe
$this->session->get('user_id') returning null
Expected behavior
$this->session->get('user_id') should return the session's user ID, like it did before PR #62241
Nextcloud Server version
35 (master)
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
Bug description
I'm using https://github.com/nextcloud/nextcloud-docker-dev for local development of a Nextcloud app. Using the up to date
nextcloud/servermaster branch within the dev repo, a call to$this->session->get('user_id')returnsnull. I couldn't find the exact change that causes this but I narrowed it down to the PR #62241. Before that PR was merged into master,$this->session->get('user_id')would return the session's user ID.Steps to reproduce
$this->session->get('user_id')(I usedworkspace/server/lib/private/DateTimeZone.phpline 30 for this)$this->session->get('user_id')returningnullExpected behavior
$this->session->get('user_id')should return the session's user ID, like it did before PR #62241Nextcloud Server version
35 (master)
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response