Skip to content

Remote share "failed to perform action" on share acceptance. #21004

@jeslenbucci

Description

@jeslenbucci

Steps to reproduce

  1. Choose folder to share with remote user
  2. Enter their remote federated nextcloud address into the share box in the format username@nextcloud.url.com
  3. The remote user is notified of the share and clicks accept

Expected behaviour

The share is accepted, and the remote user is able to access the files.

Actual behaviour

The remove user receives the error message "Failed to perform action" in a tooltip window under the notifications icon.

Server configuration detail

Operating system: Linux 5.3.0-51-generic #44~18.04.2-Ubuntu SMP Thu Apr 23 14:27:18 UTC 2020 x86_64

Webserver: Apache/2.4.29 (Ubuntu) (fpm-fcgi)

Database: mysql 10.1.44

PHP version:

7.2.24-0ubuntu0.18.04.4
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, sodium, session, standard, cgi-fcgi, mysqlnd, PDO, xml, apcu, apc, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, intl, json, ldap, exif, mysqli, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, smbclient, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, libsmbclient, Zend OPcache

Nextcloud version: 18.0.4 - 18.0.4.2

Updated from an older Nextcloud/ownCloud or fresh install: Updated from an older Nextcloud

Where did you install Nextcloud from: nextcloud.com

Signing status

Array
(
)

List of activated apps
Enabled:
 - accessibility: 1.4.0
 - activity: 2.11.0
 - admin_audit: 1.8.0
 - bookmarks: 3.0.13
 - bruteforcesettings: 1.6.0
 - calendar: 2.0.3
 - cloud_federation_api: 1.1.0
 - comments: 1.8.0
 - contacts: 3.3.0
 - dav: 1.14.0
 - deck: 1.0.1
 - external: 3.5.0
 - federatedfilesharing: 1.8.0
 - federation: 1.8.0
 - files: 1.13.1
 - files_accesscontrol: 1.8.1
 - files_mindmap: 0.0.21
 - files_pdfviewer: 1.7.0
 - files_rightclick: 0.15.2
 - files_sharing: 1.10.1
 - files_trashbin: 1.8.0
 - files_versions: 1.11.0
 - files_videoplayer: 1.7.0
 - groupfolders: 6.0.6
 - issuetemplate: 0.6.0
 - logreader: 2.3.0
 - lookup_server_connector: 1.6.0
 - nextcloud_announcements: 1.7.0
 - notes: 3.3.0
 - notifications: 2.6.0
 - oauth2: 1.6.0
 - password_policy: 1.8.0
 - photos: 1.0.0
 - privacy: 1.2.0
 - provisioning_api: 1.8.0
 - serverinfo: 1.8.0
 - settings: 1.0.0
 - sharebymail: 1.8.0
 - socialsharing_email: 2.0.0
 - spreed: 8.0.9
 - support: 1.1.0
 - systemtags: 1.8.0
 - tasks: 0.13.1
 - text: 2.0.0
 - theming: 1.9.0
 - twofactor_backupcodes: 1.7.0
 - updatenotification: 1.8.0
 - viewer: 1.2.0
 - workflowengine: 2.0.0
Disabled:
 - encryption
 - files_external
 - firstrunwizard
 - onlyoffice
 - recommendations
 - survey_client
 - user_ldap

Configuration (config/config.php)
{
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "localhost",
        "nc.jeslenbucci.com"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "18.0.4.2",
    "overwrite.cli.url": "http:\/\/localhost",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpmode": "smtp",
    "mail_sendmailmode": "pipe",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtpauth": 1,
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "587",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "maintenance": false,
    "data-fingerprint": "b55d4f6a25c10590a7ce2461b28f4a97",
    "activity_expire_days": 14,
    "auth.bruteforce.protection.enabled": true,
    "blacklisted_files": [
        ".htaccess",
        "Thumbs.db",
        "thumbs.db"
    ],
    "cron_log": true,
    "enable_previews": true,
    "enabledPreviewProviders": [
        "OC\\Preview\\PNG",
        "OC\\Preview\\JPEG",
        "OC\\Preview\\GIF",
        "OC\\Preview\\BMP",
        "OC\\Preview\\XBitmap",
        "OC\\Preview\\Movie",
        "OC\\Preview\\PDF",
        "OC\\Preview\\MP3",
        "OC\\Preview\\TXT",
        "OC\\Preview\\MarkDown"
    ],
    "filesystem_check_changes": 0,
    "filelocking.enabled": "true",
    "htaccess.RewriteBase": "\/",
    "integrity.check.disabled": false,
    "knowledgebaseenabled": false,
    "logfile": "\/var\/www\/nc.jeslenbucci.com\/data\/nextcloud.log",
    "loglevel": 2,
    "logtimezone": "America\/Vancouver",
    "log_rotate_size": 104857600,
    "memcache.local": "\\OC\\Memcache\\APCu",
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "overwriteprotocol": "https",
    "preview_max_x": 1024,
    "preview_max_y": 768,
    "preview_max_scale_factor": 1,
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 0,
        "timeout": 0
    },
    "quota_include_external_storage": false,
    "share_folder": "\/Shares",
    "skeletondirectory": "",
    "theme": "",
    "trashbin_retention_obligation": "auto, 7",
    "updater.release.channel": "stable",
    "mail_smtpsecure": "tls"
}

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption:

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

Client configuration

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36

Operating system: Microsoft Windows 10 Pro Insider Preview (10.0.19613 Build 19613)

Logs

Web server error log
220.130.130.100 - - [16/May/2020:07:20:49 -0700] "GET / HTTP/1.1" 400 0 "-" "-"
24.4.124.241 - - [16/May/2020:07:53:02 -0700] "GET / HTTP/1.1" 200 11173 "-" "-"
212.175.114.140 - - [16/May/2020:08:10:52 -0700] "GET / HTTP/1.1" 400 0 "-" "-"
212.175.114.140 - - [16/May/2020:08:14:33 -0700] "-" 408 0 "-" "-"
198.199.84.37 - - [16/May/2020:08:34:49 -0700] "GET / HTTP/1.1" 200 11173 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
59.126.33.232 - - [16/May/2020:10:13:14 -0700] "GET / HTTP/1.1" 400 0 "-" "-"
89.248.172.90 - - [16/May/2020:10:44:09 -0700] "GET http://httpheader.net/azenv.php HTTP/1.1" 404 190 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.28) Gecko/20120306 Firefox/3.6.28 (.NET CLR 3.5.30729)"
89.248.172.90 - - [16/May/2020:10:44:50 -0700] "-" 408 0 "-" "-"
46.28.68.169 - - [16/May/2020:11:25:23 -0700] "\x03" 400 0 "-" "-"
46.28.68.169 - - [16/May/2020:11:25:24 -0700] "\x03" 400 0 "-" "-"
161.35.108.182 - - [16/May/2020:11:54:51 -0700] "GET / HTTP/1.1" 200 11173 "-" "PycURL/7.43.0.2 libcurl/7.64.0 GnuTLS/3.6.7 zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.36.0 librtmp/2.3"
24.202.3.63 - - [16/May/2020:12:02:12 -0700] "POST /cgi-bin/mainfunction.cgi HTTP/1.1" 404 432 "-" "XTC"
31.145.8.34 - - [16/May/2020:12:15:21 -0700] "GET / HTTP/1.1" 400 0 "-" "-"
2.42.46.214 - - [16/May/2020:12:23:33 -0700] "POST /cgi-bin/mainfunction.cgi HTTP/1.1" 404 432 "-" "XTC"
119.204.100.197 - - [16/May/2020:14:29:57 -0700] "GET / HTTP/1.1" 400 0 "-" "-"
111.223.65.146 - - [16/May/2020:15:23:18 -0700] "GET / HTTP/1.1" 400 0 "-" "-"
49.159.95.107 - - [16/May/2020:16:19:55 -0700] "GET / HTTP/1.1" 400 0 "-" "-"
14.231.172.104 - - [16/May/2020:16:41:58 -0700] "GET / HTTP/1.1" 400 0 "-" "-"
161.35.103.75 - - [16/May/2020:16:45:08 -0700] "GET / HTTP/1.1" 200 11173 "-" "PycURL/7.43.0.2 libcurl/7.64.0 GnuTLS/3.6.7 zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.36.0 librtmp/2.3"
Nextcloud log
{
  "reqId": "K9PjFJeshSvuEugtClP5",
  "level": 3,
  "time": "2020-05-16T15:26:08-07:00",
  "remoteAddr": "209.161.251.178",
  "user": "jeslen",
  "app": "no app in context",
  "method": "GET",
  "url": "/ocs/v1.php/apps/files_sharing/api/v1/sharees?format=json&itemType=folder&search=kip@&lookup=false&perPage=200&shareType[]=0&shareType[]=1&shareType[]=6&shareType[]=9&shareType[]=7&shareType[]=10&shareType[]=8&shareType[]=4",
  "message": {
    "Exception": "InvalidArgumentException",
    "Message": "Invalid Federated Cloud ID",
    "Code": 0,
    "Trace": [
      {
        "file": "[NEXTCLOUD_DIRECTORY]/lib/private/Collaboration/Collaborators/RemoteGroupPlugin.php",
        "line": 61,
        "function": "splitGroupRemote",
        "class": "OC\\Collaboration\\Collaborators\\RemoteGroupPlugin",
        "type": "->",
        "args": [
          "kip@"
        ]
      },
      {
        "file": "[NEXTCLOUD_DIRECTORY]/lib/private/Collaboration/Collaborators/Search.php",
        "line": 65,
        "function": "search",
        "class": "OC\\Collaboration\\Collaborators\\RemoteGroupPlugin",
        "type": "->",
        "args": [
          "kip@",
          200,
          0,
          {
            "__class__": "OC\\Collaboration\\Collaborators\\SearchResult"
          }
        ]
      },
      {
        "file": "[NEXTCLOUD_DIRECTORY]/apps/files_sharing/lib/Controller/ShareesAPIController.php",
        "line": 221,
        "function": "search",
        "class": "OC\\Collaboration\\Collaborators\\Search",
        "type": "->",
        "args": [
          "kip@",
          [
            0,
            1,
            4,
            6,
            9,
            10
          ],
          false,
          200,
          0
        ]
      },
      {
        "file": "[NEXTCLOUD_DIRECTORY]/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 170,
        "function": "search",
        "class": "OCA\\Files_Sharing\\Controller\\ShareesAPIController",
        "type": "->",
        "args": [
          "kip@",
          "folder",
          1,
          200,
          [
            "0",
            "1",
            "6",
            "9",
            "7",
            "10",
            "8",
            "4"
          ],
          false
        ]
      },
      {
        "file": "[NEXTCLOUD_DIRECTORY]/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 99,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          {
            "__class__": "OCA\\Files_Sharing\\Controller\\ShareesAPIController"
          },
          "search"
        ]
      },
      {
        "file": "[NEXTCLOUD_DIRECTORY]/lib/private/AppFramework/App.php",
        "line": 125,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          {
            "__class__": "OCA\\Files_Sharing\\Controller\\ShareesAPIController"
          },
          "search"
        ]
      },
      {
        "file": "[NEXTCLOUD_DIRECTORY]/lib/private/AppFramework/Routing/RouteActionHandler.php",
        "line": 47,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::",
        "args": [
          "OCA\\Files_Sharing\\Controller\\ShareesAPIController",
          "search",
          {
            "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
          },
          {
            "_route": "ocs.files_sharing.ShareesAPI.search"
          }
        ]
      },
      {
        "function": "__invoke",
        "class": "OC\\AppFramework\\Routing\\RouteActionHandler",
        "type": "->",
        "args": [
          {
            "_route": "ocs.files_sharing.ShareesAPI.search"
          }
        ]
      },
      {
        "file": "[NEXTCLOUD_DIRECTORY]/lib/private/Route/Router.php",
        "line": 299,
        "function": "call_user_func",
        "args": [
          {
            "__class__": "OC\\AppFramework\\Routing\\RouteActionHandler"
          },
          {
            "_route": "ocs.files_sharing.ShareesAPI.search"
          }
        ]
      },
      {
        "file": "[NEXTCLOUD_DIRECTORY]/ocs/v1.php",
        "line": 82,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/ocsapp/apps/files_sharing/api/v1/sharees"
        ]
      }
    ],
    "File": "[NEXTCLOUD_DIRECTORY]/lib/private/Collaboration/Collaborators/RemoteGroupPlugin.php",
    "Line": 91,
    "Previous": {
      "Exception": "InvalidArgumentException",
      "Message": "Invalid cloud id",
      "Code": 0,
      "Trace": [
        {
          "file": "[NEXTCLOUD_DIRECTORY]/lib/private/Collaboration/Collaborators/RemoteGroupPlugin.php",
          "line": 88,
          "function": "resolveCloudId",
          "class": "OC\\Federation\\CloudIdManager",
          "type": "->",
          "args": [
            "kip@"
          ]
        },
        {
          "file": "[NEXTCLOUD_DIRECTORY]/lib/private/Collaboration/Collaborators/RemoteGroupPlugin.php",
          "line": 61,
          "function": "splitGroupRemote",
          "class": "OC\\Collaboration\\Collaborators\\RemoteGroupPlugin",
          "type": "->",
          "args": [
            "kip@"
          ]
        },
        {
          "file": "[NEXTCLOUD_DIRECTORY]/lib/private/Collaboration/Collaborators/Search.php",
          "line": 65,
          "function": "search",
          "class": "OC\\Collaboration\\Collaborators\\RemoteGroupPlugin",
          "type": "->",
          "args": [
            "kip@",
            200,
            0,
            {
              "__class__": "OC\\Collaboration\\Collaborators\\SearchResult"
            }
          ]
        },
        {
          "file": "[NEXTCLOUD_DIRECTORY]/apps/files_sharing/lib/Controller/ShareesAPIController.php",
          "line": 221,
          "function": "search",
          "class": "OC\\Collaboration\\Collaborators\\Search",
          "type": "->",
          "args": [
            "kip@",
            [
              0,
              1,
              4,
              6,
              9,
              10
            ],
            false,
            200,
            0
          ]
        },
        {
          "file": "[NEXTCLOUD_DIRECTORY]/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 170,
          "function": "search",
          "class": "OCA\\Files_Sharing\\Controller\\ShareesAPIController",
          "type": "->",
          "args": [
            "kip@",
            "folder",
            1,
            200,
            [
              "0",
              "1",
              "6",
              "9",
              "7",
              "10",
              "8",
              "4"
            ],
            false
          ]
        },
        {
          "file": "[NEXTCLOUD_DIRECTORY]/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 99,
          "function": "executeController",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->",
          "args": [
            {
              "__class__": "OCA\\Files_Sharing\\Controller\\ShareesAPIController"
            },
            "search"
          ]
        },
        {
          "file": "[NEXTCLOUD_DIRECTORY]/lib/private/AppFramework/App.php",
          "line": 125,
          "function": "dispatch",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->",
          "args": [
            {
              "__class__": "OCA\\Files_Sharing\\Controller\\ShareesAPIController"
            },
            "search"
          ]
        },
        {
          "file": "[NEXTCLOUD_DIRECTORY]/lib/private/AppFramework/Routing/RouteActionHandler.php",
          "line": 47,
          "function": "main",
          "class": "OC\\AppFramework\\App",
          "type": "::",
          "args": [
            "OCA\\Files_Sharing\\Controller\\ShareesAPIController",
            "search",
            {
              "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
            },
            {
              "_route": "ocs.files_sharing.ShareesAPI.search"
            }
          ]
        },
        {
          "function": "__invoke",
          "class": "OC\\AppFramework\\Routing\\RouteActionHandler",
          "type": "->",
          "args": [
            {
              "_route": "ocs.files_sharing.ShareesAPI.search"
            }
          ]
        },
        {
          "file": "[NEXTCLOUD_DIRECTORY]/lib/private/Route/Router.php",
          "line": 299,
          "function": "call_user_func",
          "args": [
            {
              "__class__": "OC\\AppFramework\\Routing\\RouteActionHandler"
            },
            {
              "_route": "ocs.files_sharing.ShareesAPI.search"
            }
          ]
        },
        {
          "file": "[NEXTCLOUD_DIRECTORY]/ocs/v1.php",
          "line": 82,
          "function": "match",
          "class": "OC\\Route\\Router",
          "type": "->",
          "args": [
            "/ocsapp/apps/files_sharing/api/v1/sharees"
          ]
        }
      ],
      "File": "[NEXTCLOUD_DIRECTORY]/lib/private/Federation/CloudIdManager.php",
      "Line": 76
    },
    "CustomMessage": "--"
  },
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36",
  "version": "18.0.4.2"
}
Browser log

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapbugneeds infostaleTicket or PR with no recent activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions