Skip to content

[JENKINS-23437] NPE when binding JSON form data without 'properties' field #23192

Description

@jenkins-infra-bot

When the "properties" element isn't specified in the JSON form blob the Job processing logic hits a NPE.

This could happen if a Custom project type uses a form that overrides Job's configure.jelly, or if another tool is used to produce the JSON message.

FWIW, I manipulated the JSON message to drop every other field without a problem processing the forms for FreeStyleProject and MatrixProject, "properties" was the only one I couldn't remove and have it do the right thing.

I have a PR to fix this here: https://jenkins.ci.cloudbees.com/job/core/job/jenkins-core/891/


Originally reported by mattmoor, imported from: NPE when binding JSON form data without 'properties' field
  • assignee: mattmoor
  • status: Resolved
  • priority: Minor
  • component(s): core
  • resolution: Fixed
  • resolved: 2014-10-25T15:44:06+00:00
  • votes: 0
  • watchers: 3
  • imported: 2025-11-24
Raw content of original issue

When the "properties" element isn't specified in the JSON form blob the Job processing logic hits a NPE.

This could happen if a Custom project type uses a form that overrides Job's configure.jelly, or if another tool is used to produce the JSON message.

FWIW, I manipulated the JSON message to drop every other field without a problem processing the forms for FreeStyleProject and MatrixProject, "properties" was the only one I couldn't remove and have it do the right thing.

I have a PR to fix this here: https://jenkins.ci.cloudbees.com/job/core/job/jenkins-core/891/

No activity

Activity on this issue will appear here.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions