jenkinsci / jenkinsci/junit-plugin

[JENKINS-55828] impossible to switch test trend graph type due to duplicate cookie value

Open
#1,124 1 comment 0 reactions 0 assignees View on GitHub
component:junit-plugin enhancement imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
87
Forks
351
Avg merge
1d 19h
Merged PRs (30d)
2

Description

For one of the freestyle jobs on our local Jenkins install, I clicked the "only show failures" link beneath the unit-test trend graph. This worked as expected. Clicking the "show test# and failure#" link does NOT bring back the default view.

I tried to test a bit locally what could be the cause and found this:

// In IE11 developer tools console:

document.cookie
"TestResultAction_failureOnly=true; TestResultAction_failureOnly=false; jenkins-timestamper-offset=-3600000; jenkins-timestamper=system; jenkins-timestamper-local=true; screenResolution=1920x1080"

So, there are 2 key-value pairs stored related to the setting of this graph, with an identical key. One is set to true, one is set to false. It seems setting the value goes to one of the keys, while reading the value uses the other key...

---
Originally reported by pjaytycy, imported from: impossible to switch test trend graph type due to duplicate cookie value


  • status: Open
  • priority: Major
  • component(s): junit-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-11-26

Raw content of original issue

For one of the freestyle jobs on our local Jenkins install, I clicked the "only show failures" link beneath the unit-test trend graph. This worked as expected. Clicking the "show test# and failure#" link does NOT bring back the default view.

I tried to test a bit locally what could be the cause and found this:


// In IE11 developer tools console:

document.cookie
"TestResultAction_failureOnly=true; TestResultAction_failureOnly=false; jenkins-timestamper-offset=-3600000; jenkins-timestamper=system; jenkins-timestamper-local=true; screenResolution=1920x1080"

So, there are 2 key-value pairs stored related to the setting of this graph, with an identical key. One is set to true, one is set to false. It seems setting the value goes to one of the keys, while reading the value uses the other key...

environment

```
Internet Explorer 11.0.9600.19236

url = http://<local-jenkins-hostname>/job/<jobname>/

Jenkins 2.162 (classic UI)

xUnit plugin 2.3.2
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the test trend graph toggle in the classic UI, using the reported IE11 behavior and the document.cookie output as the entry point. Inspect how the “only show failures” and “show test# and failure#” links read and write TestResultAction_failureOnly; done means switching links leaves one effective cookie value and restores the default graph view.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.