Skip to content

[JENKINS-2360] Spaces in axis value is lost on reconfiguration #337

Closed

Description

@jenkins-infra-bot

It seems that if an axis value contains a space, the next time the configuration
is read it is parsed as two values.

Steps to reproduce
1. Create a matrix job
2. Create an axis
3. Enter "Debug Code1", "Debug Code2" as values in the axis. Note that you must
have " around each value otherwise it will not work.
4. Save
5 Verify that there are only 2 axes displayed in the page
6. Re-open the configuration page
7. Save

Expected outcome:
There should only be two axes displayed in the status page

Actual outcome:
There are 4 axes displayed


Originally reported by redsolo, imported from: Spaces in axis value is lost on reconfiguration
  • assignee: mindless
  • status: Closed
  • priority: Critical
  • component(s): matrix-project-plugin
  • resolution: Fixed
  • resolved: 2009-11-16T10:41:40+00:00
  • votes: 0
  • watchers: 0
  • imported: 2025-12-06
Raw content of original issue

It seems that if an axis value contains a space, the next time the configuration is read it is parsed as two values.

Steps to reproduce 1. Create a matrix job 2. Create an axis 3. Enter "Debug Code1", "Debug Code2" as values in the axis. Note that you must have " around each value otherwise it will not work. 4. Save 5 Verify that there are only 2 axes displayed in the page 6. Re-open the configuration page 7. Save

Expected outcome: There should only be two axes displayed in the status page

Actual outcome: There are 4 axes displayed

  • environment: Platform: All, OS: All

Activity

  1. jenkins-infra-bot commented on Nov 16, 2009

    @jenkins-infra-bot
    Author
    mindless:
    • Comment link
    • Original comment link (no redirect)
    • Raw content of original comment:

      heh, it is undocumented that quotes work here in the first place! I'll fix this and update the help text too.

    heh, it is undocumented that quotes work here in the first place! I'll fix this
    and update the help text too.

  2. jenkins-infra-bot commented on Nov 16, 2009

    @jenkins-infra-bot
    Author
    scm_issue_link:
    • Comment link
    • Original comment link (no redirect)
    • Raw content of original comment:

      Code changed in hudson User: : mindless Path: trunk/hudson/main/core/src/main/java/hudson/matrix/Axis.java trunk/hudson/main/war/resources/help/matrix/axis-value.html trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=23757 Log: [FIXED JENKINS-2360] Space in axis value for matrix project was lost on reconfiguration

    Code changed in hudson
    User: : mindless
    Path:
    trunk/hudson/main/core/src/main/java/hudson/matrix/Axis.java
    trunk/hudson/main/war/resources/help/matrix/axis-value.html
    trunk/www/changelog.html
    http://fisheye4.cenqua.com/changelog/hudson/?cs=23757
    Log:
    [FIXED JENKINS-2360] Space in axis value for matrix project was lost on reconfiguration

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