Skip to content
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

deck breaks sharing of directories in 25.0.13.6 #5576

Closed
zerwes opened this issue Feb 7, 2024 · 6 comments
Closed

deck breaks sharing of directories in 25.0.13.6 #5576

zerwes opened this issue Feb 7, 2024 · 6 comments

Comments

@zerwes
Copy link

zerwes commented Feb 7, 2024

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Describe the bug
After the latest update to NC 25.0.13.6 (25.0.13 Enterprise), existing and new shares via links are broken and not accessible anymore.
Esp. while "downloading" the files from a share via link, the error is displayed:

This directory is unavailable

or

Internal Server Error
The server was unable to complete your request.

As I inspected the error shown below from the log file, I have disable the App Deck Version 1.8.7, and all things work ok again.

If you open the share link in a browser where you have a regular authenticated nc session open, the download works.

Example share dumped in json:

    {
        "id": "32545",
        "file_id": 4422961,
        "owner": "D3FC4A3A-29CD-4DF8-8A26-EE91D2891061",
        "initiator": "D3FC4A3A-29CD-4DF8-8A26-EE91D2891061",
        "time": "2024-02-07T09:37:41+00:00",
        "permissions": 31,
        "path": "\/test\/testshare",
        "name": "testshare",
        "is_directory": true,
        "type": "link",
        "token": "esCLHiWZ73epwFb"
    }

error:

      "Exception" : "Exception",
      "File" : "/var/www/nextcloud/nextcloud-25.0.13.6/lib/private/AppFramework/Http/Dispatcher.php",
      "Line" : 165,
      "Message" : "Argument 2 passed to OCA\\Deck\\Service\\CirclesService::isUserInCircle() must be of the type string, null given, called in /var/www/nextcloud/nextcloud-25.0.13.6/apps/deck/lib/Service/PermissionService.php on line 234 in file '/var/www/nextcloud/nextcloud-25.0.13.6/apps/deck/lib/Service/CirclesService.php' line 70",

The behavior is independent of the client in use, it is a server issue.

Operating system:

Distributor ID:	Debian
Description:	Debian GNU/Linux 11 (bullseye)
Release:	11
Codename:	bullseye

Web server:
apache2 2.4.56-1~deb11u2 amd64

Database:
mariadb-server 1:10.5.21-0+deb11u1

PHP version:

php7.4-fpm      7.4.33-1+deb11u4
php7.4-bcmath	7.4.33-1+deb11u4
php7.4-bz2	7.4.33-1+deb11u4
php7.4-cli	7.4.33-1+deb11u4
php7.4-common	7.4.33-1+deb11u4
php7.4-curl	7.4.33-1+deb11u4
php7.4-fpm	7.4.33-1+deb11u4
php7.4-gd	7.4.33-1+deb11u4
php7.4-gmp	7.4.33-1+deb11u4
php7.4-imap	7.4.33-1+deb11u4
php7.4-intl	7.4.33-1+deb11u4
php7.4-json	7.4.33-1+deb11u4
php7.4-ldap	7.4.33-1+deb11u4
php7.4-mbstring	7.4.33-1+deb11u4
php7.4-mysql	7.4.33-1+deb11u4
php7.4-opcache	7.4.33-1+deb11u4
php7.4-readline	7.4.33-1+deb11u4
php7.4-xml	7.4.33-1+deb11u4
php7.4-zip	7.4.33-1+deb11u4

Nextcloud version: (see Nextcloud admin page)

occ --no-warnings -n --no-ansi status
  - installed: true
  - version: 25.0.13.6
  - versionstring: 25.0.13 Enterprise
  - edition: 
  - maintenance: false
  - needsDbUpgrade: false
  - productname: Nextcloud

List of activated apps:

