You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
user_ldapisn't mandatory to have the issue, same behaviour if you create a new local user with login name containing only digits
Expected behaviour
Have nextcloud work with users identified by numeric id.
Actual behaviour
Due to PHP internals:
numeric string used for array keys are casted to int (http://php.net/manual/en/language.types.array.php «Additionally the following key casts will occur: Strings containing valid decimal integers, unless the number is preceded by a + sign, will be cast to the integer type. E.g. the key "8" will actually be stored under 8. On the other hand "08" will not be cast, as it isn't a valid decimal integer. »)
Steps to reproduce
user_ldap
andactivity
, have an LDAP with pure numeric uidsSeem to be same problem as https://help.nextcloud.com/t/activity-app-seems-no-longer-working/7353/3
user_ldap
isn't mandatory to have the issue, same behaviour if you create a new local user with login name containing only digitsExpected behaviour
Have nextcloud work with users identified by numeric id.
Actual behaviour
Due to PHP internals:
Considering function
getAccessList
(https://github.com/nextcloud/server/blob/v12.0.1/lib/private/Share20/Manager.php#L1227)$owner = $path->getOwner()->getUID();
$owner = '10147'
$al['users'][$owner] = [ ..
$al['users'][10147]['node_id']=91597
, NOT$al['users']['10147']
(php internals 1)$al[$k] = array_merge($al[$k], $v);
$al['users'][0]['node_id']=91597
, NOT$al['users']['10147']
(php internals 2)Server configuration
Operating system: Debian 9
Web server: Apache 2.4.25
Database: MariaDB 10.1.26
PHP version: PHP FPM 7.0.19
Nextcloud version: 12.0.1
Updated from an older Nextcloud/ownCloud or fresh install: Fresh install
Where did you install Nextcloud from: Git repository
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: no, just local storage
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
Client configuration
Browser: Firefox 45.9
Operating system: Debian 8.7
Logs
Web server error log
None
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
None
The text was updated successfully, but these errors were encountered: