[Bug]: A PROPFIND from a disabled user results in a 503 Service Unavailable response
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- php
- 領域
- api, authentication
調査の方向性
The 503 comes from a DisabledUserException thrown in apps/dav/lib/Connector/Sabre/Auth.php (around line 122) and escaping through the Sabre auth plugin in 3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php (around line 179). Start by reading how Auth.php's check() handles the exception and where it is converted to a ServiceUnavailable. Done means a disabled user's PROPFIND gets 401 or 403 with the disabled-account reason, and an existing DAV auth test still passes.
索引モデルが issue の本文から書いたものです。
説明
⚠️ This issue respects the following points: ⚠️
- This is not a troubleshooting question, general support matter, or webserver/proxy problem, but likely a bug (if unsure, ask the Community Help Forum).
- This issue is not already reported on Github OR solved at the Community Help Forum (I've searched!).
- I'm using a maintained major version of Nextcloud Server and tested against the latest patch level. (Supported major versions and current patch levels).
- I agree to follow Nextcloud's Code of Conduct.
- I've tried my best to provide clear reproduction steps that someone unfamiliar with this bug could use to reproduce it.
Bug description
This causes https://github.com/nextcloud/android/issues/18115
A folder refresh (a PROPFIND call to a folder path like /remote.php/dav/files/user3/) on a disabled user account returns 503 Service Unavailable with the corresponding body <s:exception>Sabre\DAV\Exception\ServiceUnavailable</s:exception>.
Steps to reproduce
- Log in with a user
- Disable that user from the admin panel
- Try to open a folder with that user (i.e. call
.../remote.php/dav/files/user3/): the server returns 503
Expected behavior
The server should return instead a clearer http result code, like 403 or maybe 401, and the <s:exception> tag should contain the relevant OC\User\DisabledUserException.
Nextcloud Server version
36 (master)
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
{
"system": {
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"localhost",
"*"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "sqlite3",
"version": "36.0.0.2",
"overwrite.cli.url": "http:\/\/localhost",
"instanceid": "***REMOVED SENSITIVE VALUE***",
"updater.release.channel": "git",
"installed": true,
"loglevel": 2,
"app_install_overwrite": [
"activity",
"text",
"password_policy",
"external",
"files_lock",
"groupfolders",
"notifications",
"circles",
"photos",
"logreader",
"testing"
]
}
}
List of activated Apps
Enabled:
- activity: 9.0.0-dev.0
- appstore: 3.0.0-dev.0
- circles: 36.0.0-dev.1
- cloud_federation_api: 3.0.0-dev.0
- comments: 3.0.0-dev.0
- contactsinteraction: 3.0.0-dev.0
- dashboard: 9.0.0-dev.0
- dav: 3.0.0-dev.2
- external: 10.0.0
- federatedfilesharing: 3.0.0-dev.0
- federation: 3.0.0-dev.0
- files: 4.0.0-dev.0
- files_external: 3.0.0-dev.0
- files_lock: 36.0.0-dev.0
- files_reminders: 3.0.0-dev.0
- files_sharing: 3.0.0-dev.1
- files_trashbin: 3.0.0-dev.0
- files_versions: 3.0.0-dev.0
- groupfolders: 24.0.0-dev.0
- logreader: 9.0.0-dev.0
- lookup_server_connector: 3.0.0-dev.0
- notifications: 9.0.0-dev.1
- oauth2: 3.0.0-dev.0
- password_policy: 8.0.0-dev.0
- photos: 9.0.0-dev.0
- profile: 3.0.0-dev.0
- provisioning_api: 3.0.0-dev.0
- settings: 3.0.0-dev.0
- sharebymail: 3.0.0-dev.0
- sharing: 2.0.0-dev.4
- systemtags: 3.0.0-dev.0
- testing: 3.0.0-dev.0
- text: 10.0.0-dev.3
- theming: 4.0.0-dev.0
- twofactor_backupcodes: 3.0.0-dev.0
- updatenotification: 3.0.0-dev.0
- user_status: 3.0.0-dev.0
- viewer: 9.0.0-dev.0
- weather_status: 3.0.0-dev.0
- webhook_listeners: 3.0.0-dev.0
- workflowengine: 4.0.0-dev.0
Disabled:
- admin_audit: 3.0.0-dev.0
- encryption: 4.0.0-dev.1
- user_ldap: 3.0.0-dev.0
Nextcloud Signing status
Integrity checker has been disabled. Integrity cannot be verified.
Nextcloud Logs
{"reqId":"Yt1fpBjqj7oVvtGBlfW2","level":3,"time":"2026-11-25T08:38:33+00:00","remoteAddr":"172.18.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/user3/","scriptName":"/remote.php","message":"Uncaught exception","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/35.2.0 Alpha 51","version":"36.0.0.2","exception":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"OC\\User\\DisabledUserException: Account disabled","Code":0,"Trace":[{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","line":179,"function":"check","class":"OCA\\DAV\\Connector\\Sabre\\Auth","type":"->"},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","line":135,"function":"check","class":"Sabre\\DAV\\Auth\\Plugin","type":"->"},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMethod","class":"Sabre\\DAV\\Auth\\Plugin","type":"->"},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Server.php","line":216,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/apps/dav/lib/Server.php","line":439,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":25,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/html/remote.php","line":158,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require"},{"file":"/var/www/html/lib/OC.php","line":1383,"function":"{closure}","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/remote.php","line":102,"function":"handleRequests","class":"OC","type":"::"}],"File":"/var/www/html/apps/dav/lib/Connector/Sabre/Auth.php","Line":122,"message":"Uncaught exception","CustomMessage":"Uncaught exception"},"id":"6b06a069f2d5d"}
Additional info
This is causing issue https://github.com/nextcloud/android/issues/18115 on the Android mobile app.
- 主要言語
- PHP
- スター
- 37.6k
- フォーク
- 5.4k
- 平均マージ
- 1日 13時間
- マージ済み PR(30日)
- 623
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextcloud/server のほかの issue
-
0. Needs triage 35-feedback bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
34-feedback
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
[Bug]: GET /js/../<anything> returns 500 (NotPermittedException from JsController::getJs) instead of 404対応中かも @lazerg が 7 日前に担当しました。 オープン35-feedback
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
[Bug]: Dashboard widgets registered via OCA.Dashboard.register() sometimes never mount (spinner forever) – Vue 3 non-deep `callbacks` watcher race対応中かも @lazerg が 7 日前に担当しました。 オープン35-feedback
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
nextcloud/server の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
sonata-project/SonataAdminBundle#8426 ·
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
erkamyaman/rust-anything#942 ·
メンテナーはふだん 1 日以内に返信
-
CPU core labels missing for Low-Power E-cores on hybrid Intel CPUs (Arrow Lake-H) — get_intel_core_types() ignores /sys/devices/cpu_lowpower対応中かも @dgongut が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信