Enabled:
  - activity: 2.17.0
  - admin_audit: 1.15.0
  - bruteforcesettings: 2.5.0
  - calendar: 4.6.4
  - circles: 25.0.0
  - cloud_federation_api: 1.8.0
  - comments: 1.15.0
  - contacts: 5.5.1
  - contactsinteraction: 1.6.0
  - dav: 1.24.0
  - federatedfilesharing: 1.15.0
  - federation: 1.15.0
  - files: 1.20.1
  - files_external: 1.17.0
  - files_pdfviewer: 2.6.0
  - files_rightclick: 1.4.0
  - files_sharing: 1.17.0
  - files_trashbin: 1.15.0
  - files_versions: 1.18.0
  - logreader: 2.10.0
  - lookup_server_connector: 1.13.0
  - nextcloud_announcements: 1.14.0
  - notifications: 2.13.1
  - oauth2: 1.13.1
  - onlyoffice: 7.9.4
  - password_policy: 1.15.0
  - photos: 2.0.1
  - polls: 4.1.8
  - privacy: 1.9.0
  - provisioning_api: 1.15.0
  - related_resources: 1.0.4
  - serverinfo: 1.15.0
  - settings: 1.7.0
  - sharebymail: 1.15.0
  - sharelisting: 1.1.1
  - spreed: 15.0.8
  - support: 1.8.0
  - systemtags: 1.15.0
  - text: 3.6.0
  - theming: 2.0.1
  - twofactor_backupcodes: 1.14.0
  - updatenotification: 1.15.0
  - user_ldap: 1.15.0
  - user_status: 1.5.0
  - viewer: 1.9.0
  - workflowengine: 2.7.0
Disabled:
  - approval
  - dashboard: 7.1.0
  - deck: 1.8.7
  - encryption
  - files_lock: 27.0.0
  - firstrunwizard: 2.0
  - globalsiteselector
  - recommendations: 1.1.0
  - survey_client: 1.7.0
  - suspicious_login
  - twofactor_totp
  - user_saml: 5.2.2
  - weather_status: 1.2.0

Nextcloud configuration:

