Skip to content

FlashMap's cannot be easily serialized by means other than java serialization [SPR-12757] #17354

@spring-projects-issues

Description

@spring-projects-issues

Jelmer Kuperus opened SPR-12757 and commented

Currently it is not easy to serialize a org.springframework.web.servlet.FlashMap using anything other than regular java serialization or frameworks that use reflective field access

The problem is that the expirationStartTime and timeToLive fields can only be set by invoking startExpirationPeriod.

So suppose that I wanted to serialize this object to a json object to store in a cookie then i would not be able to do this

Using java serialization in this context would be ill advised as this post points out

http://stackoverflow.com/questions/19054460/what-is-the-security-impact-of-deserializing-untrusted-data-in-java


Affects: 4.1.5

Issue Links:

Referenced from: commits 83ff0ad

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions