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

BuildWithParameters - parameter values disappear if user is not logged in

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      All
    • Similar Issues:

      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

          Hide
          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

          Show
          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
          Hide
          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
          Show
          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

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

              Dates

              Created:
              Updated:
              Resolved: