Skip to content

Changed the handleSessionExpired logic to return a 404 instead of a 410 and added the no-cache parameter to the reply.#11556

Merged
ZheSun88 merged 1 commit intovaadin:masterfrom
edler-san:issues4417
May 2, 2019
Merged

Changed the handleSessionExpired logic to return a 404 instead of a 410 and added the no-cache parameter to the reply.#11556
ZheSun88 merged 1 commit intovaadin:masterfrom
edler-san:issues4417

Conversation

@edler-san
Copy link
Copy Markdown
Contributor

@edler-san edler-san commented May 2, 2019

Fixes #4417


This change is Reviewable

…10. Also added the no-cache parameter to the reply.

See #4417 for discussion.
@ZheSun88 ZheSun88 added this to the 8.9.0 milestone May 2, 2019
Copy link
Copy Markdown
Contributor

@ZheSun88 ZheSun88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@ZheSun88 ZheSun88 merged commit 5fa1441 into vaadin:master May 2, 2019
ZheSun88 pushed a commit that referenced this pull request Aug 7, 2019
…10 and added the no-cache parameter to the reply. (#11556)

* Changed the handleSessionExpired logic to return a 404 instead of a 410. Also added the no-cache parameter to the reply.
See #4417 for discussion.
@ZheSun88 ZheSun88 modified the milestones: 8.9.0, 8.8.6 Aug 7, 2019
ZheSun88 pushed a commit that referenced this pull request Aug 8, 2019
…10 and added the no-cache parameter to the reply. (#11556)

* Changed the handleSessionExpired logic to return a 404 instead of a 410. Also added the no-cache parameter to the reply.
See #4417 for discussion.
@ghost
Copy link
Copy Markdown

ghost commented Jan 6, 2020

There's a problem with this PR: the client behaves differently for 410 and 404: https://github.com/vaadin/framework/blob/master/client/src/main/java/com/vaadin/client/communication/DefaultConnectionStateHandler.java#L149-L156

(Also, there is another place which still returns 410 when the session is expired: https://github.com/vaadin/framework/blob/master/server/src/main/java/com/vaadin/server/VaadinService.java#L1762)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Heartbeat should respond 404, not 410, when session expired

2 participants