[MGNLCACHE-358] Bug in CacheResponseWrapper causes ClassCastExceptions Created: 11/Jan/24  Updated: 22/Jan/24  Resolved: 18/Jan/24

Status: Closed
Project: Cache Modules
Component/s: None
Affects Version/s: 5.9.9
Fix Version/s: 6.0.0, 5.9.11

Type: Bug Priority: Neutral
Reporter: Philipp Gaschuetz Assignee: Oanh Thai Hoang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 0.5d
Original Estimate: Not Specified

Issue Links:
relation
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Release notes required:
Yes
Date of First Response:
Epic Link: Support
Team: DeveloperX
Work Started:

 Description   

Steps to reproduce

  1. use setDateHeader or setIntHeader on a CacheResponseWrapper Object to add a non-String value to the headers
  2. call #getHeaders(String)

Expected results

get a Collection of String values

Actual results

ClassCastException

Workaround

none

Development notes

A PR has been created at https://git.magnolia-cms.com/projects/MODULES/repos/cache/pull-requests/163/overview


Generated at Sun Feb 11 23:54:38 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.