Skip to content

Logging out from Nextcloud deletes all cookies from sibling subdomains #9010

@bszente

Description

@bszente

Scenario

Nextcloud 13.0.1 installed on cloud.example.com subdomain with HTTPS
Roundcube 1.3.4 installed on mail.example.com subdomain with HTTPS

So both have their individual subdomain under our own domain (replaced with example.com here in bug report).

Steps to reproduce

  1. Open Chromium/Chrome (tested with 63+)
  2. Log in to Roundcube (or any web page that uses session cookies, e.g. Redmine)
  3. In a new tab log in to Nextcloud
  4. Log out from Nextcloud

Expected behaviour

Nextcloud will be logged out. Roundcube will still be logged in and usable.

Actual behaviour

Nextcloud will be logged out. Roundcube session will be expired and user logged out. This is the actual issue.

More info

  1. It happens with Chrome/Chromium only, Firefox works as expected.
  2. What happens exactly: logging out from Nextcloud deletes all cookies from sibling subdomains resulting in end of session for the other web applications.

Server configuration

Operating system: CentOS 7 (Virtualmin is used)

Web server: Stock Apache

Database: Stock MySQL

PHP version: Stock version

Nextcloud version: 13.0.1

Updated from an older Nextcloud/ownCloud or fresh install: updated from latest 12.0.x

Signing status:

Signing status
No errors have been found.

Are you using external storage, if yes which one: no

Are you using encryption: no

Are you using an external user-backend, if yes which one: IMAP

Client configuration

Browser: Chromium 64, Chrome 65

Operating system: Linux, Windows

Logs

Browser log

Browser log when logging out (domain replaced with example.com)
cloud.example.com/:1 Clear-Site-Data header on 'https://cloud.example.com/logout?requesttoken=k9K/ULgi8Ht9z4vTCYyHLAFCRS3wWjWXSLvvkR0dipk%3D%3Aq6vSGtkQtDwUmv%2BjO%2BPFTVRydkqiIGDgZ%2B625CxFwq0%3D': The "cache" datatype is temporarily not supported.
cloud.example.com/:1 Clear-Site-Data header on 'https://cloud.example.com/logout?requesttoken=k9K/ULgi8Ht9z4vTCYyHLAFCRS3wWjWXSLvvkR0dipk%3D%3Aq6vSGtkQtDwUmv%2BjO%2BPFTVRydkqiIGDgZ%2B625CxFwq0%3D': Unrecognized type: "executionContexts".
cloud.example.com/:1 Clear-Site-Data header on 'https://cloud.example.com/logout?requesttoken=k9K/ULgi8Ht9z4vTCYyHLAFCRS3wWjWXSLvvkR0dipk%3D%3Aq6vSGtkQtDwUmv%2BjO%2BPFTVRydkqiIGDgZ%2B625CxFwq0%3D': Cleared data types: "cookies", "storage".
Navigated to https://cloud.example.com/login
core.js?v=cc8677c4-25:7 JQMIGRATE: Migrate is installed, version 1.4.0
DevTools failed to parse SourceMap: https://cloud.example.com/core/vendor/purify.min.js.map

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions