Trying to access array offset on value of type bool at /var/www/nextcloud/apps/user_external/lib/base.php#69
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- php
- Área
- authentication, backend
Línea de trabajo
Read apps/user_external/lib/base.php around line 69 and the getDisplayName call shown in the trace; reproduce the issue with the SMB backend against Samba ADC/LDAP. Verify that the error no longer occurs during user and group display, and that assigned groups and group-based external-storage restrictions propagate correctly.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hey folks,
I attached my nextcloud instance to a samba adc via the user_external and have frequent errors from the plugins.
The message states Trying to access array offset on value of type bool at /var/www/nextcloud/apps/user_external/lib/base.php#69. The problem might lead to unexpected behavior since then groups are not populated correctly and
the nextcloud itself behaves slowly with login and showing users.
Steps to reproduce
- Install Nextcloud and some Samba ADC with integrated LDAP
- Install and Configure
user_external - See the error messages happening
Expected behaviour
The error doesn't happen and the group propagation work as expected.
So if you assign a person to a group as administrator, the person sees it's group in the settings
and the restrictions are applied as stated in the settings, e.g. you the external storages for that group.
Actual behaviour
This error happens frequently.
Also groups assigned to people are not visible to the people itself and e.g. external storage
for that group is visible to its members.
Affected Authentication backend
SMB Backend
Server configuration
User External App version: v1.0.0
Operating system: Debian10
Web server: Nginx
Database: MariaDB
PHP version: php7.4
Nextcloud version: 20.0.5
Updated from an older Nextcloud/ownCloud or fresh install: fresh install
Where did you install Nextcloud from: Manually
Signing status: unsigned
Signing status
Login as admin user into your Nextcloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.
No errors have been found.
List of activated apps:
App list
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
Enabled:
- accessibility: 1.6.0
- activity: 2.13.4
- admin_audit: 1.10.0
- apporder: 0.11.0
- breezedark: 20.0.3
- calendar: 2.1.3
- cloud_federation_api: 1.3.0
- comments: 1.10.0
- contacts: 3.4.3
- contactsinteraction: 1.1.0
- dav: 1.16.2
- deck: 1.2.3
- drawio: 0.9.8
- external: 3.7.1
- extract: 1.3.0
- federatedfilesharing: 1.10.2
- federation: 1.10.1
- files: 1.15.0
- files_external: 1.11.1
- files_markdown: 2.3.1
- files_pdfviewer: 2.0.1
- files_rightclick: 0.17.0
- files_sharing: 1.12.2
- files_trashbin: 1.10.1
- files_versions: 1.13.0
- files_videoplayer: 1.9.0
- groupfolders: 8.2.0
- logreader: 2.5.0
- lookup_server_connector: 1.8.0
- nextcloud_announcements: 1.9.0
- notifications: 2.8.0
- oauth2: 1.8.0
- password_policy: 1.10.1
- passwords: 2021.1.2
- photos: 1.2.3
- privacy: 1.4.0
- provisioning_api: 1.10.0
- rainloop: 7.0.3
- recommendations: 0.8.0
- richdocuments: 3.7.11
- serverinfo: 1.10.0
- settings: 1.2.0
- sharebymail: 1.10.0
- support: 1.3.0
- systemtags: 1.10.0
- tasks: 0.13.6
- text: 3.1.0
- theming: 1.11.0
- twofactor_backupcodes: 1.9.0
- updatenotification: 1.10.0
- user_external: 1.0.0
- viewer: 1.4.0
- workflowengine: 2.2.0
Disabled: - dashboard
- encryption
- firstrunwizard
- ldap_write_support
- survey_client
- user_ldap
- user_status
- weather_status
Nextcloud configuration:
Config report
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder
or
Insert your config.php content here.
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)
{
"system": {
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"192.168.78.10",
"test.cobios.de",
"0.0.0.0",
"cloud.cobios.de"
],
"trusted_proxies": "REMOVED SENSITIVE VALUE",
"datadirectory": "REMOVED SENSITIVE VALUE",
"dbtype": "mysql",
"version": "20.0.5.2",
"overwrite.cli.url": "https://localhost",
"dbname": "REMOVED SENSITIVE VALUE",
"dbhost": "REMOVED SENSITIVE VALUE",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"installed": true,
"instanceid": "REMOVED SENSITIVE VALUE",
"activity_expire_days": 14,
"auth.bruteforce.protection.enabled": true,
"blacklisted_files": [
".htaccess",
"Thumbs.db",
"thumbs.db",
".DS_Store"
],
"cron_log": true,
"enable_previews": true,
"enabledPreviewProviders": [
"OC\Preview\PNG",
"OC\Preview\JPEG",
"OC\Preview\GIF",
"OC\Preview\BMP",
"OC\Preview\XBitmap",
"OC\Preview\Movie",
"OC\Preview\PDF",
"OC\Preview\MP3",
"OC\Preview\TXT",
"OC\Preview\MarkDown"
],
"filesystem_check_changes": 0,
"filelocking.enabled": "true",
"htaccess.RewriteBase": "/",
"integrity.check.disabled": false,
"knowledgebaseenabled": false,
"logfile": "/var/nc_data/nextcloud.log",
"loglevel": 0,
"logtimezone": "Europe/Berlin",
"log_rotate_size": 104857600,
"maintenance": false,
"memcache.local": "\OC\Memcache\APCu",
"memcache.locking": "\OC\Memcache\Redis",
"overwriteprotocol": "https",
"overwritehost": "cloud.cobios.de",
"overwritewebroot": "/",
"overwriteconaddr": "^192.168.78.6$",
"preview_max_x": 1024,
"preview_max_y": 768,
"preview_max_scale_factor": 1,
"redis": {
"host": "REMOVED SENSITIVE VALUE",
"port": 0,
"timeout": 0
},
"quota_include_external_storage": false,
"share_folder": "/Shares",
"skeletondirectory": "",
"theme": "",
"trashbin_retention_obligation": "auto, 7",
"updater.release.channel": "stable",
"user_backends": [
{
"class": "OC_User_SMB",
"arguments": [
"192.168.78.3"
]
}
],
"mail_smtpmode": "smtp",
"mail_smtpsecure": "tls",
"mail_sendmailmode": "smtp",
"mail_from_address": "REMOVED SENSITIVE VALUE",
"mail_domain": "REMOVED SENSITIVE VALUE",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_smtphost": "REMOVED SENSITIVE VALUE",
"mail_smtpport": "25",
"mail_smtpname": "REMOVED SENSITIVE VALUE",
"mail_smtppassword": "REMOVED SENSITIVE VALUE",
"ldapIgnoreNamingRules": false,
"ldapProviderFactory": "OCA\User_LDAP\LDAPProviderFactory"
}
}
Logs
Web server error log
Web server error log
Insert your webserver log here
Nothing special here.
Nextcloud log (data/nextcloud.log)
Nextcloud log
Insert your Nextcloud log here
Too much deprecated class informations and the error described above.
{"reqId":"IfHPJvESYKpMUNArQY3K","level":3,"time":"2021-01-21T15:12:10+01:00","remoteAddr":"192.168.82.32","user":"xxx","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/notifications/a
pi/v2/notifications","message":{"Exception":"Error","Message":"Trying to access array offset on value of type bool at /var/www/nextcloud/apps/user_external/lib/base.php#69","Code":0,"Trace":[
{"file":"/var/www/nextcloud/apps/user_external/lib/base.php","line":69,"function":"onError","class":"OC\Log\ErrorHandler","type":"::"},{"file":"/var/www/nextcloud/lib/private/User/User.php"
,"line":133,"function":"getDisplayName","class":"OCA\user_external\Base","type":"->"},{"file":"/var/www/nextcloud/apps/external/lib/SitesManager.php","line":135,"function":"getDisplayName",
"class":"OC\User\User","type":"->"},{"file":"/var/www/nextcloud/apps/external/lib/AppInfo/Application.php","line":44,"function":"getSitesToDisplay","class":"OCA\External\SitesManager","ty
pe":"->"},{"file":"/var/www/nextcloud/apps/external/appinfo/app.php","line":24,"function":"register","class":"OCA\External\AppInfo\Application","type":"->"},{"file":"/var/www/nextcloud/lib
/private/legacy/OC_App.php","line":289,"args":["/var/www/nextcloud/apps/external/appinfo/app.php"],"function":"require_once"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line"
:171,"function":"requireAppFile","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":131,"function":"loadApp","class":"OC_App","type":"::"},{"file"
:"/var/www/nextcloud/ocs/v1.php","line":56,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/ocs/v2.php","line":24,"args":["/var/www/nextcloud/ocs/v1.php"],"func
tion":"require_once"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":91,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefo
x/84.0","version":"20.0.5.2"}
Browser log
Browser log
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
- Lenguaje dominante
- JavaScript
- Estrellas
- 121
- Forks
- 73
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de nextcloud/user_external
-
0. Needs triage bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
nextcloud/user_external#298 · 1 reacción ·
-
NC 35 compatibilityAbierto0. Needs triage enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
nextcloud/user_external#311 · 2 comentarios · 4 reacciones ·
-
0. Needs triage bug
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
nextcloud/user_external#310 · 2 comentarios ·
-
v4.0.0 released!Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 20/100
nextcloud/user_external#295 · 3 reacciones ·
-
0. Needs triage bug
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
nextcloud/user_external#281 · 6 comentarios · 3 reacciones ·
Todos los issues de nextcloud/user_external
Issues similares
-
triage-needed
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
MicrosoftDocs/edge-developer#3970 ·
Los mantenedores suelen responder en 1 día
-
agent/scanner hive/hosted-available-lke648397-260827-5n31 quality testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
PWA stores a grouped number entry 1000x too small in German localePosiblemente ocupada @Minhal128 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Add: YRF MusicAbiertocheck:passed feeds:add
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
iptv-org/database#37102 · 2 comentarios ·
Los mantenedores suelen responder en 9 días
-
[workshop-sim] Repair: Add a fallback sample .lock.yml to the Agentic Workflows Intro Activity 1Abiertofeedback simulation workshop
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
githubnext/gh-aw-workshop#4328 ·
Los mantenedores suelen responder en 1 día