perwendel / spark

A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin
Apache License 2.0
9.64k stars 1.56k forks source link

request.raw().getServletContext() returns null #940

Open wilerson opened 6 years ago

wilerson commented 6 years ago

Confirming that, as of 2.7.0, #295 still happens. Any combination when trying to retrieve the servlet context returns null, either from request.raw() or request.session().raw() or request.raw().getSession().

yisraelU commented 6 years ago

i can confirm too

WhatAKitty commented 6 years ago

@wilerson @yisraelU maybe you are not run from web container

joatmon commented 6 years ago

There is a fix for this issue in this PR: https://github.com/perwendel/spark/pull/983