-
Notifications
You must be signed in to change notification settings - Fork 39
Handle symlinks in updater correctly #180
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
Conversation
Signed-off-by: Georg Großmann <[email protected]>
|
Thank you for your contribution 👍 I have no idea why the build 💥 |
lib/Updater.php
Outdated
| $files[] = $fileInfo->getPathName(); | ||
| } else { | ||
| $files[] = $fileInfo->getRealPath(); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this correction. I removed the whitespace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your info. I thought I solved this now, but unfortunatley there are still two contionuous integraten tests red...
@MorrisJobke, @danielkesselberg Could you please help me or do this for me?
Thanks a lot ;)
index.php
Outdated
| $files[] = $fileInfo->getPathName(); | ||
| } else { | ||
| $files[] = $fileInfo->getRealPath(); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could I ask you to fix the indentation? We use typically tabs (with a size of 4 spaces per tab).
The first failure on stable13 is because we released a new 14 release and didn't updated this one here, so it could be ignored. But there is a second failure which includes the sign-off message - see https://drone.nextcloud.com/nextcloud/updater/85/43 To learn more about this, please have a look at https://github.com/nextcloud/server/blob/master/CONTRIBUTING.md#sign-your-work Basically a I will be on off for a few weeks, so it might be that there is no further feedback from my side so far. Thanks for the contribution. |
|
New pull request created: #184 |

Same request as in #165. Unfortunatley I was not able to interactively rebase my branch because of my poor git knowledge. This is why I had to reset my fork and applied the changes again. Sorry for confusing you...
Steps to reproduce:
Use Open SUSE Tumbleweed and install nextcloud via
sudo zypper in nextcloud
Point your browser to your nextcloud installation and select update channel daily. Reload the page and try to update your instance with the web based updater.
The update process will fail due to files which couldn't be removed beforehand by the updater itself. The files which cause this problem are symlinks that are generated at the installation because of
https://build.opensuse.org/package/view_file/openSUSE:Factory/nextcloud/nextcloud.spec?expand=1
Line 164: %fdupes -s $RPM_BUILD_ROOT/%{apache_serverroot}/%{name}
The problem is solved on my machine if we check for symlinks, files and folders in the delete functions.