[MAGNOLIA-1520] WebContextImpl does not handle Anonymous user Created: 09/May/07  Updated: 23/Jan/13  Resolved: 14/May/07

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 3.1 M1
Fix Version/s: 3.1 M2

Type: Task Priority: Critical
Reporter: Sameer Charles Assignee: Sameer Charles
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoR:
Empty

 Description   

WebContextImpl either uses Httpsession as a container for repository managers or it creates these objects on each call to the method if you are not logged-in, which degrades the performance on live instance where sessions are not kept.

Possible sollution:

  • Implement AnonymousContext extending WebContextImpl
  • ContextFilter should always set current context to Anonymous
  • switch to WebContext in LoginFilter if request is authenticated

Generated at Mon Feb 12 03:27:42 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.