[Proposal] Prevent silent configuration loss: Strict mode for RobustCollectionConverter (JENKINS-75864)

33 views
Skip to first unread message

Virendra Gadekar

unread,
Jan 3, 2026, 10:58:53 PM (6 days ago) Jan 3
to Jenkins Developers

Hi everyone,

I am investigating JENKINS-75864, a critical issue where RobustCollectionConverter silently drops collection items (such as BlockableBuildTriggerConfig) when their classes cannot be resolved during upgrade or boot.

Currently, the converter catches XStreamException and ignores the failing item to ensure Jenkins starts. However, if a save() is triggered (e.g., by a background migration task or user action) while the item is missing from memory, the configuration is permanently lost from disk.

I propose adding a system property (e.g., hudson.util.RobustCollectionConverter.failOnLoadError) to allow administrators to enforce "Strict Loading."

  • Default (False): Current behavior. Jenkins loads partially; data might be lost on save.

  • True: The converter re-throws the exception. The item (and likely the job) fails to load, but the config.xml on disk is preserved, allowing the admin to fix the plugin environment.

I am preparing a PR with this change. Is there any objection to introducing this opt-in safety valve?

Regards, @viru0909-dev

Jesse Glick

unread,
Jan 5, 2026, 9:13:35 AM (5 days ago) Jan 5
to jenkin...@googlegroups.com
On Sat, Jan 3, 2026 at 10:59 PM Virendra Gadekar <gadekarv...@gmail.com> wrote:

RobustCollectionConverter silently drops collection items (such as BlockableBuildTriggerConfig) when their classes cannot be resolved during upgrade or boot.

It is not silent; there is an admin monitor warning you of the missing entries.

Code which treats items as critical for security purposes disables this system and throws up the error.

I think you are referring to freestyle projects using https://plugins.jenkins.io/parameterized-trigger/? I would suggest using Pipeline instead.

CONFIDENTIALITY NOTICE: This email and any attachments contain confidential and proprietary information of CloudBees intended only for the named recipient(s). Unauthorized use or distribution is prohibited. If you received this in error, please notify the sender and delete this email.
Reply all
Reply to author
Forward
0 new messages