jetty / jetty/jetty.project

Multiple filter-mappings for same filter with overlapping url-patterns and/or servlet-names

Open
#4,899 1 comment 0 reactions 0 assignees View on GitHub
Specification
Dominant language
Java
Stars
4.1k
Forks
2k
Avg merge
3d 56m
Merged PRs (30d)
48

Description

The Servlet Spec is unclear on how to handle multiple filter-mappings for the same filter that have overlapping url-patterns and or servlet-names.

See issue https://github.com/eclipse-ee4j/servlet-api/issues/52 and issue https://github.com/eclipse-ee4j/servlet-api/issues/318.

As described in [servlet api issue 52](https://github.com/eclipse-ee4j/servlet-api/issues/52), the current behaviour of jetty is:

> If you define a single filter mapping with multiple url-patterns \[as the example above\], we will only apply the filter once. If, however, you defined different filter mappings for each url-pattern, we would apply the filter once for each mapping. Obviously consistent behaviour would be desirable.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.