nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.25k stars 4.05k forks source link

Check and warn when duplicate app installations are detected #40063

Open joshtrichards opened 1 year ago

joshtrichards commented 1 year ago

How to use GitHub

Is your feature request related to a problem? Please describe.

From time to time I've run across installations where - for a variety of reasons - they've ended up with multiple versions of an app installed across two (or more) or more apps directories. There have been various issues as well, like Nextcloud/contacts#2867, triggered by unexplained behavior that initially appears to be a bug in either server or the underlying app in question. These take time to troubleshoot and triage. Some are never remedied unless someone thinks of duplicate app folders as a possible cause.

Describe the solution you'd like

Either a new setup check (under Admin) or other checking for this condition directly in app management (a setup check may make the most sense if only because an operator moving or restoring the right folder may trigger this issue outside the scope of a standard app install/update code path).

Describe alternatives you've considered

Additional context

N/a

szaimen commented 1 year ago

Actually this is a feature that is supposed to work but currently has a bug: https://github.com/nextcloud/server/issues/37043

szaimen commented 1 year ago

A fix to the problem would be really welcome :)