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

NameEncoder.decode can introduce duplicate characters per build to name-utf8.txt

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • branch-api-plugin
    • None

      Summary
      Branch names with reserved URL characters in them, such as /, surface a bug in NameEncoder.decode(). Other characters can surface this bug too, such as ., .., and an empty space.

      It appears to only affect jobs which were migrated, back in the timeframe of JENKINS-41124. This hasn't been recreated on a "real" environment with post-41124 projects.

      Details
      With multibranch pipelines that have branch names including these reserved URL characters, such as the / in feature/branch-name, this method gets called as part of the creation of a file called name-utf8.txt, which defines the computed folders for the branch jobs containing these special characters. The bug causes this file to essentially double in size.

      The issue lies here.

            Unassigned Unassigned
            kshultz Karl Shultz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: