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

Obtain username that made call to url

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      In the support core plugin we currently obtain the url that made a slow-request call. We should also be able to record the user who made the request. If someone makes a request to `JENKINS_URL/api/xml`, we should record that information.

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          Referer might be useful as well if not already recorded. Some API use is due to plugins (one of the wall displays does that) so users might not even be aware of that.

          Show
          danielbeck Daniel Beck added a comment - Referer might be useful as well if not already recorded. Some API use is due to plugins (one of the wall displays does that) so users might not even be aware of that.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: christ66
          Path:
          src/main/java/com/cloudbees/jenkins/support/slowrequest/InflightRequest.java
          src/test/java/com/cloudbees/jenkins/support/slowrequest/InflightRequestTest.java
          http://jenkins-ci.org/commit/support-core-plugin/162e89f7d4ad6f579d84543fe549eaa077c3708d
          Log:
          JENKINS-24671 Add username making the HTTP request, and add the referer http header.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: christ66 Path: src/main/java/com/cloudbees/jenkins/support/slowrequest/InflightRequest.java src/test/java/com/cloudbees/jenkins/support/slowrequest/InflightRequestTest.java http://jenkins-ci.org/commit/support-core-plugin/162e89f7d4ad6f579d84543fe549eaa077c3708d Log: JENKINS-24671 Add username making the HTTP request, and add the referer http header.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Steven Christou
          Path:
          src/main/java/com/cloudbees/jenkins/support/slowrequest/InflightRequest.java
          src/test/java/com/cloudbees/jenkins/support/slowrequest/InflightRequestTest.java
          http://jenkins-ci.org/commit/support-core-plugin/6af72162ceba9216abf535aed90d0d3de17684aa
          Log:
          Merge pull request #33 from christ66/JENKINS-24671

          JENKINS-24671 Add username and referrer to slow-requests

          Compare: https://github.com/jenkinsci/support-core-plugin/compare/040f5a1e04ae...6af72162ceba

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Steven Christou Path: src/main/java/com/cloudbees/jenkins/support/slowrequest/InflightRequest.java src/test/java/com/cloudbees/jenkins/support/slowrequest/InflightRequestTest.java http://jenkins-ci.org/commit/support-core-plugin/6af72162ceba9216abf535aed90d0d3de17684aa Log: Merge pull request #33 from christ66/ JENKINS-24671 JENKINS-24671 Add username and referrer to slow-requests Compare: https://github.com/jenkinsci/support-core-plugin/compare/040f5a1e04ae...6af72162ceba
          Hide
          schristou Steven Christou added a comment -

          Fixed in PR 33

          Show
          schristou Steven Christou added a comment - Fixed in PR 33

            People

            • Assignee:
              schristou Steven Christou
              Reporter:
              schristou Steven Christou
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: