Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

ERROR: Could not connect to imap server via curl

Abierto
#226 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
php

Línea de trabajo

Start with the configured user_backends entry using OCA\UserExternal\IMAP and reproduce the failure through PROPFIND /remote.php/dav/. Compare the reported behavior for an IMAP user with a Nextcloud-interface user, then establish whether the expected authentication behavior is supported and what a completed fix or clarification would require.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

0. Needs triage bug

I want to add https://<domain>/remote.php/dav/ to a client with an user added in nextcloud interface, not an imap user one. I get:

{"reqId":"ZFJxBAOzaQ4z8pEBv7FpwwAAAiw","level":3,"time":"2023-05-03T14:35:12+00:00","remoteAddr":"***REMOVED SENSITIVE VALUE***2a01:4f9:2b:2a8b::defe:c8ed","user":"--","app":"user_external","method":"PROPFIND","url":"/remote.php/dav/","message":"ERROR: Could not connect to imap server via curl: ","userAgent":"sabre-dav/4.4.0 (http://sabre.io/)","version":"25.0.6.1","data":{"app":"user_external"}}
{"reqId":"ZFJxBAOzaQ4z8pEBv7FpwwAAAiw","level":3,"time":"2023-05-03T14:35:14+00:00","remoteAddr":"***REMOVED SENSITIVE VALUE***","user":"--","app":"user_external","method":"PROPFIND","url":"/remote.php/dav/","message":"ERROR: Could not connect to imap server via curl: ","userAgent":"sabre-dav/4.4.0 (http://sabre.io/)","version":"25.0.6.1","data":{"app":"user_external"}}
{"reqId":"ZFJxBAOzaQ4z8pEBv7FpwwAAAiw","level":2,"time":"2023-05-03T14:35:14+00:00","remoteAddr":"***REMOVED SENSITIVE VALUE***","user":"--","app":"core","method":"PROPFIND","url":"/remote.php/dav/","message":"Login failed: '<nextcloud user>' (Remote IP: '***REMOVED SENSITIVE VALUE***')","userAgent":"sabre-dav/4.4.0 (http://sabre.io/)","version":"25.0.6.1","data":{"app":"core"}}

With imap users It work as expected.

Server configuration

User External App version: 3.1.0
Operating system: Gentoo Base System release 2.13
Web server: Apache 2.4.55
Database: MySQL 8.0.32
PHP version: 8.0
Nextcloud version: 25.0.6
Updated from an older Nextcloud/ownCloud or fresh install: 25.0.5
Where did you install Nextcloud from: source

Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
Enabled:
  - activity: 2.17.0
  - bruteforcesettings: 2.5.0
  - calendar: 4.3.1
  - circles: 25.0.0
  - cloud_federation_api: 1.8.0
  - comments: 1.15.0
  - contacts: 5.2.0
  - dav: 1.24.0
  - federatedfilesharing: 1.15.0
  - federation: 1.15.0
  - files: 1.20.1
  - files_external: 1.17.0
  - files_pdfviewer: 2.6.0
  - files_rightclick: 1.4.0
  - files_sharing: 1.17.0
  - files_trashbin: 1.15.0
  - files_versions: 1.18.0
  - firstrunwizard: 2.14.0
  - logreader: 2.10.0
  - lookup_server_connector: 1.13.0
  - nextcloud_announcements: 1.14.0
  - notifications: 2.13.1
  - oauth2: 1.13.0
  - password_policy: 1.15.0
  - photos: 2.0.1
  - privacy: 1.9.0
  - provisioning_api: 1.15.0
  - recommendations: 1.4.0
  - related_resources: 1.0.4
  - serverinfo: 1.15.0
  - settings: 1.7.0
  - sharebymail: 1.15.0
  - support: 1.8.0
  - survey_client: 1.13.0
  - systemtags: 1.15.0
  - tasks: 0.14.5
  - text: 3.6.0
  - theming: 2.0.1
  - twofactor_backupcodes: 1.14.0
  - updatenotification: 1.15.0
  - user_external: 3.1.0
  - user_status: 1.5.0
  - viewer: 1.9.0
  - workflowengine: 2.7.0

Nextcloud configuration:

Config report
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***",
            "***REMOVED SENSITIVE VALUE***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "25.0.5.1",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "trashbin_retention_obligation": "auto, 7",
        "filelocking.enabled": "true",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\APCu",
        "user_backends": [
            {
                "class": "\\OCA\\UserExternal\\IMAP",
                "arguments": [
                    "***REMOVED SENSITIVE VALUE***",
                    993,
                    "ssl"
                ]
            }
        ],
        "loglevel": 2,
        "maintenance": false,
        "mail_smtpmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "theme": "",
        "enable_avatars": true,
        "singleuser": false,
        "updater.release.channel": "stable",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "mail_smtpport": "25",
        "encryption.legacy_format_support": false,
        "encryption.key_storage_migrated": false,
        "default_phone_region": "DE",
        "app_install_overwrite": [
            "user_external"
        ]
    }
}
Logs
Web server error log
Web server error log
no error log for this issue
Nextcloud log (data/nextcloud.log)
Nextcloud log
{"reqId":"ZFJxBAOzaQ4z8pEBv7FpwwAAAiw","level":3,"time":"2023-05-03T14:35:12+00:00","remoteAddr":"***REMOVED SENSITIVE VALUE***2a01:4f9:2b:2a8b::defe:c8ed","user":"--","app":"user_external","method":"PROPFIND","url":"/remote.php/dav/","message":"ERROR: Could not connect to imap server via curl: ","userAgent":"sabre-dav/4.4.0 (http://sabre.io/)","version":"25.0.6.1","data":{"app":"user_external"}}
{"reqId":"ZFJxBAOzaQ4z8pEBv7FpwwAAAiw","level":3,"time":"2023-05-03T14:35:14+00:00","remoteAddr":"***REMOVED SENSITIVE VALUE***","user":"--","app":"user_external","method":"PROPFIND","url":"/remote.php/dav/","message":"ERROR: Could not connect to imap server via curl: ","userAgent":"sabre-dav/4.4.0 (http://sabre.io/)","version":"25.0.6.1","data":{"app":"user_external"}}
{"reqId":"ZFJxBAOzaQ4z8pEBv7FpwwAAAiw","level":2,"time":"2023-05-03T14:35:14+00:00","remoteAddr":"***REMOVED SENSITIVE VALUE***","user":"--","app":"core","method":"PROPFIND","url":"/remote.php/dav/","message":"Login failed: '<nextcloud user>' (Remote IP: '***REMOVED SENSITIVE VALUE***')","userAgent":"sabre-dav/4.4.0 (http://sabre.io/)","version":"25.0.6.1","data":{"app":"core"}}
Lenguaje dominante
JavaScript
Estrellas
120
Forks
72
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de nextcloud/user_external

Todos los issues de nextcloud/user_external

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.