Hi, I have a Filter to add a HTTPONLY flag on the JSESSIONID cookie, where I got the following exception. Just wondering how do I add the flag before the response is committed.
[*INFO*] GCLOUD: java.lang.IllegalStateException: Response has already been committed [*INFO*] GCLOUD: at com.google.appengine.repackaged.com.google.common.base.Preconditions.checkState(Preconditions.java:501) [*INFO*] GCLOUD: at com.google.appengine.tools.development.ResponseRewriterFilter$ResponseWrapper.checkNotCommitted(ResponseRewriterFilter.java:627) [*INFO*] GCLOUD: at com.google.appengine.tools.development.ResponseRewriterFilter$ResponseWrapper.reset(ResponseRewriterFilter.java:606) [*INFO*] GCLOUD: at com.google.appengine.tools.development.jetty9.StaticFileUtils.passConditionalHeaders(StaticFileUtils.java:121) [*INFO*] GCLOUD: at com.google.appengine.tools.development.jetty9.LocalResourceFileServlet.doGet(LocalResourceFileServlet.java:175) [*INFO*] GCLOUD: at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) [*INFO*] GCLOUD: at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) Best, Baojun On Wed, Jun 6, 2018 at 8:57 PM, 'George (Cloud Platform Support)' via Google App Engine <[email protected]> wrote: > Hello Baojun, > > How did you determine that response headers are serialized? If this > happens in some cases, would you be able to indicate which such cases have > you been faced with? How can one reproduce this serialized header > situation? You may refer to the documentation, in particular the "Request > responses" sub-chapter > <https://cloud.google.com/appengine/docs/standard/python/reference/request-response-headers#request_responses> > of the "Request Headers and Responses" online document. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/google-appengine. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/google-appengine/6857926b-8603-46ec-8330- > bd08ce865658%40googlegroups.com > <https://groups.google.com/d/msgid/google-appengine/6857926b-8603-46ec-8330-bd08ce865658%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Baojun Xu Tel: +41 79 791 78 99 SolidusLink AG RĂ¼tistrasse 16 8952 Schlieren -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CAB65iqnTXrLaf9bL5W2nYhpZnJ%3D03_%2BiZbVrntTiy4-1R6pzQw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
