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

Parameterized Remote Trigger Plugin Invalid character found in the request target, Square Brackets need encoding

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • Jenkins ver. 2.176.3
      Plugin Parameterized-Remote-Trigger:3.0.9

      A good explanation found in https://programmer.help/blogs/characters-are-defined-in-rfc-7230-and-rfc-3986.html

       

      Our remote Jenkins runs inside Tomcat, after Tomcat upgraded, Jobs can not be triggerred remotely anymore.

       

      We used a hacky workaround which temporarily solved this issue by simply replace [ with %5B and ] with %5D in remoteJobUrl in 

      src/main/java/org/jenkinsci/plugins/ParameterizedRemoteTrigger/RemoteBuildConfiguration.java

       

          [JENKINS-59456] Parameterized Remote Trigger Plugin Invalid character found in the request target, Square Brackets need encoding

          Robert Platt added a comment -

          After a Tomcat upgrade, this affected us too.

          As a workaround, we added {{relaxedQueryChars="[,]" }}in the remote Tomcat's server.xml

          Robert Platt added a comment - After a Tomcat upgrade, this affected us too. As a workaround, we added {{relaxedQueryChars=" [,] " }}in the remote Tomcat's server.xml

          Fixed in b44fb12 , will be included in next release.

          BTW, plattro, thanks for your mail & solution.

          KaiHsiang Chang added a comment - Fixed in b44fb12 , will be included in next release. BTW, plattro , thanks for your mail & solution.

          Fixed in b44fb12

          KaiHsiang Chang added a comment - Fixed in  b44fb12

          fixed & released

          KaiHsiang Chang added a comment - fixed & released

            cashlalala KaiHsiang Chang
            garyjyao Gary Yao
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: