two IMAP servers
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- php
調査の方向性
Start in apps/user_external/lib/IMAP.php at line 74, then trace the checkPassword path shown in the log for the second IMAP configuration. Confirm the fix by checking that users from both configured servers can authenticate without the internal server error.
索引モデルが issue の本文から書いたものです。
説明
How do I connect a second IMAP server for authentication?
Nextcloud Hub 25 Autumn (32.0.2)
Here's the config:
'user_backends' =>
array (
0 =>
array (
'class' => '\\OCA\\UserExternal\\IMAP',
'arguments' =>
array (
0 => 'mail.domain1.com',
1 => 993,
2 => 'ssl',
3 => 'domain1.com',
4 => false,
5 => false,
),.
),
1 =>
array (
'class' => '\\OCA\\UserExternal\\IMAP',
'arguments' =>
array (
0 => 'mail.domain2.com',
1 => 993,
2 => 'ssl',
3 => 'domain2.com',
4 => false,
5 => false,
),
),
),
User [email protected] logs in normally.
User [email protected] have error Internal Server Error
in nextcloud.log:
{"reqId":"16288Eia1QgwTtaMlrY0","level":3,"time":"2025-12-01T11:13:54+00:00","remoteAddr":"195.96.64.194","user":"--","app":"index","method":"POST","url":"/login","message":"Call to undefined method OC\\Server::getLogger() in file '/var/www/nextcloud/apps/user_external/lib/IMAP.php' line 74","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36","version":"32.0.2.2","exception":{"Exception":"Exception","Message":"Call to undefined method OC\\Server::getLogger() in file '/var/www/nextcloud/apps/user_external/lib/IMAP.php' line 74","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1061,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":25,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":150,"Previous":{"Exception":"Error","Message":"Call to undefined method OC\\Server::getLogger()","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/User/Manager.php","line":230,"function":"checkPassword","class":"OCA\\UserExternal\\IMAP","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Authentication/Login/UidLoginCommand.php","line":29,"function":"checkPasswordNoLogging","class":"OC\\User\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Authentication/Login/ALoginCommand.php","line":22,"function":"process","class":"OC\\Authentication\\Login\\UidLoginCommand","type":"->"},{"file":"/var/www/nextcloud/lib/private/Authentication/Login/UserDisabledCheckCommand.php","line":39,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->"},{"file":"/var/www/nextcloud/lib/private/Authentication/Login/ALoginCommand.php","line":22,"function":"process","class":"OC\\Authentication\\Login\\UserDisabledCheckCommand","type":"->"},{"file":"/var/www/nextcloud/lib/private/Authentication/Login/PreLoginHookCommand.php","line":34,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->"},{"file":"/var/www/nextcloud/lib/private/Authentication/Login/Chain.php","line":43,"function":"process","class":"OC\\Authentication\\Login\\PreLoginHookCommand","type":"->"},{"file":"/var/www/nextcloud/core/Controller/LoginController.php","line":353,"function":"process","class":"OC\\Authentication\\Login\\Chain","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":204,"function":"tryLogin","class":"OC\\Core\\Controller\\LoginController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":118,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1061,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":25,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/user_external/lib/IMAP.php","Line":74},"message":"Call to undefined method OC\\Server::getLogger() in file '/var/www/nextcloud/apps/user_external/lib/IMAP.php' line 74","exception":{},"CustomMessage":"Call to undefined method OC\\Server::getLogger() in file '/var/www/nextcloud/apps/user_external/lib/IMAP.php' line 74"}}
- 主要言語
- JavaScript
- スター
- 121
- フォーク
- 73
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextcloud/user_external のほかの issue
-
0. Needs triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nextcloud/user_external#298 · リアクション 1 件 ·
-
NC 35 compatibilityオープン0. Needs triage enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
nextcloud/user_external#311 · コメント 2 件 · リアクション 4 件 ·
-
0. Needs triage bug
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
nextcloud/user_external#310 · コメント 2 件 ·
-
v4.0.0 released!オープン
難易度 1/5 1時間未満 初心者へのやさしさ 20/100
nextcloud/user_external#295 · リアクション 3 件 ·
-
0. Needs triage bug
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
nextcloud/user_external#281 · コメント 6 件 · リアクション 3 件 ·
nextcloud/user_external の issue をすべて見る
似ている issue
-
Bug pulumi/pulumi
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
andromarces/agent-loops#571 ·
メンテナーはふだん 1 日以内に返信
-
Code Cleanup Dev Environment
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ProjectSidewalk/SidewalkWebpage#5699 ·
メンテナーはふだん 1 日以内に返信
-
automated issue report
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
lirantal/discoprint#38 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
zenstackhq/zenstack#2873 ·
メンテナーはふだん 1 日以内に返信