Repository navigation
fix(files_external): Declare user_certificate_scan in config lexicon - #67686
Open
kukanggg89 wants to merge 1 commit into
Open
kukanggg89 wants to merge 1 commit into
kukanggg89 wants to merge 1 commit into
Conversation
The files_external config lexicon uses Strictness::NOTICE, but the user_certificate_scan key was never declared in it, even though the setup check reads it and the background job and repair step write it. Every setup check run logged that the key is not defined in the config lexicon. Declare it as a ValueType::STRING entry with the default ''. The readers and writers already pass strings: the setup check reads with default '', the background job writes a JSON-encoded list or deletes the key, and the repair step writes 'not-run-yet', so no accessor change is needed. Adds a unit test asserting the key is declared as STRING with the default ''. Fixes nextcloud#67507 Signed-off-by: parel <farelalfarizi89@gmail.com> Assisted-by: Muse:Muse Spark 1.3
kukanggg89
requested review from
GhassenKefi and
vlotysh
and removed request for
a team
December 4, 2026 07:34
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The files_external config lexicon runs with
Strictness::NOTICE, butuser_certificate_scanwas never declared in it. The setup check reads the key on every run, so each run logged that the key is not defined in the config lexicon (see #57159).This adds the key as a
ValueType::STRINGentry with the default''. I checked the three places that touch the key and they already pass strings, so nothing else changes: the setup check reads it with the default'', the background job writes a JSON-encoded list of paths or deletes the key when the list is empty, and the repair step writes'not-run-yet'while the scan is pending.A new
ConfigLexiconTestasserts the key is declared asSTRINGwith the default''.TODO
None.
Checklist
3. to review, feature component) (n/a: maintainers set labels)stable32) (n/a: maintainers set the milestone)AI (if applicable)
Drafted with help from Claude. I reviewed and revised every change myself before opening this PR.
Verification
The new test was not run locally, there is no PHP on the machine this change was made on, so CI has to run it. The entry was checked against the
EntryAPI inlib/public/Config/Lexicon/Entry.php:STRINGtype with a''default matches what the readers and writers already pass.