{
    "system": {
        "debug": true,
        "loglevel": 2,
        "lost_password_link": "disabled",
        "ldapUserCleanupInterval": 10,
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [...],
        "dbtype": "mysql",
        "version": "25.0.13.6",
        "mysql.utf8mb4": true,
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "open_basedir": "\/dev\/urandom",
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "maintenance": false,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "trashbin_retention_obligation": "32, 65",
        "default_phone_region": "DE",
        "updater.server.url": "https:\/\/updates.nextcloud.com\/customers\/XXX\/",
        "updater.release.channel": "enterprise"
    "apps": {
        "activity": {
            "enable_email": "no",
            "enabled": "yes",
            "installed_version": "2.17.0",
            "notify_email_calendar": "0",
            "notify_email_calendar_event": "0",
            "notify_email_calendar_todo": "0",
            "notify_email_circles_as_member": "1",
            "notify_email_circles_as_moderator": "1",
            "notify_email_comments": "0",
            "notify_email_contacts": "0",
            "notify_email_deck": "0",
            "notify_email_deck_card_description": "0",
            "notify_email_deck_comment": "0",
            "notify_email_favorite": "0",
            "notify_email_file_changed": "0",
            "notify_email_file_created": "0",
            "notify_email_file_deleted": "0",
            "notify_email_file_restored": "0",
            "notify_email_group_settings": "0",
            "notify_email_public_links": "0",
            "notify_email_remote_share": "0",
            "notify_email_shared": "0",
            "notify_email_spreed": "0",
            "notify_email_systemtags": "0",
            "notify_email_virus_detected": "1",
            "notify_notification_calendar": "0",
            "notify_notification_calendar_event": "0",
            "notify_notification_calendar_todo": "0",
            "notify_notification_comments": "0",
            "notify_notification_contacts": "0",
            "notify_notification_deck": "0",
            "notify_notification_deck_card_description": "0",
            "notify_notification_deck_comment": "0",
            "notify_notification_favorite": "0",
            "notify_notification_file_changed": "0",
            "notify_notification_file_favorite_changed": "0",
            "notify_notification_group_settings": "0",
            "notify_notification_personal_settings": "0",
            "notify_notification_public_links": "0",
            "notify_notification_remote_share": "0",
            "notify_notification_security": "1",
            "notify_notification_shared": "0",
            "notify_notification_spreed": "0",
            "notify_notification_systemtags": "0",
            "notify_setting_batchtime": "3600",
            "notify_setting_self": "0",
            "notify_setting_selfemail": "0",
            "notify_stream_calendar": "0",
            "notify_stream_calendar_event": "0",
            "notify_stream_calendar_todo": "0",
            "notify_stream_circles_as_member": "1",
            "notify_stream_circles_as_moderator": "1",
            "notify_stream_comments": "0",
            "notify_stream_favorite": "0",
            "notify_stream_file_changed": "1",
            "notify_stream_file_created": "1",
            "notify_stream_file_deleted": "1",
            "notify_stream_file_favorite": "1",
            "notify_stream_file_restored": "1",
            "notify_stream_public_links": "0",
            "notify_stream_remote_share": "1",
            "notify_stream_shared": "1",
            "notify_stream_spreed": "1",
            "notify_stream_systemtags": "0",
            "notify_stream_virus_detected": "1",
            "types": "filesystem"
        },
        "admin_audit": {
            "enabled": "yes",
            "installed_version": "1.15.0",
            "types": "logging"
        },
        "apporder": {
            "enabled": "no",
            "installed_version": "0.15.0",
            "types": ""
        },
        "backgroundjob": {
            "lastjob": "537296"
        },
        "bruteforcesettings": {
            "enabled": "yes",
            "installed_version": "2.5.0",
            "types": ""
        },
        "calendar": {
            "enabled": "yes",
            "installed_version": "4.6.4",
            "types": ""
        },
        "circles": {
            "enabled": "yes",
            "installed_version": "25.0.0",
            "local_gskey": "***REMOVED SENSITIVE VALUE***",
            "loopback_tmp_id": "",
            "loopback_tmp_path": "\/",
            "loopback_tmp_scheme": "https",
            "maintenance_run": "0",
            "maintenance_update": "{\"maximum\":3,\"3\":1707300006,\"2\":1707302405,\"1\":1707302702,\"4\":1668391204,\"5\":1668222007}",
            "migration_22": "1",
            "migration_22_1": "1",
            "migration_run": "0",
            "test_async_count": "0",
            "test_async_hand": "1",
            "test_async_init": "1515669932",
            "test_async_lock": "7d8c43fd75381755271266327e1056f27d19bd4a9a815ea3",
            "test_nc_base": "",
            "types": "filesystem,dav"
        },
        "cloud_federation_api": {
            "enabled": "yes",
            "installed_version": "1.8.0",
            "types": "filesystem"
        },
        "comments": {
            "enabled": "yes",
            "installed_version": "1.15.0",
            "types": "logging"
        },
        "contacts": {
            "enabled": "yes",
            "installed_version": "5.5.1",
            "types": "dav"
        },
        "contactsinteraction": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": "dav"
        },
        "core": {
            "backgroundjobs_mode": "cron",
            "enterpriseLogoChecked": "yes",
            "installed.bundles": "[\"CoreBundle\"]",
            "installedat": "1490200137.0363",
            "lastcron": "1707302704",
            "lastupdateResult": "[]",
            "lastupdatedat": "1707302152",
            "moveavatarsdone": "yes",
            "newUser.sendEmail": "no",
            "previewsCleanedUp": "1",
            "public_files": "files_sharing\/public.php",
            "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
            "repairlegacystoragesdone": "yes",
            "scss.variables": "d41d8cd98f00b204e9800998ecf8427e",
            "shareapi_default_expire_date": "yes",
            "shareapi_enable_link_password_by_default": "no",
            "shareapi_enforce_expire_date": "no",
            "shareapi_expire_after_n_days": "30",
            "theming.variables": "cb448c9ed3a869775c383c4f09d8528c",
            "umgmt_show_backend": "false",
            "umgmt_show_storage_location": "false",
            "updater.secret.created": "1493650774",
            "vendor": "nextcloud"
        },
        "dashboard": {
            "enabled": "no",
            "installed_version": "7.1.0",
            "types": ""
        },
        "dav": {
            "buildCalendarReminderIndex": "yes",
            "buildCalendarSearchIndex": "yes",
            "chunks_migrated": "1",
            "enabled": "yes",
            "generateBirthdayCalendar": "no",
            "installed_version": "1.24.0",
            "regeneratedBirthdayCalendarsForYearFix": "yes",
            "types": "filesystem"
        },
        "deck": {
            "enabled": "no",
            "installed_version": "1.8.7",
            "types": "dav"
        },
        "federatedfilesharing": {
            "enabled": "yes",
            "installed_version": "1.15.0",
            "types": ""
        },
        "federation": {
            "enabled": "yes",
            "installed_version": "1.15.0",
            "types": "authentication"
        },
        "files": {
            "cronjob_scan_files": "5196000",
            "default_quota": "10 GB",
            "enabled": "yes",
            "installed_version": "1.20.1",
            "max_chunk_size": "20971520",
            "types": "filesystem",
            "watermark_enabled": "no"
        },
        "files_accesscontrol": {
            "enabled": "no",
            "installed_version": "1.12.1",
            "types": "filesystem"
        },
        "files_antivirus": {
            "av_cmd_options": "",
            "av_host": "",
            "av_infected_action": "delete",
            "av_max_file_size": "-1",
            "av_mode": "socket",
            "av_path": "\/usr\/bin\/clamscan",
            "av_port": "0",
            "av_socket": "\/var\/run\/clamav\/clamd.ctl",
            "av_stream_max_length": "26214400",
            "enabled": "no",
            "installed_version": "3.2.2",
            "types": "filesystem,dav"
        },
        "files_external": {
            "enabled": "yes",
            "installed_version": "1.17.0",
            "types": "filesystem"
        },
        "files_lock": {
            "installed_version": "27.0.0",
            "types": "filesystem,dav"
        },
        "files_pdfviewer": {
            "enabled": "yes",
            "installed_version": "2.6.0",
            "types": ""
        },
        "files_rightclick": {
            "enabled": "yes",
            "installed_version": "1.4.0",
            "types": ""
        },
        "files_sharing": {
            "enabled": "yes",
            "installed_version": "1.17.0",
            "lookupServerEnabled": "no",
            "types": "filesystem"
        },
        "files_texteditor": {
            "enabled": "no",
            "installed_version": "2.8.0",
            "types": ""
        },
        "files_trashbin": {
            "enabled": "yes",
            "installed_version": "1.15.0",
            "types": "filesystem,dav"
        },
        "files_versions": {
            "enabled": "yes",
            "installed_version": "1.18.0",
            "types": "filesystem,dav"
        },
        "firstrunwizard": {
            "enabled": "no",
            "installed_version": "2.0",
            "types": "logging"
        },
        "gallery": {
            "enabled": "no",
            "installed_version": "18.4.0",
            "types": ""
        },
        "logreader": {
            "enabled": "yes",
            "installed_version": "2.10.0",
            "levels": "11111",
            "live": "1",
            "relativedates": "",
            "types": ""
        },
        "lookup_server_connector": {
            "enabled": "yes",
            "installed_version": "1.13.0",
            "types": "authentication"
        },
        "nextcloud_announcements": {
            "enabled": "yes",
            "installed_version": "1.14.0",
            "notification_groups": "[\"nextcloud-update-notifications\",\"admin\"]",
            "pub_date": "Thu, 24 Oct 2019 00:00:00 +0200",
            "types": "logging"
        },
        "notifications": {
            "enabled": "yes",
            "installed_version": "2.13.1",
            "types": "logging"
        },
        "oauth2": {
            "enabled": "yes",
            "installed_version": "1.13.1",
            "types": "authentication"
        },
        "ojsxc": {},
        "onlyoffice": {
            "DocumentServerInternalUrl": "https:\/\/onlyoffice....\/",
            "DocumentServerUrl": "https:\/\/onlyoffice...\/",
            "StorageUrl": "",
            "advanced": "false",
            "customizationChat": "true",
            "customizationCompactHeader": "true",
            "customizationFeedback": "true",
            "customizationForcesave": "true",
            "customizationHelp": "true",
            "customizationReviewDisplay": "original",
            "customizationTheme": "theme-classic-light",
            "customizationToolbarNoTabs": "true",
            "defFormats": "{\"csv\":\"true\",\"doc\":\"true\",\"docm\":\"true\",\"docx\":\"true\",\"docxf\":\"true\",\"oform\":\"true\",\"dotx\":\"false\",\"epub\":\"false\",\"html\":\"false\",\"odp\":\"true\",\"ods\":\"true\",\"odt\":\"true\",\"otp\":\"false\",\"ots\":\"false\",\"ott\":\"false\",\"pdf\":\"false\",\"potm\":\"false\",\"potx\":\"false\",\"ppsm\":\"false\",\"ppsx\":\"false\",\"ppt\":\"true\",\"pptm\":\"true\",\"pptx\":\"true\",\"rtf\":\"true\",\"txt\":\"true\",\"xls\":\"true\",\"xlsm\":\"true\",\"xlsx\":\"true\",\"xltm\":\"false\",\"xltx\":\"false\"}",
            "demo": "{\"available\":false,\"enabled\":false,\"start\":{\"date\":\"2020-02-05 14:03:28.548277\",\"timezone_type\":3,\"timezone\":\"UTC\"}}",
            "editFormats": "{\"csv\":\"true\",\"odp\":\"true\",\"ods\":\"true\",\"odt\":\"true\",\"rtf\":\"true\",\"txt\":\"true\"}",
            "enabled": "yes",
            "groups": "[]",
            "installed_version": "7.9.4",
            "jwt_header": "",
            "jwt_secret": "sEdP23QCDCnR2GB3K5hU",
            "preview": "false",
            "sameTab": "true",
            "settings_error": "",
            "types": "prevent_group_restriction",
            "verify_peer_off": "false",
            "versionHistory": "true"
        },
        "onyoffice": {
            "jwt_header": "Authorization"
        },
        "password_policy": {
            "enabled": "yes",
            "enforceNumericCharacters": "1",
            "enforceUpperLowerCase": "1",
            "installed_version": "1.15.0",
            "minLength": "8",
            "types": "authentication"
        },
        "photos": {
            "enabled": "yes",
            "installed_version": "2.0.1",
            "types": "dav,authentication"
        },
        "polls": {
            "enabled": "yes",
            "installed_version": "4.1.8",
            "types": ""
        },
        "privacy": {
            "enabled": "yes",
            "installed_version": "1.9.0",
            "readableLocation": "de",
            "types": ""
        },
        "provisioning_api": {
            "enabled": "yes",
            "installed_version": "1.15.0",
            "types": "prevent_group_restriction"
        },
        "ransomware_protection": {
            "enabled": "no",
            "installed_version": "1.1.2",
            "types": "logging"
        },
        "recommendations": {
            "enabled": "no",
            "installed_version": "1.1.0",
            "types": ""
        },
        "related_resources": {
            "enabled": "yes",
            "installed_version": "1.0.4",
            "types": ""
        },
        "richdocuments": {
            "enabled": "no",
            "installed_version": "7.1.5",
            "types": "prevent_group_restriction"
        },
        "serverinfo": {
            "cached_count_filecache": "1318395",
            "cached_count_storages": "744",
            "enabled": "yes",
            "installed_version": "1.15.0",
            "types": ""
        },
        "settings": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": ""
        },
        "sharebymail": {
            "enabled": "yes",
            "installed_version": "1.15.0",
            "types": "filesystem"
        },
        "sharelisting": {
            "enabled": "yes",
            "installed_version": "1.1.1",
            "types": ""
        },
        "spreed": {
            "allowed_groups": "[]",
            "enabled": "yes",
            "has_reference_id": "yes",
            "hide_signaling_warning": "no",
            "installed_version": "15.0.8",
            "project_access_invalidated": "1",
            "signaling_servers": "***REMOVED SENSITIVE VALUE***",
            "signaling_ticket_secret": "***REMOVED SENSITIVE VALUE***",
            "signaling_token_privkey_es256": "***REMOVED SENSITIVE VALUE***",
            "signaling_token_pubkey_es256": "***REMOVED SENSITIVE VALUE***",
            "sip_bridge_dialin_info": "***REMOVED SENSITIVE VALUE***",
            "sip_bridge_groups": "[]",
            "sip_bridge_shared_secret": "***REMOVED SENSITIVE VALUE***",
            "stun_servers": "***REMOVED SENSITIVE VALUE***",
            "turn_servers": "***REMOVED SENSITIVE VALUE***",
            "types": "dav,prevent_group_restriction"
        },
        "support": {
            "enabled": "yes",
            "installed_version": "1.8.0",
            "types": "session"
        },
        "survey_client": {
            "enabled": "no",
            "installed_version": "1.7.0",
            "types": ""
        },
        "systemtags": {
            "enabled": "yes",
            "installed_version": "1.15.0",
            "types": "logging"
        },
        "text": {
            "enabled": "yes",
            "installed_version": "3.6.0",
            "types": "dav"
        },
        "updatenotification": {
            "bruteforcesettings": "1.3.0",
            "calendar": "4.6.4",
            "circles": "0.19.13",
            "contacts": "5.5.1",
            "core": "25.0.13.6",
            "deck": "1.8.7",
            "enabled": "yes",
            "files_accesscontrol": "1.11.1",
            "files_antivirus": "3.3.0",
            "files_pdfviewer": "1.2.1",
            "installed_version": "1.15.0",
            "notify_groups": "[\"admin\",\"nextcloud-update-notifications\"]",
            "onlyoffice": "7.9.4",
            "polls": "3.8.4",
            "ransomware_protection": "1.1.2",
            "spreed": "15.0.8",
            "theming": "1.4.5",
            "types": "",
            "update_check_errors": "0"
        },
        "user_ldap": {},
        "user_saml": {
            "installed_version": "5.2.2",
            "types": "authentication"
        },
        "user_status": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": ""
        },
        "viewer": {
            "enabled": "yes",
            "installed_version": "1.9.0",
            "types": ""
        },
        "weather_status": {
            "enabled": "no",
            "installed_version": "1.2.0",
            "types": ""
        },
        "workflowengine": {
            "enabled": "yes",
            "installed_version": "2.7.0",
            "types": "filesystem"
        }
    }
}

Nextcloud log (data/nextcloud.log)

{
   "app" : "index",
   "exception" : {
      "Code" : 0,
      "CustomMessage" : "--",
      "Exception" : "Exception",
      "File" : "/var/www/nextcloud/nextcloud-25.0.13.6/lib/private/AppFramework/Http/Dispatcher.php",
      "Line" : 165,
      "Message" : "Argument 2 passed to OCA\\Deck\\Service\\CirclesService::isUserInCircle() must be of the type string, null given, called in /var/www/nextcloud/nextcloud-25.0.13.6/apps/deck/lib/Service/PermissionService.php on line 234 in file '/var/www/nextcloud/nextcloud-25.0.13.6/apps/deck/lib/Service/CirclesService.php' line 70",
      "Previous" : {
         "Code" : 0,
         "Exception" : "TypeError",
         "File" : "/var/www/nextcloud/nextcloud-25.0.13.6/apps/deck/lib/Service/CirclesService.php",
         "Line" : 70,
         "Message" : "Argument 2 passed to OCA\\Deck\\Service\\CirclesService::isUserInCircle() must be of the type string, null given, called in /var/www/nextcloud/nextcloud-25.0.13.6/apps/deck/lib/Service/PermissionService.php on line 234",
         "Trace" : [
            {
               "class" : "OCA\\Deck\\Service\\CirclesService",
               "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/apps/deck/lib/Service/PermissionService.php",
               "function" : "isUserInCircle",
               "line" : 234,
               "type" : "->"
            },
            {
               "class" : "OCA\\Deck\\Service\\PermissionService",
               "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/apps/deck/lib/Service/PermissionService.php",
               "function" : "userCan",
               "line" : 114,
               "type" : "->"
            },
            {
               "class" : "OCA\\Deck\\Service\\PermissionService",
               "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/apps/deck/lib/Service/PermissionService.php",
               "function" : "getPermissions",
               "line" : 164,
               "type" : "->"
            },
            {
               "class" : "OCA\\Deck\\Service\\PermissionService",
               "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/apps/deck/lib/Sharing/DeckShareProvider.php",
               "function" : "checkPermission",
               "line" : 289,
               "type" : "->"
            },
            {
               "class" : "OCA\\Deck\\Sharing\\DeckShareProvider",
               "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/apps/deck/lib/Sharing/DeckShareProvider.php",
               "function" : "applyBoardPermission",
               "line" : 668,
               "type" : "->"
            },
            {
               "class" : "OCA\\Deck\\Sharing\\DeckShareProvider",
               "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/apps/deck/lib/Sharing/DeckShareProvider.php",
               "function" : "resolveSharesForRecipient",
               "line" : 780,
               "type" : "->"
            },
            {
               "class" : "OCA\\Deck\\Sharing\\DeckShareProvider",
               "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/lib/private/Share20/Manager.php",
               "function" : "getSharedWith",
               "line" : 1407,
               "type" : "->"
            },
            {
               "class" : "OC\\Share20\\Manager",
               "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/apps/files_sharing/lib/MountProvider.php",
               "function" : "getSharedWith",
               "line" : 99,
               "type" : "->"
            },
            {
               "class" : "OCA\\Files_Sharing\\MountProvider",
               "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/lib/private/Files/Config/MountProviderCollection.php",
               "function" : "getMountsForUser",
               "line" : 134,
               "type" : "->"
            },
            {
               "class" : "OC\\Files\\Config\\MountProviderCollection",
               "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/lib/private/Files/SetupManager.php",
               "function" : "addMountForUser",
               "line" : 226,
               "type" : "->"
            },
            {
               "args" : [
                  "*** sensitive parameters replaced ***"
               ],
               "class" : "OC\\Files\\SetupManager",
               "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/lib/private/Files/SetupManager.php",
               "function" : "OC\\Files\\{closure}",
               "line" : 318,
               "type" : "->"
            },
            {
               "class" : "OC\\Files\\SetupManager",
               "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/lib/private/Files/SetupManager.php",
               "function" : "setupForUserWith",
               "line" : 227,
               "type" : "->"
            },
            {
               "class" : "OC\\Files\\SetupManager",
               "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/lib/private/legacy/OC_Util.php",
               "function" : "setupForUser",
               "line" : 111,
               "type" : "->"
            },
            {
               "class" : "OC_Util",
               "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/apps/files_sharing/lib/Controller/ShareController.php",
               "function" : "setupFS",
               "line" : 673,
               "type" : "::"
            },
            {
               "class" : "OCA\\Files_Sharing\\Controller\\ShareController",
               "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/lib/private/AppFramework/Http/Dispatcher.php",
               "function" : "downloadShare",
               "line" : 225,
               "type" : "->"
            },
            {
               "class" : "OC\\AppFramework\\Http\\Dispatcher",
               "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/lib/private/AppFramework/Http/Dispatcher.php",
               "function" : "executeController",
               "line" : 133,
               "type" : "->"
            },
            {
               "class" : "OC\\AppFramework\\Http\\Dispatcher",
               "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/lib/private/AppFramework/App.php",
               "function" : "dispatch",
               "line" : 172,
               "type" : "->"
            },
            {
               "class" : "OC\\AppFramework\\App",
               "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/lib/private/Route/Router.php",
               "function" : "main",
               "line" : 298,
               "type" : "::"
            },
            {
               "class" : "OC\\Route\\Router",
               "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/lib/base.php",
               "function" : "match",
               "line" : 1053,
               "type" : "->"
            },
            {
               "class" : "OC",
               "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/index.php",
               "function" : "handleRequest",
               "line" : 36,
               "type" : "::"
            }
         ]
      },
      "Trace" : [
         {
            "class" : "OC\\AppFramework\\Http\\Dispatcher",
            "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/lib/private/AppFramework/App.php",
            "function" : "dispatch",
            "line" : 172,
            "type" : "->"
         },
         {
            "class" : "OC\\AppFramework\\App",
            "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/lib/private/Route/Router.php",
            "function" : "main",
            "line" : 298,
            "type" : "::"
         },
         {
            "class" : "OC\\Route\\Router",
            "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/lib/base.php",
            "function" : "match",
            "line" : 1053,
            "type" : "->"
         },
         {
            "class" : "OC",
            "file" : "/var/www/nextcloud/nextcloud-25.0.13.6/index.php",
            "function" : "handleRequest",
            "line" : 36,
            "type" : "::"
         }
      ]
   },
   "level" : 3,
   "message" : "Argument 2 passed to OCA\\Deck\\Service\\CirclesService::isUserInCircle() must be of the type string, null given, called in /var/www/nextcloud/nextcloud-25.0.13.6/apps/deck/lib/Service/PermissionService.php on line 234 in file '/var/www/nextcloud/nextcloud-25.0.13.6/apps/deck/lib/Service/CirclesService.php' line 70",
   "method" : "GET",
   "remoteAddr" : "...",
   "reqId" : "6NBM02YqjuDE6Jck4BdB",
   "time" : "2024-02-07T09:35:58+00:00",
   "url" : "/s/k98TFE6SF2faSMS/download/FILENAME",
   "user" : "--",
   "userAgent" : "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0",
   "version" : "25.0.13.6"
}
@zerwes
Copy link
Author

zerwes commented Feb 7, 2024

just to clarify: the issue occurred after the latest update for nc 25.0.13.5 -> 25.0.13.6
this included the update of the deck app from 1.8.6 -> 1.8.7

@Pietro-Aretino
Copy link

Pietro-Aretino commented Feb 12, 2024

Same issue with me. Opened issue a while ago, still no reply on this:#5535

At the moment I have to choose between Deck or File sharing for my company. We rely on Deck for project management, but we share a lot externally to clients, so this is a pretty bad bug. Seems like Deck is calling some group permissions and impacting link sharing. Link share for whatever reason checks for group permissions and then either breaks the link, or when a user goes to click on "Download" on the link page, they get an error.

However I am on nextcloud 25.0.13.2. I believe it was the 1.8.7 update that broke. Don't know if this is just a Nextcloud 25 incompatibility issue.

Does anyone know if upgrading to Nextcloud 26 solves this?

@Pietro-Aretino
Copy link

If it can be of use to anyone, the only way I was able to fix my issue was downgrading to Deck 1.8.5.
Make a backup of your Nextcloud and make a backup of your DB before making any of these modifications.

  1. You can download older versions of Deck here: https://apps.nextcloud.com/apps/deck/releases?platform=25#25
  2. Login to your Nextcloud server as an admin and disable the Deck app.
  3. SSH into your Nextcloud server, go to your apps directory (/var/www/nextcloud/apps/)
  4. Move the folder "deck" somewhere else /home/ or /root/ or anywhere else, no need to delete, just in case something goes wrong, you can plop it right back.
  5. Download and extract the 1.8.5 version of deck from the aforementioned link
  6. Move the 1.8.5 deck folder to the same location /var/www/nextcloud/apps/
  7. Give the the same user rights and permissions "chown -r www-data:www-data deck/"
  8. Log back into your Nextcloud server and now Enable Deck, you should see your Nextcloud server telling you to update the Deck app.

I tested my link shares and the Deck app and both of them are now functioning correctly.

If you have a cron job to auto-update apps and what not, ensure to disable that.

@juliusknorr
Copy link
Member

I backported fix to #5595

Testing is very welcome :)

@zerwes
Copy link
Author

zerwes commented Feb 15, 2024

Thank you @juliushaertl
The flue knocked me out, I'll test the patch from the #5595 as soon as I feel human again.

@zerwes
Copy link
Author

zerwes commented Feb 16, 2024

good morning @juliushaertl

I just updated the deck app to 1.8.8 and re-enabled it

a short look into apps/deck/lib/Service/PermissionService.php : looks like the patch in question is already included in the new version

tested a public share link - looks like all thinks are fine again

thank you for the fix

@zerwes zerwes closed this as completed Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants