Skip to content

Conversation

@st3iny
Copy link
Member

@st3iny st3iny commented Apr 8, 2025

When the main Nextcloud and data folder are on separate devices, PHP will automatically fall back to copying and removing the source instead of renaming. However, it will print verbose warnings.

We should silence those warnings. An exception will be thrown if the rename actually fails.

Example

PHP Warning:  rename(/srv/data/updater-ocfzgj3xa3i6/downloads/nextcloud/index.php,/var/www/nextcloud/updater/../index.php): Operation not permitted in phar:///var/www/nextcloud/updater/updater.phar/lib/Updater.php on line 972

However after all the errors did it report the move as successful.

[✔] Move new files in place

@st3iny st3iny self-assigned this Apr 8, 2025
@st3iny st3iny requested a review from Altahrim as a code owner April 8, 2025 08:28
@skjnldsv skjnldsv force-pushed the fix/silence-rename-warnings branch from 58c9e1f to 87bf56e Compare June 5, 2025 16:02
Signed-off-by: Richard Steinmetz <[email protected]>
@skjnldsv skjnldsv force-pushed the fix/silence-rename-warnings branch from 87bf56e to da70ef7 Compare June 5, 2025 16:11
@skjnldsv skjnldsv enabled auto-merge June 5, 2025 16:11
@skjnldsv skjnldsv merged commit 11ea92f into master Jun 5, 2025
20 of 21 checks passed
@skjnldsv skjnldsv deleted the fix/silence-rename-warnings branch June 5, 2025 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants