jenkinsci / jenkinsci/junit-plugin
[JENKINS-55828] impossible to switch test trend graph type due to duplicate cookie value
- 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
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
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