integrity:check-core reports FILE_MISSING for the mimetypelist.js test fixture in QA builds
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
lib/private/IntegrityCheck/Iterator/ExcludeFileByNameFilterIterator.php の 66 行目付近にある除外パターンから始め、公開された complete-qa build で occ integrity:check-core を使って再現します。Verifier が除外したパスと、issue に記載されている Signer の動作を比較します。server-root/mimetypelist.js が除外されたままであり、tests/data の integritycheck fixture が署名・チェックされ、FILE_MISSING として報告されなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
occ integrity:check-core reports FILE_MISSING on the QA variants only
(owncloud-11.0.0-qa, owncloud-complete-20260730-qa) for:
tests/data/integritycheck/app/core/js/mimetypelist.js
expected: 27c74670adb750...830763fd
current:
Non-QA variants are INTACT — they ship no tests/ directory, so the path
never exists.
Root cause: signer/verifier exclusion asymmetry
ExcludeFileByNameFilterIterator excludes by a path-suffix regex
(lib/private/IntegrityCheck/Iterator/ExcludeFileByNameFilterIterator.php:66):
private $excludedFilePathPatterns = [
'|/core/js/mimetypelist.js$|', // regenerable via occ maintenance:mimetype:update-js
];
That regex is meant to exempt the one regenerable file at the server root, but
$ -anchored suffix matching also hits the integritycheck test fixture:
/srv/owncloud/tests/data/integritycheck/app/core/js/mimetypelist.js match=1
/srv/owncloud/core/js/mimetypelist.js match=1
The signer (ocsign) excludes the exact path core/js/mimetypelist.js, so it
signs the fixture and omits the real one. Verified in the published
v11.0.0 complete-qa manifest:
core/js/mimetypelist.jsin manifest: falsetests/data/integritycheck/app/core/js/mimetypelist.jsin manifest: true
So the verifier skips on disk exactly the file the signer put in the manifest →
FILE_MISSING.
Impact
Cosmetic-but-loud for QA builds: hasPassedCheck() treats FILE_MISSING as a
failure, so QA installs show a code-integrity warning. No cryptographic issue —
the envelope itself verifies: all 57 scopes in the published v11.0.0
complete-qa tarball pass ECDSA-P384/SHA-384 over the verbatim hashes bytes,
leaf CN == scope id, chain to root-g2, and 0 manifest-vs-disk diffs on a
pristine extraction.
Not a 11.0.0 regression — v11.0.0-rc3's complete-qa tarball reproduces it
identically, and the exclusion has been in place since 0f29535218.
Suggested fix
Align the two sides. Either anchor the verifier pattern to the server root so it
matches only the real file, e.g.
'|^' . preg_quote($root, '|') . '/core/js/mimetypelist\.js$|'
(the iterator already receives $root), or have the signer apply the same
suffix rule. Anchoring the verifier is the narrower change and keeps the fixture
signed and checked.
Reproduce
gh release download v11.0.0 --repo owncloud/core -p 'owncloud-complete-20260730-qa.tar.bz2'
tar xjf owncloud-complete-20260730-qa.tar.bz2
# install, then:
occ integrity:check-core
- 主要言語
- PHP
- スター
- 8.8k
- フォーク
- 2.1k
- 平均マージ
- 19時間 32分
- マージ済み PR(30日)
- 56
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
owncloud/core のほかの issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
discussion Type:Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
owncloud/core#37653 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
Automattic/static-site-importer#3129 ·
メンテナーはふだん 1 日以内に返信
-
Group 2 - Data Storage | Tripal DBX | Chado Group 5 - Search | ElasticSearch | Views Priority - Medium
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
category::bug code priority::normal
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
e0ipso/simple_oauth_21#58 ·
メンテナーはふだん 1 日以内に返信
-
nginx update required due to NGINX2Root対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
mailcow/mailcow-dockerized#7668 · コメント 5 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信