### How to use GitHub
* Please use the 👍 [reaction](https://blog.github.com/2…016-03-10-add-reactions-to-pull-requests-issues-and-comments/) 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.
### Steps to reproduce
1. Create a user
2. Login
3. Look at the default files on the user's home folder
### Expected behaviour
Get only folders from the skeleton directory
### Actual behaviour
Get the content of the skeleton directory and a `Templates` folder
*New user home directory*
![image](https://user-images.githubusercontent.com/12417808/125049765-d6e24e80-e090-11eb-87dd-6d2eb1039643.png)
*Skeleton directory content*
![image](https://user-images.githubusercontent.com/12417808/125050210-4ce6b580-e091-11eb-989a-5f8d6adf3c7f.png)
### Action taken
Try with and without `templatedirectory` to `NULL` (source from this [thread](https://help.nextcloud.com/t/how-to-prevent-nextcloud-from-automatically-creating-a-templates-folder/114586/3))
### Server configuration
**Operating system:** Debian 10
**Web server:** Apache 2.4
**Database:** MariaDB 10.3
**PHP version:** PHP 7.3 FPM
**Nextcloud version:** 21.02
**Updated from an older Nextcloud/ownCloud or fresh install:** fresh install
**Where did you install Nextcloud from:** Website zip
**Signing status:**
<details>
<summary>Signing status</summary>
```
No errors have been found.
```
</details>
**List of activated apps:**
<details>
<summary>App list</summary>
```
Enabled:
- accessibility: 1.7.0
- activity: 2.14.3
- admin_audit: 1.11.0
- calendar: 2.3.0
- cloud_federation_api: 1.4.0
- comments: 1.11.0
- contactsinteraction: 1.2.0
- dav: 1.17.1
- federatedfilesharing: 1.11.0
- federation: 1.11.0
- files: 1.16.0
- files_pdfviewer: 2.1.0
- files_rightclick: 1.0.0
- files_sharing: 1.13.1
- files_trashbin: 1.11.0
- files_versions: 1.14.0
- files_videoplayer: 1.10.0
- logreader: 2.6.0
- lookup_server_connector: 1.9.0
- nextcloud_announcements: 1.10.0
- notifications: 2.9.0
- oauth2: 1.9.0
- oidc_login: 1.6.1
- onlyoffice: 7.0.2
- password_policy: 1.11.0
- polls: 2.0.4
- privacy: 1.5.0
- provisioning_api: 1.11.0
- quota_warning: 1.10.0
- recommendations: 1.0.0
- serverinfo: 1.11.0
- settings: 1.3.0
- sharebymail: 1.11.0
- survey_client: 1.9.0
- systemtags: 1.11.0
- tasks: 0.13.6
- text: 3.2.0
- theming: 1.12.0
- twofactor_backupcodes: 1.10.0
- updatenotification: 1.11.0
- user_ldap: 1.11.0
- viewer: 1.5.0
- watcha_integrator: 0.1.0
- workflowengine: 2.3.0
Disabled:
- dashboard
- encryption
- files_external
- firstrunwizard
- photos
- support
- user_status
- weather_status
```
</details>
**Nextcloud configuration:**
<details>
<summary>Config report</summary>
```
<?php
$CONFIG = array (
'passwordsalt' => 'XXXXXXXXXXXXXXXXXXXXX',
'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx',
'trusted_domains' =>
array (
0 => 'XXX.XX.X.XX',
1 => 'groupeweb.XXXXXX.XXX',
2 => 'groupeweb.XXXXXX.XXX',
),
'datadirectory' => '/var/www/datasnextcloud',
'dbtype' => 'mysql',
'version' => '21.0.2.1',
'overwrite.cli.url' => 'https://groupeweb.XXXXXX.XXX/nextcloud',
'overwritewebroot' => '/nextcloud',
'htaccess.RewriteBase' => '/nextcloud',
'dbname' => 'nextcloud',
'dbhost' => '127.0.0.1:3306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => 'XXXXXXXXXXXXXXXXXXXXXXXXXx',
'installed' => true,
'instanceid' => 'XXXXXXXXXXX',
'skeletondirectory' => '/var/www/datasnextcloud/skeleton',
'templatedirectory' => NULL,
'default_language' => 'fr',
'default_locale' => 'fr_FR',
'force_language' => 'fr',
'default_phone_region' => 'FR',
'maintenance' => false,
'trashbin_retention_obligation' => 'auto,15',
'versions_retention_obligation' => 'auto,30',
'memcache.local' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '127.0.0.1',
'port' => '6379',
),
'memcache.locking' => '\\OC\\Memcache\\Redis',
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
'loglevel' => 3,
'allow_user_to_change_display_name' => false,
'lost_password_link' => 'disabled',
'theme' => '',
'auth.bruteforce.protection.enabled' => false,
'mail_from_address' => 'groupeweb',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'XXXXXXXXX.XX',
'mail_smtphost' => 'XXX.XX.X.XX',
'mail_smtpport' => '25',
);
```
</details>
**Are you using external storage, if yes which one:** N/A
**Are you using encryption:** no
**Are you using an external user-backend, if yes which one:** LDAP
#### LDAP configuration
<details>
<summary>LDAP config</summary>
```
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------+
| Configuration | s01
|
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------+
| hasMemberOfFilterSupport | 1
|
| homeFolderNamingRule |
|
| lastJpegPhotoLookup | 0
|
| ldapAgentName | CN=XXXXX,OU=XXXXX,OU=XXXXX,OU=XXXXX,OU=XXXXX,DC=XXXXX,DC=XXXXX
|
| ldapAgentPassword | ***
|
| ldapAttributesForGroupSearch |
|
| ldapAttributesForUserSearch |
|
| ldapBackupHost | XXXXX
|
| ldapBackupPort | 389
|
| ldapBase | DC=XXXXX,DC=XXXXX
|
| ldapBaseGroups | DC=XXXXX,DC=XXXXX
|
| ldapBaseUsers | DC=XXXXX,DC=XXXXX
|
| ldapCacheTTL | 600
|
| ldapConfigurationActive | 1
|
| ldapDefaultPPolicyDN |
|
| ldapDynamicGroupMemberURL |
|
| ldapEmailAttribute | mail
|
| ldapExperiencedAdmin | 0
|
| ldapExpertUUIDGroupAttr |
|
| ldapExpertUUIDUserAttr |
|
| ldapExpertUsernameAttr |
|
| ldapExtStorageHomeAttribute |
|
| ldapGidNumber | gidNumber
|
| ldapGroupDisplayName | cn
|
| ldapGroupFilter | (|(cn=XX-XXXXX-NEXTCLOUD)(cn=XX-XXXXX-ADMIN)(cn=XX-XXXXX-USERS))
|
| ldapGroupFilterGroups | XX-XXXXX-NEXTCLOUD;XX-XXXXX-ADMIN;XX-XXXXX-USERS
|
| ldapGroupFilterMode | 0
|
| ldapGroupFilterObjectclass |
|
| ldapGroupMemberAssocAttr | member
|
| ldapHost | XXXXX
|
| ldapIgnoreNamingRules |
|
| ldapLoginFilter | (&(&(|(objectclass=person))(|(|(memberof=CN=XX-XXXXX-NEXTCLOUD,OU=GLOBAUX,OU=GROUPES,OU=XXXXX,DC=XXXXX,DC=XXXXX)(primaryGroupID=14124))(|(m
emberof=CN=XX-XXXXX-ADMIN,OU=GLOBAUX,OU=GROUPES,OU=XXXXX,DC=XXXXX,DC=XXXXX)(primaryGroupID=14122))(|(memberof=CN=XX-XXXXX-USERS,OU=GLOBAUX,OU=GROUPES,OU=XXXXX,DC=XX
XXX,DC=XXXXX)(primaryGroupID=14123))))(|(samaccountname=%uid)(|(sAMAccountName=%uid)))) |
| ldapLoginFilterAttributes | sAMAccountName
|
| ldapLoginFilterEmail | 0
|
| ldapLoginFilterMode | 0
|
| ldapLoginFilterUsername | 1
|
| ldapMatchingRuleInChainState | unknown
|
| ldapNestedGroups | 0
|
| ldapOverrideMainServer |
|
| ldapPagingSize | 500
|
| ldapPort | 389
|
| ldapQuotaAttribute |
|
| ldapQuotaDefault |
|
| ldapTLS | 0
|
| ldapUserAvatarRule | default
|
| ldapUserDisplayName | displayname
|
| ldapUserDisplayName2 |
|
| ldapUserFilter | (&(|(objectclass=person))(|(|(memberof=CN=XX-XXXXX-NEXTCLOUD,OU=GLOBAUX,OU=GROUPES,OU=XXXXX,DC=XXXXX,DC=XXXXX)(primaryGroupID=14124))(|(mem
berof=CN=XX-XXXXX-ADMIN,OU=GLOBAUX,OU=GROUPES,OU=XXXXX,DC=XXXXX,DC=XXXXX)(primaryGroupID=14122))(|(memberof=CN=XX-XXXXX-USERS,OU=GLOBAUX,OU=GROUPES,OU=XXXXX,DC=XXXX
X,DC=XXXXX)(primaryGroupID=14123)))) |
| ldapUserFilterGroups | XX-XXXXX-NEXTCLOUD;XX-XXXXX-ADMIN;XX-XXXXX-USERS
|
| ldapUserFilterMode | 0
|
| ldapUserFilterObjectclass | person
|
| ldapUuidGroupAttribute | auto
|
| ldapUuidUserAttribute | auto
|
| turnOffCertCheck | 0
|
| turnOnPasswordChange | 0
|
| useMemberOfToDetectMembership | 1
|
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------+
```
</details>
### Client configuration
**Browser:** Chrome
**Operating system:** Ubuntu 20.04
### Logs
#### Web server error log
<details>
<summary>Web server error log</summary>
```
[Thu Jul 08 00:00:01.368661 2021] [ssl:warn] [pid 12040:tid 140085193598080] AH01909: groupeweb.XXXXX.fr:443:0 server certificate does NOT include an ID which matches the server name
[Thu Jul 08 14:17:54.562849 2021] [autoindex:error] [pid 120951:tid 140084804261632] [client 172.20.3.98:41390] AH01276: Cannot serve directory /var/www/nextcloud: No matching DirectoryIndex (none) found, and server-generated directory index forbidden by Options directive
[Thu Jul 08 15:52:39.027578 2021] [autoindex:error] [pid 120951:tid 140084904974080] [client 172.20.3.98:42556] AH01276: Cannot serve directory /var/www/nextcloud: No matching DirectoryIndex (none) found, and server-generated directory index forbidden by Options directive
[Thu Jul 08 17:14:32.421275 2021] [ssl:warn] [pid 54476:tid 140093601490048] AH01909: groupeweb.XXXXX.fr:443:0 server certificate does NOT include an ID which matches the server name
[Thu Jul 08 17:14:32.428596 2021] [ssl:warn] [pid 54477:tid 140093601490048] AH01909: groupeweb.XXXXX.fr:443:0 server certificate does NOT include an ID which matches the server name
```
</details>
#### Nextcloud log (data/nextcloud.log)
<details>
<summary>Nextcloud log</summary>
```
{"reqId":"yUP8I98kA8iRKOOxyhV6","level":3,"time":"2021-07-08T12:18:17+00:00","remoteAddr":"172.20.3.98","user":"--","app":"PHP","method":"GET","url":"/nextcloud/index.php_login/oidc?state=6e59cee2edf650bfe033fdebf94583e4&session_state=6500be6a-3838-49cb-b7a9-9d2ecb40101b&code=5b33acfc-9088-4632-9055-ca7e7a6e6165.6500be6a-3838-49cb-b7a9-9d2ecb40101b.49078d7c-799b-4e1c-ae02-290ac1fa585e","message":{"Exception":"Error","Message":"Undefined index: {{ email }} at /var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php#300","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php","line":300,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[8,"Undefined index: {{ email }}","/var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php",300,{"profile":"*** sensitive parameter replaced ***","confattr":{"id":"{{ nextcloud_username | default(sub) }}","name":"{{ name | default(email) }}","mail":"{{ email }}","quota":"{{ ownCloudQuota }}","home":"{{ homeDirectory }}","0":"And 2 more entries, set log level to debug to see all entries"},"defattr":{"id":"{{ sub }}","name":"{{ name }}","mail":"{{ email }}","quota":"{{ ownCloudQuota }}","home":"{{ homeDirectory }}","0":"And 2 more entries, set log level to debug to see all entries"},"attr":{"id":"_rendered_id","name":"_rendered_name","mail":"{{ email }}","quota":"{{ ownCloudQuota }}","home":"{{ homeDirectory }}","0":"And 2 more entries, set log level to debug to see all entries"},"loader":{"__class__":"Twig\\Loader\\ArrayLoader"},"0":"And 8 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php","line":115,"function":"login","class":"OCA\\OIDCLogin\\Controller\\LoginController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php","line":94,"function":"authSuccess","class":"OCA\\OIDCLogin\\Controller\\LoginController","type":"->","args":[{"is_admin":true,"sub":"1b924539-1533-4bd5-bdfc-5893b2086e4e","email_verified":false,"nextcloud_username":"22A067ED-53CD-4457-8C06-38774D1B4925","name":"groupeweb admin","0":"And 4 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"oidc","class":"OCA\\OIDCLogin\\Controller\\LoginController","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\OIDCLogin\\Controller\\LoginController"},"oidc"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\OIDCLogin\\Controller\\LoginController"},"oidc"]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\OIDCLogin\\Controller\\LoginController","oidc",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"oidc_login.login.oidc"}]},{"file":"/var/www/nextcloud/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/oidc_login/oidc"]},{"file":"/var/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36","version":"21.0.2.1"}
{"reqId":"VoCqYiaWw8QHw99xK5j5","level":3,"time":"2021-07-08T13:52:29+00:00","remoteAddr":"172.20.3.98","user":"--","app":"PHP","method":"GET","url":"/nextcloud/index.php_login/oidc?state=df9037c7f5c8cae05e3614514b190137&session_state=da1f8af0-e319-4cf7-bd6a-99ccdc98f46f&code=19e908ca-2f88-45ab-93b4-1b59fd2e540d.da1f8af0-e319-4cf7-bd6a-99ccdc98f46f.49078d7c-799b-4e1c-ae02-290ac1fa585e","message":{"Exception":"Error","Message":"Undefined index: {{ email }} at /var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php#300","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php","line":300,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[8,"Undefined index: {{ email }}","/var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php",300,{"profile":"*** sensitive parameter replaced ***","confattr":{"id":"{{ nextcloud_username | default(sub) }}","name":"{{ name | default(email) }}","mail":"{{ email }}","quota":"{{ ownCloudQuota }}","home":"{{ homeDirectory }}","0":"And 2 more entries, set log level to debug to see all entries"},"defattr":{"id":"{{ sub }}","name":"{{ name }}","mail":"{{ email }}","quota":"{{ ownCloudQuota }}","home":"{{ homeDirectory }}","0":"And 2 more entries, set log level to debug to see all entries"},"attr":{"id":"_rendered_id","name":"_rendered_name","mail":"{{ email }}","quota":"{{ ownCloudQuota }}","home":"{{ homeDirectory }}","0":"And 2 more entries, set log level to debug to see all entries"},"loader":{"__class__":"Twig\\Loader\\ArrayLoader"},"0":"And 8 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php","line":115,"function":"login","class":"OCA\\OIDCLogin\\Controller\\LoginController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php","line":94,"function":"authSuccess","class":"OCA\\OIDCLogin\\Controller\\LoginController","type":"->","args":[{"is_admin":true,"sub":"1b924539-1533-4bd5-bdfc-5893b2086e4e","email_verified":false,"nextcloud_username":"22A067ED-53CD-4457-8C06-38774D1B4925","name":"groupeweb admin","0":"And 4 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"oidc","class":"OCA\\OIDCLogin\\Controller\\LoginController","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\OIDCLogin\\Controller\\LoginController"},"oidc"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\OIDCLogin\\Controller\\LoginController"},"oidc"]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\OIDCLogin\\Controller\\LoginController","oidc",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"oidc_login.login.oidc"}]},{"file":"/var/www/nextcloud/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/oidc_login/oidc"]},{"file":"/var/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0","version":"21.0.2.1"}
{"reqId":"5Nol9UxO8nyhudAG4nRM","level":3,"time":"2021-07-08T15:14:00+00:00","remoteAddr":"172.20.3.98","user":"--","app":"PHP","method":"GET","url":"/nextcloud/index.php_login/oidc?state=4eb1c88409a9d8da1c9e535ac20bfceb&session_state=6500be6a-3838-49cb-b7a9-9d2ecb40101b&code=956cd0ae-7579-4750-921f-3a3876b90a33.6500be6a-3838-49cb-b7a9-9d2ecb40101b.49078d7c-799b-4e1c-ae02-290ac1fa585e","message":{"Exception":"Error","Message":"Undefined index: {{ email }} at /var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php#300","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php","line":300,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[8,"Undefined index: {{ email }}","/var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php",300,{"profile":"*** sensitive parameter replaced ***","confattr":{"id":"{{ nextcloud_username | default(sub) }}","name":"{{ name | default(email) }}","mail":"{{ email }}","quota":"{{ ownCloudQuota }}","home":"{{ homeDirectory }}","0":"And 2 more entries, set log level to debug to see all entries"},"defattr":{"id":"{{ sub }}","name":"{{ name }}","mail":"{{ email }}","quota":"{{ ownCloudQuota }}","home":"{{ homeDirectory }}","0":"And 2 more entries, set log level to debug to see all entries"},"attr":{"id":"_rendered_id","name":"_rendered_name","mail":"{{ email }}","quota":"{{ ownCloudQuota }}","home":"{{ homeDirectory }}","0":"And 2 more entries, set log level to debug to see all entries"},"loader":{"__class__":"Twig\\Loader\\ArrayLoader"},"0":"And 8 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php","line":115,"function":"login","class":"OCA\\OIDCLogin\\Controller\\LoginController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php","line":94,"function":"authSuccess","class":"OCA\\OIDCLogin\\Controller\\LoginController","type":"->","args":[{"is_admin":true,"sub":"1b924539-1533-4bd5-bdfc-5893b2086e4e","email_verified":false,"nextcloud_username":"22A067ED-53CD-4457-8C06-38774D1B4925","name":"groupeweb admin","0":"And 4 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"oidc","class":"OCA\\OIDCLogin\\Controller\\LoginController","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\OIDCLogin\\Controller\\LoginController"},"oidc"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\OIDCLogin\\Controller\\LoginController"},"oidc"]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\OIDCLogin\\Controller\\LoginController","oidc",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"oidc_login.login.oidc"}]},{"file":"/var/www/nextcloud/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/oidc_login/oidc"]},{"file":"/var/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36","version":"21.0.2.1"}
{"reqId":"pb8qK5naH7rg7WYIipDG","level":3,"time":"2021-07-08T15:25:25+00:00","remoteAddr":"172.20.3.98","user":"--","app":"PHP","method":"GET","url":"/nextcloud/index.php_login/oidc?state=b5cf3babcc9a1dc4daf9eb7b2bf2aed1&session_state=6dfb85cc-cf81-497d-aed2-7b8cc018121b&code=f6b9f774-a73b-404a-b878-898fcf0afb51.6dfb85cc-cf81-497d-aed2-7b8cc018121b.49078d7c-799b-4e1c-ae02-290ac1fa585e","message":{"Exception":"Error","Message":"Undefined index: {{ name | default(email) }} at /var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php#296","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php","line":296,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[8,"Undefined index: {{ name | default(email) }}","/var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php",296,{"profile":"*** sensitive parameter replaced ***","confattr":{"id":"{{ nextcloud_username | default(sub) }}","name":"{{ name | default(email) }}","mail":"{{ email }}","quota":"{{ ownCloudQuota }}","home":"{{ homeDirectory }}","0":"And 2 more entries, set log level to debug to see all entries"},"defattr":{"id":"{{ sub }}","name":"{{ name }}","mail":"{{ email }}","quota":"{{ ownCloudQuota }}","home":"{{ homeDirectory }}","0":"And 2 more entries, set log level to debug to see all entries"},"attr":{"id":"_rendered_id","name":"{{ name | default(email) }}","mail":"{{ email }}","quota":"{{ ownCloudQuota }}","home":"{{ homeDirectory }}","0":"And 2 more entries, set log level to debug to see all entries"},"loader":{"__class__":"Twig\\Loader\\ArrayLoader"},"0":"And 8 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php","line":115,"function":"login","class":"OCA\\OIDCLogin\\Controller\\LoginController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php","line":94,"function":"authSuccess","class":"OCA\\OIDCLogin\\Controller\\LoginController","type":"->","args":[{"sub":"0f34e45e-d97a-4857-9727-095c7946bf71","email_verified":false,"nextcloud_username":"29784388-B17D-4875-9095-18B2E0B45090","preferred_username":"gwebuser2"}]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"oidc","class":"OCA\\OIDCLogin\\Controller\\LoginController","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\OIDCLogin\\Controller\\LoginController"},"oidc"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\OIDCLogin\\Controller\\LoginController"},"oidc"]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\OIDCLogin\\Controller\\LoginController","oidc",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"oidc_login.login.oidc"}]},{"file":"/var/www/nextcloud/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/oidc_login/oidc"]},{"file":"/var/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0","version":"21.0.2.1"}
{"reqId":"pb8qK5naH7rg7WYIipDG","level":3,"time":"2021-07-08T15:25:25+00:00","remoteAddr":"172.20.3.98","user":"--","app":"PHP","method":"GET","url":"/nextcloud/index.php_login/oidc?state=b5cf3babcc9a1dc4daf9eb7b2bf2aed1&session_state=6dfb85cc-cf81-497d-aed2-7b8cc018121b&code=f6b9f774-a73b-404a-b878-898fcf0afb51.6dfb85cc-cf81-497d-aed2-7b8cc018121b.49078d7c-799b-4e1c-ae02-290ac1fa585e","message":{"Exception":"Error","Message":"Undefined index: {{ email }} at /var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php#300","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php","line":300,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[8,"Undefined index: {{ email }}","/var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php",300,{"profile":"*** sensitive parameter replaced ***","confattr":{"id":"{{ nextcloud_username | default(sub) }}","name":"{{ name | default(email) }}","mail":"{{ email }}","quota":"{{ ownCloudQuota }}","home":"{{ homeDirectory }}","0":"And 2 more entries, set log level to debug to see all entries"},"defattr":{"id":"{{ sub }}","name":"{{ name }}","mail":"{{ email }}","quota":"{{ ownCloudQuota }}","home":"{{ homeDirectory }}","0":"And 2 more entries, set log level to debug to see all entries"},"attr":{"id":"_rendered_id","name":"{{ name | default(email) }}","mail":"{{ email }}","quota":"{{ ownCloudQuota }}","home":"{{ homeDirectory }}","0":"And 2 more entries, set log level to debug to see all entries"},"loader":{"__class__":"Twig\\Loader\\ArrayLoader"},"0":"And 8 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php","line":115,"function":"login","class":"OCA\\OIDCLogin\\Controller\\LoginController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/oidc_login/lib/Controller/LoginController.php","line":94,"function":"authSuccess","class":"OCA\\OIDCLogin\\Controller\\LoginController","type":"->","args":[{"sub":"0f34e45e-d97a-4857-9727-095c7946bf71","email_verified":false,"nextcloud_username":"29784388-B17D-4875-9095-18B2E0B45090","preferred_username":"gwebuser2"}]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"oidc","class":"OCA\\OIDCLogin\\Controller\\LoginController","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\OIDCLogin\\Controller\\LoginController"},"oidc"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\OIDCLogin\\Controller\\LoginController"},"oidc"]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\OIDCLogin\\Controller\\LoginController","oidc",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"oidc_login.login.oidc"}]},{"file":"/var/www/nextcloud/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/oidc_login/oidc"]},{"file":"/var/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0","version":"21.0.2.1"}
{"reqId":"dalGoOK4a0wqPS2UY4TJ","level":3,"time":"2021-07-08T15:28:50+00:00","remoteAddr":"172.20.3.98","user":"29784388-B17D-4875-9095-18B2E0B45090","app":"PHP","method":"POST","url":"/nextcloud/ocs/v2.php/apps/files/api/v1/templates/create","message":{"Exception":"Error","Message":"Undefined variable: template at /var/www/nextcloud/lib/private/Files/Template/TemplateManager.php#174","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Template/TemplateManager.php","line":174,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[8,"Undefined variable: template","/var/www/nextcloud/lib/private/Files/Template/TemplateManager.php",174,{"filePath":"//Document.docx","templateId":"","templateType":"user","userFolder":{"__class__":"OC\\Files\\Node\\Folder"},"e":{"__class__":"OCP\\Files\\NotFoundException"},"0":"And 4 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/nextcloud/apps/files/lib/Controller/TemplateController.php","line":56,"function":"createFromTemplate","class":"OC\\Files\\Template\\TemplateManager","type":"->","args":["//Document.docx","","user"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"create","class":"OCA\\Files\\Controller\\TemplateController","type":"->","args":["//Document.docx","","user"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\TemplateController"},"create"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\TemplateController"},"create"]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files\\Controller\\TemplateController","create",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"ocs.files.Template.create"}]},{"file":"/var/www/nextcloud/ocs/v1.php","line":63,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocsapp/apps/files/api/v1/templates/create"]},{"file":"/var/www/nextcloud/ocs/v2.php","line":24,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0","version":"21.0.2.1"}
```
</details>
#### Browser log
<details>
<summary>Browser log</summary>
```
N/A
```
</details>
Thanks