Internal Server Error caused by Maps app when trying to 'unshare' a public link

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 33.0.3 All-In-One
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian 13
  • Web server and version (e.g, Apache 2.4.25):
    • All-in-One
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx 1.26.3
  • PHP version (e.g, 8.3):
    • All-In-One
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • Today
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • AIO
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • Cloudflare

Summary of the issue you are facing:

Internal Server Error message toast shown when clicking to unshare a public link.

ExceptionUndefined constant OCP\Share::SHARE_TYPE_USER in file ‘/var/www/html/custom_apps/maps/lib/Hooks/FileHooks.php’ line 154

Disabling the Maps app and then retrying to unshare works fine, the link is deleted successfully.

Steps to replicate it (hint: details matter!):

  1. Enable Maps app.

  2. Create a public link, then try to unshare it.

  3. Internal Server Error toast appears, and the message above shows in logs.

Log entries

ExceptionUndefined constant OCP\Share::SHARE_TYPE_USER in file ‘/var/www/html/custom_apps/maps/lib/Hooks/FileHooks.php’ line 154

This is already reported here

According to the App Store web interface, the app is only supported up to Nextcloud 31, albeit in this commit it was bumped to 32 and in this commit it was bumped up to nextcloud 33
The app isn’t really being maintained. Issues go unanswered, and there are no fixes. This suggests that development doesn’t seem to be the highest priority—or rather, that other matters are ranked higher—especially considering that this is an app developed by Nextcloud developers.

My recommendation: Deactivate the app until it’s fixed.


h.t.h.


ernolf