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

BuildWithParameters - parameter values disappear if user is not logged in

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • core
    • None
    • All

    Description

      We generate test reports with links to run one of our Hudson jobs using URLs like:

      http://<hudson_server>/job/<job-name>/buildWithParameters?Var1=..%255Cqdirname&Var2=dirname%255Cimgname&Var3=filename&Var4=A+comment+here

      This works perfectly if the user who clicks the link to run the job is already logged into Hudson, but if that person isn't logged in, they'll be redirected to the login page. Once they've logged in, the build starts, but the values that were passed in the URI are no longer accessible.

      For example, if we have this in "Execute Shell":

      echo "Calling: python run_job.py \"$Var1\" \"$Var2\" \"$Var3\" \"$Var4\""

      We get this in the console output:

      + echo 'Calling: python run_job.py "" "" "" ""'
      Calling: python run_job.py "" "" "" ""

      Please let me know if I can provide any more relevant information.

      Attachments

        Activity

          Code changed in jenkins
          User: OHTAKE Tomohiro
          Path:
          changelog.html
          core/src/main/java/hudson/security/HudsonAuthenticationEntryPoint.java
          http://jenkins-ci.org/commit/jenkins/74d2607b8de4df3ecf99effcfe71d66fbbce1694
          Log:
          [FIXED JENKINS-7894] Prevent parameter values from disappearing when user is not logged in

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: OHTAKE Tomohiro Path: changelog.html core/src/main/java/hudson/security/HudsonAuthenticationEntryPoint.java http://jenkins-ci.org/commit/jenkins/74d2607b8de4df3ecf99effcfe71d66fbbce1694 Log: [FIXED JENKINS-7894] Prevent parameter values from disappearing when user is not logged in
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #1856
          [FIXED JENKINS-7894] Prevent parameter values from disappearing when user is not logged in (Revision 74d2607b8de4df3ecf99effcfe71d66fbbce1694)

          Result = UNSTABLE
          ohtake.tomohiro : 74d2607b8de4df3ecf99effcfe71d66fbbce1694
          Files :

          • core/src/main/java/hudson/security/HudsonAuthenticationEntryPoint.java
          • changelog.html
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #1856 [FIXED JENKINS-7894] Prevent parameter values from disappearing when user is not logged in (Revision 74d2607b8de4df3ecf99effcfe71d66fbbce1694) Result = UNSTABLE ohtake.tomohiro : 74d2607b8de4df3ecf99effcfe71d66fbbce1694 Files : core/src/main/java/hudson/security/HudsonAuthenticationEntryPoint.java changelog.html

          People

            ohtake_tomohiro OHTAKE Tomohiro
            pauljandrew pauljandrew
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: