Skip to content

"disabled" flag calls doFilter twice #13

@aakoch

Description

@aakoch

If you set the filter's disabled field to false, the filter will call doFilter twice.

Example:

@Bean
protected TracingFilter tracingServerTimingFilter() {
    TracingFilter tracingFilter = new TracingFilter();
    tracingFilter.setDisabled(true);
    return tracingFilter;
}

This will cause an exception to be thrown too:
Caused by: java.lang.IllegalStateException: getWriter() has already been called for this response

Also, after adding this to my application, all my Ajax responses seem to have no content. I'm thinking something's wrong in the HttpServletResponseCopier class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions