{
"system": {
"memcache.local": "\\OC\\Memcache\\APCu",
"apps_paths": [
{
"path": "\/usr\/share\/webapps\/nextcloud\/apps",
"url": "\/nc\/apps",
"writable": false
},
{
"path": "\/var\/lib\/nextcloud\/apps",
"url": "\/nc\/xapps",
"writable": true
}
],
"tempdirectory": "\/var\/tmp\/nextcloud",
"overwritewebroot": "\/nc",
"overwrite.cli.url": "https:\/\/yalis.fr\/nc",
"skeletondirectory": "",
"check_for_working_htaccess": false,
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"localhost",
"yalis.fr"
],
"datadirectory": "\/var\/lib\/nextcloud\/data",
"dbtype": "pgsql",
"version": "12.0.3.3",
"dbname": "monnuage",
"dbhost": "localhost:\/run\/shared_sockets",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"instanceid": "ocszttauqbu9",
"ldapIgnoreNamingRules": false,
"ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
"log.condition": [],
"mail_domain": "yalis.fr",
"filelocking.enabled": false,
"log_type": "syslog",
"mail_smtphost": "seuil3",
"mail_smtpmode": "smtp",
"mail_smtpport": 25,
"maintenance": false,
"loglevel": 2
},
"apps": {
"activity": {
"types": "filesystem",
"enabled": "no",
"installed_version": "2.2.1"
},
"admin_dependencies_chk": {
"types": "",
"ocsid": "166041",
"installed_version": "0.02",
"enabled": "no"
},
"backgroundjob": {
"lastjob": "10348"
},
"bruteforcesettings": {
"installed_version": "1.0.2",
"types": "",
"enabled": "no"
},
"calendar": {
"types": "",
"enabled": "yes",
"signed": "true",
"installed_version": "1.5.6"
},
"cms_pico": {
"installed_version": "0.9.6",
"types": "",
"enabled": "no"
},
"comments": {
"types": "logging",
"enabled": "yes",
"installed_version": "1.2.0"
},
"configreport": {
"installed_version": "0.1.1",
"types": "filesystem",
"enabled": "yes"
},
"contacts": {
"types": "",
"ocsid": "168708",
"enabled": "yes",
"installed_version": "2.0.1",
"signed": "true"
},
"core": {
"installedat": "1399547280.2968",
"remote_core.css": "\/core\/minimizer.php",
"remote_core.js": "\/core\/minimizer.php",
"remote_filesync": "files\/appinfo\/filesync.php",
"public_calendar": "calendar\/share.php",
"public_caldav": "calendar\/share.php",
"public_documents": "documents\/public.php",
"public_gallery": "gallery\/public.php",
"public_files": "files_sharing\/public.php",
"updater.secret.created": "1504246034",
"shareapi_allow_public_notification": "yes",
"shareapi_default_expire_date": "yes",
"shareapi_expire_after_n_days": "30",
"shareapi_only_share_with_group_members": "no",
"shareapi_allow_mail_notification": "yes",
"repairlegacystoragesdone": "yes",
"backgroundjobs_mode": "cron",
"global_cache_gc_lastrun": "1436340858",
"remote_files": "dav\/appinfo\/v1\/webdav.php",
"remote_webdav": "dav\/appinfo\/v1\/webdav.php",
"remote_dav": "dav\/appinfo\/v2\/remote.php",
"remote_contacts": "dav\/appinfo\/v1\/carddav.php",
"remote_carddav": "dav\/appinfo\/v1\/carddav.php",
"remote_calendar": "dav\/appinfo\/v1\/caldav.php",
"remote_caldav": "dav\/appinfo\/v1\/caldav.php",
"public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
"lastupdatedat": "1509538261",
"enable_external_storage": "yes",
"moveavatarsdone": "yes",
"previewsCleanedUp": "1",
"scss.variables": "fbe4c44dde346ad5a06e2b57382cc919",
"installed.bundles": "[\"CoreBundle\"]",
"vendor": "nextcloud",
"umgmt_show_backend": "true",
"umgmt_show_email": "false",
"umgmt_show_storage_location": "false",
"lastcron": "1509538580",
"lastupdateResult": "[]",
"oc.integritycheck.checker": "[]"
},
"dav": {
"types": "filesystem",
"enabled": "yes",
"installed_version": "1.3.0",
"buildCalendarSearchIndex": "yes"
},
"deck": {
"types": "",
"enabled": "yes",
"installed_version": "0.2.4"
},
"documents": {
"types": "",
"installed_version": "0.8.2",
"enabled": "no",
"ocsid": "168711"
},
"drawio": {
"installed_version": "0.8.8",
"types": "filesystem",
"enabled": "yes",
"DrawioUrl": "https:\/\/www.draw.io",
"DrawioXml": "yes",
"DrawioTheme": "kennedy",
"DrawioLang": "auto"
},
"federatedfilesharing": {
"types": "",
"enabled": "yes",
"installed_version": "1.2.0"
},
"federation": {
"types": "authentication",
"enabled": "yes",
"installed_version": "1.2.0"
},
"files": {
"types": "filesystem",
"enabled": "yes",
"backgroundwatcher_previous_file": "217",
"backgroundwatcher_previous_folder": "74",
"cronjob_scan_files": "500",
"installed_version": "1.7.2"
},
"files_external": {
"ocsid": "166048",
"types": "filesystem",
"enabled": "yes",
"allow_user_mounting": "yes",
"installed_version": "1.3.0",
"user_mounting_backends": "dav,owncloud,sftp,swift,\\OC\\Files\\Storage\\SFTP_Key"
},
"files_markdown": {
"installed_version": "2.0.1",
"types": "",
"enabled": "yes"
},
"files_pdfviewer": {
"types": "",
"ocsid": "166049",
"installed_version": "1.1.1",
"enabled": "yes"
},
"files_sharing": {
"types": "filesystem",
"enabled": "yes",
"installed_version": "1.4.0"
},
"files_texteditor": {
"types": "",
"enabled": "yes",
"ocsid": "166051",
"installed_version": "2.4.1",
"signed": "true"
},
"files_trashbin": {
"types": "filesystem",
"enabled": "yes",
"installed_version": "1.2.0"
},
"files_versions": {
"types": "filesystem",
"enabled": "yes",
"installed_version": "1.5.0"
},
"files_videoplayer": {
"types": "",
"enabled": "yes",
"installed_version": "1.1.0"
},
"files_videoviewer": {
"types": "",
"ocsid": "166054",
"installed_version": "0.1.3",
"enabled": "no"
},
"firstrunwizard": {
"enabled": "yes",
"types": "logging",
"installed_version": "2.1"
},
"flowupload": {
"installed_version": "0.0.5",
"types": "",
"enabled": "yes"
},
"gallery": {
"enabled": "yes",
"types": "",
"installed_version": "17.0.0",
"signed": "true"
},
"keeweb": {
"installed_version": "0.4.0",
"types": "",
"enabled": "yes"
},
"logreader": {
"installed_version": "2.0.0",
"ocsid": "170871",
"types": "",
"enabled": "yes"
},
"lookup_server_connector": {
"installed_version": "1.0.0",
"types": "authentication",
"enabled": "yes"
},
"mail": {
"types": "",
"installed_version": "0.7.4",
"enabled": "yes"
},
"market": {
"enabled": "yes",
"installed_version": "0.1.0",
"types": ""
},
"news": {
"installed_version": "11.0.5",
"types": "",
"enabled": "yes"
},
"nextcloud_announcements": {
"installed_version": "1.1",
"types": "logging",
"enabled": "yes",
"pub_date": "Sat, 10 Dec 2016 00:00:00 +0100"
},
"notes": {
"installed_version": "2.3.1",
"types": "",
"enabled": "yes"
},
"notifications": {
"types": "logging",
"enabled": "yes",
"installed_version": "2.0.0"
},
"oauth2": {
"installed_version": "1.0.5",
"types": "authentication",
"enabled": "yes"
},
"ocsms": {
"installed_version": "1.12.1",
"types": "",
"enabled": "yes"
},
"ojsxc": {
"apiSecret": "5wqKoxgIc1JwoniqdqhG7AJ",
"types": "prelogin",
"enabled": "yes",
"serverType": "external",
"boshUrl": "https:\/\/yalis.fr\/xmpp-bind",
"xmppDomain": "yalis.fr",
"xmppResource": "Nextcloud",
"xmppOverwrite": "false",
"xmppStartMinimized": "false",
"xmppPreferMail": "false",
"iceUrl": "",
"iceUsername": "",
"iceCredential": "",
"iceSecret": "",
"iceTtl": "",
"timeLimitedToken": "false",
"firefoxExtension": "",
"chromeExtension": "",
"externalServices": "",
"ocsid": "162257",
"installed_version": "3.3.1"
},
"password_policy": {
"installed_version": "1.2.2",
"types": "",
"enabled": "yes",
"enforceSpecialCharacters": "1"
},
"polls": {
"types": "",
"enabled": "yes",
"installed_version": "0.8.0"
},
"provisioning_api": {
"types": "prevent_group_restriction",
"enabled": "no",
"installed_version": "1.2.0"
},
"rainloop": {
"types": "",
"rainloop-autologin": "",
"ocsid": "165254",
"installed_version": "5.0.3",
"enabled": "yes"
},
"richdocuments": {
"types": "prevent_group_restriction",
"installed_version": "1.12.35",
"enabled": "yes",
"wopi_url": "https:\/\/yalis.fr"
},
"search_lucene": {
"types": "filesystem",
"installed_version": "0.5.3",
"enabled": "no",
"ocsid": "168709"
},
"serverinfo": {
"installed_version": "1.2.0",
"types": "",
"enabled": "yes"
},
"sharebymail": {
"installed_version": "1.2.0",
"types": "filesystem",
"enabled": "yes"
},
"spreed": {
"installed_version": "2.0.1",
"types": "prevent_group_restriction",
"enabled": "yes"
},
"survey_client": {
"installed_version": "1.0.0",
"types": "",
"enabled": "yes",
"last_sent": "1507391120",
"last_report": "{\"id\":\"ocszttauqbu9\",\"items\":[[\"server\",\"version\",\"12.0.3.3\"],[\"server\",\"code\",\"other\"],[\"server\",\"enable_avatars\",\"yes\"],[\"server\",\"enable_previews\",\"yes\"],[\"server\",\"memcache.local\",\"\\\\OC\\\\Memcache\\\\APCu\"],[\"server\",\"memcache.distributed\",\"none\"],[\"server\",\"asset-pipeline.enabled\",\"no\"],[\"server\",\"filelocking.enabled\",\"no\"],[\"server\",\"memcache.locking\",\"none\"],[\"server\",\"debug\",\"no\"],[\"server\",\"cron\",\"cron\"],[\"php\",\"version\",\"7.1.10\"],[\"php\",\"memory_limit\",134217728],[\"php\",\"max_execution_time\",0],[\"php\",\"upload_max_filesize\",10485760000],[\"database\",\"type\",\"pgsql\"],[\"database\",\"version\",\"PostgreSQL 9.6.5 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 7.1.1 20170630, 64-bit\"],[\"database\",\"size\",115153432],[\"apps\",\"documents\",\"disabled\"],[\"apps\",\"files_videoviewer\",\"disabled\"],[\"apps\",\"search_lucene\",\"disabled\"],[\"apps\",\"activity\",\"disabled\"],[\"apps\",\"admin_dependencies_chk\",\"disabled\"],[\"apps\",\"updater\",\"disabled\"],[\"apps\",\"templateeditor\",\"0.1\"],[\"apps\",\"provisioning_api\",\"disabled\"],[\"apps\",\"configreport\",\"0.1.1\"],[\"apps\",\"contacts\",\"1.5.3\"],[\"apps\",\"federatedfilesharing\",\"1.2.0\"],[\"apps\",\"files_texteditor\",\"2.4.1\"],[\"apps\",\"firstrunwizard\",\"2.1\"],[\"apps\",\"gallery\",\"17.0.0\"],[\"apps\",\"updatenotification\",\"1.2.0\"],[\"apps\",\"federation\",\"1.2.0\"],[\"apps\",\"files\",\"1.7.2\"],[\"apps\",\"dav\",\"1.3.0\"],[\"apps\",\"files_external\",\"1.3.0\"],[\"apps\",\"files_sharing\",\"1.4.0\"],[\"apps\",\"files_trashbin\",\"1.2.0\"],[\"apps\",\"files_versions\",\"1.5.0\"],[\"apps\",\"comments\",\"1.2.0\"],[\"apps\",\"notifications\",\"2.0.0\"],[\"apps\",\"systemtags\",\"1.2.0\"],[\"apps\",\"files_pdfviewer\",\"1.1.1\"],[\"apps\",\"mail\",\"0.7.3\"],[\"apps\",\"market\",\"0.1.0\"],[\"apps\",\"files_videoplayer\",\"1.1.0\"],[\"apps\",\"workflowengine\",\"1.2.0\"],[\"apps\",\"logreader\",\"2.0.0\"],[\"apps\",\"nextcloud_announcements\",\"1.1\"],[\"apps\",\"sharebymail\",\"1.2.0\"],[\"apps\",\"survey_client\",\"1.0.0\"],[\"apps\",\"theming\",\"1.3.0\"],[\"apps\",\"oauth2\",\"1.0.5\"],[\"apps\",\"serverinfo\",\"1.2.0\"],[\"apps\",\"twofactor_backupcodes\",\"1.1.1\"],[\"apps\",\"lookup_server_connector\",\"1.0.0\"],[\"apps\",\"password_policy\",\"1.2.2\"],[\"apps\",\"bruteforcesettings\",\"disabled\"],[\"apps\",\"user_ldap\",\"1.2.1\"],[\"apps\",\"calendar\",\"1.5.5\"],[\"apps\",\"drawio\",\"0.8.8\"],[\"apps\",\"richdocuments\",\"disabled\"],[\"apps\",\"spreed\",\"2.0.1\"],[\"apps\",\"ocsms\",\"1.12.1\"],[\"apps\",\"notes\",\"2.3.1\"],[\"apps\",\"ojsxc\",\"3.3.0\"],[\"apps\",\"rainloop\",\"disabled\"],[\"apps\",\"news\",\"11.0.5\"],[\"apps\",\"flowupload\",\"0.0.5\"],[\"apps\",\"keeweb\",\"0.4.0\"],[\"apps\",\"files_markdown\",\"2.0.1\"],[\"apps\",\"deck\",\"0.2.3\"],[\"apps\",\"user_saml\",\"disabled\"],[\"stats\",\"num_files\",138797],[\"stats\",\"num_users\",8],[\"stats\",\"num_storages\",25],[\"stats\",\"num_storages_local\",4],[\"stats\",\"num_storages_home\",21],[\"stats\",\"num_storages_other\",0],[\"stats\",\"num_comments\",0],[\"stats\",\"num_comment_markers\",0],[\"stats\",\"num_systemtags\",0],[\"stats\",\"num_systemtags_mappings\",0],[\"files_sharing\",\"num_shares\",1],[\"files_sharing\",\"num_shares_user\",0],[\"files_sharing\",\"num_shares_groups\",0],[\"files_sharing\",\"num_shares_link\",1],[\"files_sharing\",\"num_shares_link_no_password\",1],[\"files_sharing\",\"num_fed_shares_sent\",0],[\"files_sharing\",\"num_fed_shares_received\",0],[\"files_sharing\",\"permissions_3_15\",1],[\"encryption\",\"enabled\",\"no\"],[\"encryption\",\"default_module\",\"no\"]]}"
},
"systemtags": {
"types": "logging",
"enabled": "yes",
"installed_version": "1.2.0"
},
"templateeditor": {
"types": "",
"enabled": "yes",
"installed_version": "0.1"
},
"theming": {
"installed_version": "1.3.0",
"types": "logging",
"enabled": "yes",
"backgroundMime": "image\/jpeg",
"cachebuster": "3"
},
"twofactor_backupcodes": {
"installed_version": "1.1.1",
"types": "",
"enabled": "yes"
},
"updatenotification": {
"types": "",
"enabled": "yes",
"installed_version": "1.2.0",
"update_check_errors": "0",
"notify_groups": "[\"admin\",\"YI\"]",
"core": "12.0.3.3",
"contacts": "2.0.1",
"deck": "0.2.4",
"calendar": "1.5.6",
"ojsxc": "3.3.1",
"mail": "0.7.4"
},
"updater": {
"types": "",
"enabled": "no",
"installed_version": "0.6"
},
"user_ldap": {
"s01home_folder_naming_rule": "",
"s01use_memberof_to_detect_membership": "1",
"s01ldap_expert_username_attr": "",
"s01last_jpegPhoto_lookup": "0",
"s01ldap_nested_groups": "0",
"s01ldap_paging_size": "500",
"s01ldap_dynamic_group_member_url": "",
"s01ldap_default_ppolicy_dn": "",
"s01ldap_base": "dc=yalis,dc=fr",
"cleanUpJobOffset": "0",
"installed_version": "1.2.1",
"types": "authentication",
"enabled": "yes",
"s01ldap_backup_host": "",
"s01ldap_backup_port": "",
"s01ldap_dn": "",
"s01ldap_agent_password": "",
"s01ldap_tls": "0",
"s01ldap_turn_off_cert_check": "0",
"s01ldap_user_display_name_2": "",
"s01ldap_gid_number": "gidNumber",
"s01ldap_userfilter_groups": "",
"s01ldap_user_filter_mode": "0",
"s01ldap_group_filter_mode": "0",
"s01ldap_groupfilter_groups": "",
"s01ldap_group_display_name": "cn",
"s01ldap_login_filter_mode": "0",
"s01ldap_loginfilter_email": "0",
"s01ldap_loginfilter_username": "1",
"s01ldap_loginfilter_attributes": "",
"s01ldap_quota_attr": "",
"s01ldap_quota_def": "",
"s01ldap_email_attr": "",
"s01ldap_cache_ttl": "600",
"s01ldap_base_groups": "ou=Groups,dc=yalis,dc=fr",
"s01ldap_base_users": "ou=Users,dc=yalis,dc=fr",
"s01ldap_override_main_server": "",
"s01ldap_attributes_for_user_search": "",
"s01ldap_attributes_for_group_search": "",
"s01ldap_experienced_admin": "0",
"s01ldap_groupfilter_objectclass": "posixGroup",
"s01ldap_group_member_assoc_attribute": "gidNumber",
"s01ldap_host": "ldapi:\/\/%2Frun%2Fshared_sockets%2Fldapi\/",
"s01ldap_login_filter": "(&(|(objectclass=posixAccount))(uid=%uid))",
"s01ldap_port": "7636",
"s01ldap_display_name": "cn",
"s01ldap_userlist_filter": "(|(objectclass=posixAccount))",
"s01ldap_userfilter_objectclass": "posixAccount",
"s01ldap_turn_on_pwd_change": "1",
"s01ldap_configuration_active": "1",
"s01has_memberof_filter_support": "",
"s01ldap_group_filter": "(&(|(objectclass=posixGroup)))",
"s01ldap_expert_uuid_user_attr": "uid",
"s01ldap_expert_uuid_group_attr": "cn"
},
"user_saml": {
"installed_version": "1.4.0",
"types": "authentication",
"type": "environment-variable",
"enabled": "no"
},
"workflowengine": {
"installed_version": "1.2.0",
"types": "filesystem",
"enabled": "yes"
}
}
}
I have Nextcloud installed in uwsgi, and configured to have the public URI as
https://yalis.fr/nc. Most of the time, Nextcloud behaves correctly. But on the first access (cookies not yet set), there is a bug, and the/ncpart is forgotten.Steps to reproduce
Expected behaviour
Files (in my case, due to SSO) or Login.
Actual behaviour
As can be seen in Firefox dev tools:
/nc=> 302 redirectLocation: https://yalis.fr/nc/index.php/apps/files/(OK) — this step sets cookiesoc_sessionPassphrase,ocszttauqbu9, andcookie_test./nc/index.php/apps/files/=> 302 redirectLocation: /index.php/apps/files/(KO) — this step sets cookiesnc_sameSiteCookielaxandnc_sameSiteCookiestrict./index.php/apps/files/=> 403 forbidden.However, once the cookies are set, the error does not occur any more. In other words, I can go to
/ncagain, and this time, the usual Nextcloud web UI gets displayed.Server configuration
Operating system: up-to-date Archlinux
Web server: Nginx 1.13.5 + uwsgi 2.0.15
Database: Postgresql 9.6.5
PHP version: 7.1.11
Nextcloud version: 12.0.3
Updated from an older Nextcloud/ownCloud or fresh install: Updated from previous version of Nextcloud, originally updated from ownCloud 9 (IIRC).
Where did you install Nextcloud from: Archlinux package
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: local
Are you using encryption: no
Are you using an external user-backend, if yes which one: LDAP
LDAP configuration (delete this part if not used)
LDAP config