integrity:check-core reports FILE_MISSING for the mimetypelist.js test fixture in QA builds
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
Hướng nghiên cứu
Bắt đầu trong lib/private/IntegrityCheck/Iterator/ExcludeFileByNameFilterIterator.php tại pattern loại trừ quanh dòng 66, sau đó tái hiện bằng occ integrity:check-core trên build complete-qa đã phát hành. So sánh các path bị verifier loại trừ với hành vi của signer được mô tả trong issue. Hoàn tất khi server-root/mimetypelist.js vẫn bị loại trừ, trong khi fixture integritycheck trong tests/data được ký, kiểm tra và không còn được báo cáo là FILE_MISSING.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- PHP
- Star
- 8.8k
- Fork
- 2.1k
- Merge trung bình
- 19 giờ 32 phút
- Pull request đã merge (30 ngày)
- 56
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của owncloud/core
-
Activity page icons previewĐang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
discussion Type:Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
owncloud/core#37653 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của owncloud/core
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
linuxserver/Heimdall#1626 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Automattic/static-site-importer#3129 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Group 2 - Data Storage | Tripal DBX | Chado Group 5 - Search | ElasticSearch | Views Priority - Medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
category::bug code priority::normal
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
e0ipso/simple_oauth_21#58 ·
Maintainer thường phản hồi trong vòng 1 ngày