Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-29721

Restrict possible characters in New Node Name during creation process (will prevent potential downstream parsing errors)

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • OS: Windows 7 x64 (master & slaves)
      JRE: 1.7.0_45
      Jenkins version 1.609.1 (LTS)
      Jenkins installed via native Windows installer
      Browser: Google Chrome Version 44.0.2403.107 m

      When adding a new node, Jenkins will happily let you have a name with brackets in it: '(' or ')'

      For example:

      However, if I try to set the restrict where job is run field and tie a job to the new node then there is a parsing error (invalid boolean expression: unexpected token).

      Error message:

      I suggest that the original node creation process prevents users from using reserved characters.

      or...

      The restrict where project can be run parsing logic is updated to handle the list of allowed characters.

      Thanks!

            Unassigned Unassigned
            kalenwatermeyer Kalen Watermeyer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: