Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Serious issue in cookie max-age generation in Play 2.3.9 #4432

@alexdupre

Description

@alexdupre

With new version of play/netty (2.3.9/3.9.8) the generation of cookie max-age field is borked.

A simple controller like:

  def test = Action { request =>
    Ok.withCookies(Cookie("test", "look at maxAge", Some(2592000)))
  }

generates a response with a negative max-age:

HTTP/1.1 200 OK
Content-Length: 0
Set-Cookie: test=look at maxAge; Max-Age=-1702966; Expires=Tue, 21 Apr 2015 20:57:00 GMT; Path=/; HTTPOnly

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions