{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/server/issues/11667","repository_url":"https://api.github.com/repos/nextcloud/server","labels_url":"https://api.github.com/repos/nextcloud/server/issues/11667/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/server/issues/11667/comments","events_url":"https://api.github.com/repos/nextcloud/server/issues/11667/events","html_url":"https://github.com/nextcloud/server/issues/11667","id":367600786,"node_id":"MDU6SXNzdWUzNjc2MDA3ODY=","number":11667,"title":"Federation shares ignore server ports","user":{"login":"IzzySoft","id":6781438,"node_id":"MDQ6VXNlcjY3ODE0Mzg=","avatar_url":"https://avatars3.githubusercontent.com/u/6781438?v=4","gravatar_id":"","url":"https://api.github.com/users/IzzySoft","html_url":"https://github.com/IzzySoft","followers_url":"https://api.github.com/users/IzzySoft/followers","following_url":"https://api.github.com/users/IzzySoft/following{/other_user}","gists_url":"https://api.github.com/users/IzzySoft/gists{/gist_id}","starred_url":"https://api.github.com/users/IzzySoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IzzySoft/subscriptions","organizations_url":"https://api.github.com/users/IzzySoft/orgs","repos_url":"https://api.github.com/users/IzzySoft/repos","events_url":"https://api.github.com/users/IzzySoft/events{/privacy}","received_events_url":"https://api.github.com/users/IzzySoft/received_events","type":"User","site_admin":false},"labels":[{"id":386379231,"node_id":"MDU6TGFiZWwzODYzNzkyMzE=","url":"https://api.github.com/repos/nextcloud/server/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-07T22:31:50Z","updated_at":"2018-10-07T23:37:20Z","closed_at":null,"author_association":"NONE","body":"I run two Nextcloud instances, one of them (let's call it \"B\") is using a custom server port as 443 is already in use by a different machine behind the same public IP, the other (\"A\") is reachable via standard port (443). Both servers have the federation app activated, and its counterpart added as \"trusted\" (with the port specified for B when adding it to A, like `https://example.com:8843/nextcloud`).\r\n\r\nWhen I share something from B to A, the notification pops up on A and I can accept – but the share never shows up. The other way around, I can't even accept it.\r\n\r\nNo Nextcloud log entries on B in either case – but on A I see:\r\n\r\n    {\"reqId\":\"W7p6ZH8AAQEAACknWdQAAAAN\",\"level\":3,\"time\":\"2018-10-07T21:28:06+00:00\",\"remoteAddr\":\"1.2.3.4\",\"user\":\"myUser\",\"app\":\"files_external\",\"method\":\"PROPFIND\",\"url\":\"\\/nextcloud\\/remote.php\\/webdav\\/\",\"message\":\"SSL certificate problem: self signed certificate in certificate chain\",\"userAgent\":\"Mozilla\\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\\/20100101 Firefox\\/55.0\",\"version\":\"12.0.7.1\"}\r\n\r\nwhich suggests the port is being ignored (as I don't see it mentioned), and a connection on the default port (443) is tried – with the result of getting the certificate from the wrong server (which, finding no suitable server name via SNI, defaults to a self-signed cert).\r\n\r\nSide-note: I cannot find a corresponding Apache log entry on B. The only 3 entries I find are from \"Nextcloud Crawler\": 1 to `ocs-provider/`, 1 to `ocs/v2.php/cloud/shares?format=json`, and 1 to `status.php` – no PROPFIND.\r\n\r\n### Steps to reproduce\r\n1. Create a share to a user on the other instance\r\n2. Try accepting it there\r\n3. Be stuck.\r\n\r\n### Expected behaviour\r\nI can accept the share on either side, and access its contents.\r\n\r\n### Actual behaviour\r\nShare cannot be accepted on B – and doesn't show after being accepted on A\r\n\r\n### Server configuration\r\n\r\n**Operating system**:\r\nDebian 9.4\r\n\r\n**Web server:**\r\nApache 2.4\r\n\r\n**Database:**\r\nMariaDB\r\n\r\n**PHP version:**\r\n7.0.27\r\n\r\n**Nextcloud version:** (see Nextcloud admin page)\r\n12.0.7.1\r\n\r\n**Updated from an older Nextcloud/ownCloud or fresh install:**\r\nUpdated from previous versions, reaching back to 9.\r\n\r\n**Where did you install Nextcloud from:**\r\nDownload from nextcloud website\r\n\r\n**Signing status:**\r\n<details>\r\n<summary>Signing status</summary>\r\nNo errors have been found.\r\n</details>\r\n\r\n\r\n**List of activated apps:**\r\n<details>\r\n  - activity: 2.5.2\r\n  - bruteforcesettings: 1.1.0\r\n  - calendar: 1.5.8\r\n  - comments: 1.2.0\r\n  - dav: 1.3.1\r\n  - documents: 0.16.0\r\n  - federatedfilesharing: 1.2.0\r\n  - federation: 1.2.0\r\n  - files: 1.7.2\r\n  - files_markdown: 2.0.4\r\n  - files_pdfviewer: 1.1.2\r\n  - files_sharing: 1.4.0\r\n  - files_texteditor: 2.4.1\r\n  - files_trashbin: 1.2.0\r\n  - files_versions: 1.5.0\r\n  - files_videoplayer: 1.1.0\r\n  - firstrunwizard: 2.1\r\n  - gallery: 17.0.0\r\n  - logreader: 2.0.0\r\n  - lookup_server_connector: 1.0.0\r\n  - nextcloud_announcements: 1.1\r\n  - notes: 2.4.2\r\n  - notifications: 2.0.0\r\n  - oauth2: 1.0.5\r\n  - password_policy: 1.2.2\r\n  - provisioning_api: 1.2.0\r\n  - serverinfo: 1.2.0\r\n  - sharebymail: 1.2.0\r\n  - survey_client: 1.0.0\r\n  - systemtags: 1.2.0\r\n  - tasks: 0.9.6\r\n  - theming: 1.3.0\r\n  - twofactor_backupcodes: 1.1.1\r\n  - updatenotification: 1.2.0\r\n  - workflowengine: 1.2.0\r\n</details>\r\n\r\n**Nextcloud configuration:**\r\n<details>\r\n{\r\n    \"system\": {\r\n        \"instanceid\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"passwordsalt\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"secret\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"trusted_domains\": [\r\n            \"example.com\"\r\n        ],\r\n        \"datadirectory\": \"\\/home\\/cloud\\/data\",\r\n        \"overwrite.cli.url\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"dbtype\": \"mysql\",\r\n        \"version\": \"12.0.7.1\",\r\n        \"dbname\": \"nextcloud\",\r\n        \"dbhost\": \"localhost\",\r\n        \"dbport\": \"\",\r\n        \"dbtableprefix\": \"oc_\",\r\n        \"dbuser\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"dbpassword\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"logtimezone\": \"UTC\",\r\n        \"installed\": true,\r\n        \"memcache.local\": \"\\\\OC\\\\Memcache\\\\APCu\",\r\n        \"trashbin_retention_obligation\": \"auto,30\",\r\n        \"maintenance\": false,\r\n        \"loglevel\": 2\r\n    }\r\n}\r\n</details>\r\n\r\n**Are you using external storage, if yes which one:** local/smb/sftp/...\r\nNo\r\n\r\n**Are you using encryption:** yes/no\r\nNo\r\n\r\n**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...\r\nNo\r\n\r\n#### LDAP configuration (delete this part if not used)\r\nNone\r\n\r\n### Client configuration\r\n**Browser:**\r\nFirefox\r\n\r\n**Operating system:**\r\nLinux Mint\r\n\r\n### Logs\r\n#### Web server error log\r\nAs written above: No matching entries here.\r\n\r\n#### Nextcloud log (data/nextcloud.log)\r\n<details>\r\n<summary>Nextcloud log</summary>\r\n{\"reqId\":\"W7p6ZH8AAQEAACknWdQAAAAN\",\"level\":3,\"time\":\"2018-10-07T21:28:06+00:00\",\"remoteAddr\":\"1.2.3.4\",\"user\":\"myUser\",\"app\":\"files_external\",\"method\":\"PR\r\nOPFIND\",\"url\":\"\\/nextcloud\\/remote.php\\/webdav\\/\",\"message\":\"SSL certificate problem: self signed certificate in certificate chain\",\"userAgent\":\"Mozilla\\/5.0\r\n(X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\\/20100101 Firefox\\/55.0\",\"version\":\"12.0.7.1\"}\r\n</details>\r\n\r\n#### Browser log\r\n<details>\r\n<summary>Browser log</summary>\r\n\r\n```\r\nInsert your browser log here, this could for example include:\r\n\r\na) The javascript console log\r\nb) The network log\r\nc) ...\r\n```\r\n</details>\r\n"},"comment":{"url":"https://api.github.com/repos/nextcloud/server/issues/comments/427696631","html_url":"https://github.com/nextcloud/server/issues/11667#issuecomment-427696631","issue_url":"https://api.github.com/repos/nextcloud/server/issues/11667","id":427696631,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzY5NjYzMQ==","user":{"login":"IzzySoft","id":6781438,"node_id":"MDQ6VXNlcjY3ODE0Mzg=","avatar_url":"https://avatars3.githubusercontent.com/u/6781438?v=4","gravatar_id":"","url":"https://api.github.com/users/IzzySoft","html_url":"https://github.com/IzzySoft","followers_url":"https://api.github.com/users/IzzySoft/followers","following_url":"https://api.github.com/users/IzzySoft/following{/other_user}","gists_url":"https://api.github.com/users/IzzySoft/gists{/gist_id}","starred_url":"https://api.github.com/users/IzzySoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IzzySoft/subscriptions","organizations_url":"https://api.github.com/users/IzzySoft/orgs","repos_url":"https://api.github.com/users/IzzySoft/repos","events_url":"https://api.github.com/users/IzzySoft/events{/privacy}","received_events_url":"https://api.github.com/users/IzzySoft/received_events","type":"User","site_admin":false},"created_at":"2018-10-07T23:37:20Z","updated_at":"2018-10-07T23:37:20Z","author_association":"NONE","body":"Checked them, I don't think they are related."}}
{"actor":{"display_login":"IzzySoft"}}