-
Notifications
You must be signed in to change notification settings - Fork 65
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
[Bug]: Undefined array key with FreeBSD + jails #360
Comments
For the first error, I added a pull request some time ago and it is waiting a review: |
You mean this PR #372? |
Yeah that one/the backport PR's that come out of it |
so once the backport #373 is merged, we can close this. |
Yeah, I mean technically it's still missing the packport PR's for 23 and 22 but I have no clue how that backport bot works :D |
under a pull request you can just add |
Yeah, there's backport comments but it only created the one for 24, the one for 23 and 22 seem to be missing. Maybe they get queued up will 24 is merged? |
Looks like the backports got sorted out on the PRs. So this seems like it should be closed now, correct? I can't test as I'm not using FreeBSD, but this looks to be in all currently supported releases (and then some at this point). |
Correct. I successfully tested 26.0.2 with FreeBSD + jails. |
Bug description
These errors appear in logs when I visit the page
settings/admin/serverinfo
:The variables $gw and $speed are expected to be undefined in some cases (inside a FreeBSD jail), and should be checked (maybe with the empty() fuction?) before being used.
They are expected to be undefined, because there is no default gateway inside the jail, and there is no speed set for the bridge interface used in the jail.
Steps to reproduce
Expected behavior
There should be no error in the logs.
Installation method
Manual installation
Operating system
Other
PHP engine version
PHP 8.0
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
No response
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
This is not a critical bug, but as php 8.0 doesn't like accessing empty arrays, the arrays should just be checked before being accessed.
The text was updated successfully, but these errors were encountered: