Skip to content

fix(files_external): Declare user_certificate_scan in config lexicon - #67686

Open
kukanggg89 wants to merge 1 commit into
nextcloud:masterfrom
kukanggg89:fix-config-lexicon-user-certificate-scan-67507
Open

kukanggg89 wants to merge 1 commit into
nextcloud:masterfrom
kukanggg89:fix-config-lexicon-user-certificate-scan-67507

Conversation

@kukanggg89

Copy link
Copy Markdown
Contributor

Summary

The files_external config lexicon runs with Strictness::NOTICE, but user_certificate_scan was 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::STRING entry 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 ConfigLexiconTest asserts the key is declared as STRING with the default ''.

TODO

None.

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Tests (unit, integration, api and/or acceptance) are included
  • Screenshots before/after for front-end changes (n/a: no front-end change)
  • Documentation (manuals or wiki) has been updated or is not required (n/a: bugfix, no user-facing behavior change beyond the fix)
  • Backports requested where applicable (ex: critical bugfixes) (n/a: bugfix, not critical)
  • Labels added where applicable (ex: bug/enhancement, 3. to review, feature component) (n/a: maintainers set labels)
  • Milestone added for target branch/version (ex: 32.x for 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 Entry API in lib/public/Config/Lexicon/Entry.php: STRING type with a '' default matches what the readers and writers already pass.

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
kukanggg89 requested a review from a team as a code owner December 4, 2026 07:34
@kukanggg89
kukanggg89 requested review from GhassenKefi and vlotysh and removed request for a team December 4, 2026 07:34

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

files_external/user_certificate_scan is missing from the config lexicon

1 participant