Skip to content

Undefined variable owneruid in TokenManager.php with App 1.11.32 #93

@TheMrApostel

Description

@TheMrApostel

Steps to reproduce

  1. Upgrade App from 1.11.30 to 1.11.32
  2. Use the newest docker container COLLABORA/CODE 2.1
  3. Open up an existing or new document supported by collabora

Expected behaviour

No errorlogs should be displayed

Actual behaviour

You can find the following errorlog in your logging
Undefined variable: owneruid at /var/www/nextcloud/apps/richdocuments/lib/TokenManager.php#88

Server configuration

Operating system:
Debian 8.8
Web server:
Apache 2.4.10
Database:
MySQL 5.5.55
PHP version:
7.1.5
Nextcloud version: (see Nextcloud admin page)
11.0.3
Updated from an older Nextcloud/ownCloud or fresh install:
Upgraded from 11.0 to 11.0.3 but on the release day of 11.0.3
Where did you install Nextcloud from:
Nextcloud.com
Signing status:

Signing status
Integrity checker has been disabled. Integrity cannot be verified.

List of activated apps:

App list
Enabled:
  - activity: 2.4.1
  - activitylog: 0.0.1
  - dav: 1.1.1
  - direct_menu: 0.10.2
  - federatedfilesharing: 1.1.1
  - files: 1.6.1
  - files_pdfviewer: 1.0.1
  - files_sharing: 1.1.1
  - files_texteditor: 2.2
  - files_trashbin: 1.1.0
  - files_versions: 1.4.0
  - files_videoplayer: 1.0.0
  - gallery: 16.0.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.0.0
  - notifications: 1.0.1
  - password_policy: 1.1.0
  - provisioning_api: 1.1.0
  - richdocuments: 1.11.32
  - serverinfo: 1.1.1
  - sharebymail: 1.0.1
  - templateeditor: 0.2
  - twofactor_backupcodes: 1.0.0
  - updatenotification: 1.1.1
  - user_ldap: 1.1.2
  - workflowengine: 1.1.1
Disabled:
  - admin_audit
  - admin_notifications
  - comments
  - encryption
  - external
  - federation
  - files_accesscontrol
  - files_automatedtagging
  - files_external
  - files_retention
  - firstrunwizard
  - nextcloud_announcements
  - spreed
  - spreedme
  - survey_client
  - systemtags
  - theming
  - user_external
  - user_saml

The content of config/config.php:

Config report
{
    "system": {
        "instanceid": "ocmgn4ia6qoa",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "owncloud.**.**"
        ],
        "datadirectory": "\/home\/nextcloud",
        "overwrite.cli.url": "https:\/\/owncloud.**.**",
        "dbtype": "mysql",
        "version": "11.0.3.2",
        "dbname": "maxe_db",
        "dbhost": "localhost",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "knowledgebaseenabled": false,
        "session_keepalive": true,
        "skeletondirectory": "\/home\/nextcloud\/donttouch\/",
        "trashbin_retention_obligation": "D10, auto",
        "versions_retention_obligation": "auto",
        "ldapUserCleanupInterval": 20,
        "auth.bruteforce.protection.enabled": true,
        "log_rotate_size": 52428800,
        "filesystem_check_changes": 1,
        "loglevel": 2,
        "htaccess.RewriteBase": "\/",
        "theme": "apostel",
        "enable_avatars": true,
        "enable_previews": false,
        "maintenance": false,
        "updater.release.channel": "production",
        "filelocking.enabled": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "localhost",
            "port": 6379
        }
    }
}

Are you using external storage, if yes which one: local/smb/sftp/...
NO
Are you using encryption: yes/no
NO
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
Yes, LDAP and some users use Webdav

LDAP configuration (delete this part if not used)

LDAP config
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Configuration                 | s01                                                                                                                                                                     |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| hasMemberOfFilterSupport      | 1                                                                                                                                                                       |
| hasPagedResultSupport         |                                                                                                                                                                         |
| homeFolderNamingRule          |                                                                                                                                                                         |
| lastJpegPhotoLookup           | 0                                                                                                                                                                       |
| ldapAgentName                 | ****                                                                                                                                                       |
| ldapAgentPassword             | ***                                                                                                                                                                     |
| ldapAttributesForGroupSearch  |                                                                                                                                                                         |
| ldapAttributesForUserSearch   |                                                                                                                                                                         |
| ldapBackupHost                |                                                                                                                                                                         |
| ldapBackupPort                |                                                                                                                                                                         |
| ldapBase                      | ****                                                                                                                                                       |
| ldapBaseGroups                | ****                                                                                                                                                       |
| ldapBaseUsers                 | ****                                                                                                                                                    |
| ldapCacheTTL                  | 600                                                                                                                                                                     |
| ldapConfigurationActive       | 1                                                                                                                                                                       |
| ldapDynamicGroupMemberURL     |                                                                                                                                                                         |
| ldapEmailAttribute            |                                                                                                                                                                         |
| ldapExperiencedAdmin          | 1                                                                                                                                                                       |
| ldapExpertUUIDGroupAttr       |                                                                                                                                                                         |
| ldapExpertUUIDUserAttr        | cn                                                                                                                                                                      |
| ldapExpertUsernameAttr        | cn                                                                                                                                                                      |
| ldapGroupDisplayName          | cn                                                                                                                                                                      |
| ldapGroupFilter               | (|(cn=GRP_Nextcloud))                                                                                                                                                   |
| ldapGroupFilterGroups         | GRP_Nextcloud                                                                                                                                                           |
| ldapGroupFilterMode           | 0                                                                                                                                                                       |
| ldapGroupFilterObjectclass    |                                                                                                                                                                         |
| ldapGroupMemberAssocAttr      | member                                                                                                                                                                  |
| ldapHost                      | ****                                                                                                                                                            |
| ldapIgnoreNamingRules         |                                                                                                                                                                         |
| ldapLoginFilter               | (&(&(|(objectclass=person)(objectclass=user))(|(|(memberof=CN=GRP_Nextcloud,OU=GRP,OU=**** Global,DC=****,DC=de)(primaryGroupID=24457))))(samaccountname=%uid)) |
| ldapLoginFilterAttributes     |                                                                                                                                                                         |
| ldapLoginFilterEmail          | 0                                                                                                                                                                       |
| ldapLoginFilterMode           | 0                                                                                                                                                                       |
| ldapLoginFilterUsername       | 1                                                                                                                                                                       |
| ldapNestedGroups              | 0                                                                                                                                                                       |
| ldapOverrideMainServer        |                                                                                                                                                                         |
| ldapPagingSize                | 500                                                                                                                                                                     |
| ldapPort                      | 389                                                                                                                                                                     |
| ldapQuotaAttribute            |                                                                                                                                                                         |
| ldapQuotaDefault              |                                                                                                                                                                         |
| ldapTLS                       | 0                                                                                                                                                                       |
| ldapUserDisplayName           | displayname                                                                                                                                                             |
| ldapUserDisplayName2          |                                                                                                                                                                         |
| ldapUserFilter                | (&(|(objectclass=person)(objectclass=user))(|(|(memberof=CN=GRP_Nextcloud,OU=GRP,OU=**** Global,DC=****,DC=de)(primaryGroupID=24457))))                         |
| ldapUserFilterGroups          | GRP_Nextcloud                                                                                                                                                           |
| ldapUserFilterMode            | 0                                                                                                                                                                       |
| ldapUserFilterObjectclass     | person;user                                                                                                                                                             |
| ldapUuidGroupAttribute        | auto                                                                                                                                                                    |
| ldapUuidUserAttribute         | auto                                                                                                                                                                    |
| turnOffCertCheck              | 0                                                                                                                                                                       |
| turnOnPasswordChange          | 0                                                                                                                                                                       |
| useMemberOfToDetectMembership | 1                                                                                                                                                                       |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Client configuration

Browser:
Firefox 53
Operating system:
Windows 10

Logs

Web server error log

Web server error log ``` [Wed Jun 07 06:25:14.000729 2017] [mpm_prefork:notice] [pid 12736] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming norm$ [Wed Jun 07 06:25:14.000802 2017] [core:notice] [pid 12736] AH00094: Command line: '/usr/sbin/apache2' [Wed Jun 07 10:48:35.998891 2017] [php7:error] [pid 24330] [client 212.7.183.138:3737] PHP Fatal error: Uncaught Error: Access to undeclared$ [Wed Jun 07 10:52:56.179988 2017] [php7:error] [pid 24580] [client 213.30.251.137:23989] PHP Fatal error: Uncaught Error: Access to undeclar$ [Wed Jun 07 11:26:37.349386 2017] [core:error] [pid 24137] [client 31.220.127.52:59586] AH00135: Invalid method in request AWMI / HTTP/1.1 ```

Nextcloud log (data/nextcloud.log)

Nextcloud log ``` Undefined variable: owneruid at /var/www/nextcloud/apps/richdocuments/lib/TokenManager.php#88 ```

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions