Skip to content

[JENKINS-7138] Persist matrix-based security settings in a consistent order #19731

Closed

Description

@jenkins-infra-bot

When "Matrix-based security" or "Project-based Matrix Authorization Strategy" authorization is selected, the permissions are persisted in a different order on each save.

Storing them in a consistent order would make it easier to read diffs of config.xml.


Originally reported by stevengbrown, imported from: Persist matrix-based security settings in a consistent order
  • assignee: stevengbrown
  • status: Closed
  • priority: Minor
  • component(s): core
  • resolution: Fixed
  • resolved: 2010-08-05T07:41:05+00:00
  • votes: 0
  • watchers: 0
  • imported: 2025-11-24
Raw content of original issue

When "Matrix-based security" or "Project-based Matrix Authorization Strategy" authorization is selected, the permissions are persisted in a different order on each save.

Storing them in a consistent order would make it easier to read diffs of config.xml.

  • environment: Hudson 1.369

Activity

  1. jenkins-infra-bot commented on Aug 5, 2010

    @jenkins-infra-bot
    Author
    scm_issue_link:
    • Original comment link
    • Raw content of original comment:

      Code changed in hudson User: : StevenGBrown Path: trunk/hudson/main/core/src/main/java/hudson/security/GlobalMatrixAuthorizationStrategy.java trunk/hudson/main/core/src/main/java/hudson/security/Permission.java trunk/www/changelog.html http://jenkins-ci.org/commit/33594 Log: [FIXED JENKINS-7138] GlobalMatrixAuthorizationStrategy (and ProjectMatrixAuthorizationStrategy since it subclasses the Converter) now sorts the permissions before persisting them.

    Code changed in hudson
    User: : StevenGBrown
    Path:
    trunk/hudson/main/core/src/main/java/hudson/security/GlobalMatrixAuthorizationStrategy.java
    trunk/hudson/main/core/src/main/java/hudson/security/Permission.java
    trunk/www/changelog.html
    http://jenkins-ci.org/commit/33594
    Log:
    [FIXED JENKINS-7138] GlobalMatrixAuthorizationStrategy (and ProjectMatrixAuthorizationStrategy since it subclasses the Converter) now sorts the permissions before persisting them.

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions