Skip to content

add async support to all non-deprecated filters#293

Closed
dvayanu wants to merge 123 commits into
masterfrom
develop
Closed

add async support to all non-deprecated filters#293
dvayanu wants to merge 123 commits into
masterfrom
develop

Conversation

@dvayanu

@dvayanu dvayanu commented Jun 19, 2026

Copy link
Copy Markdown
Member

Summary

  • Added <async-supported>true</async-supported> to all filter declarations in moskito-web/src/main/resources/META-INF/web-fragment.xml — the primary fix for apps that embed the JAR via web-fragment auto-registration
  • Added @WebFilter(asyncSupported = true) to all active (non-deprecated) filter classes for annotation-scanning / @ServletComponentScan deployments
  • Added registrationBean.setAsyncSupported(true) to every FilterRegistrationBean in both moskito-springboot and moskito-springboot2 auto-configurations
  • Deprecated filters (DomainFilter, MethodFilter, RefererFilter, RequestURIFilter, UserAgentFilter) intentionally excluded

Without these changes, any filter in the chain that does not declare async support causes the servlet container to throw an IllegalStateException when a downstream endpoint (e.g. SSE/MCP) calls request.startAsync().

Test plan

  • Deploy an app using the moskito-web JAR and verify an SSE or async endpoint passes through the filter chain without IllegalStateException
  • Verify Spring Boot auto-configuration registers filters with asyncSupported = true
  • Confirm existing synchronous request monitoring still works correctly

🤖 Generated with Claude Code

dependabot Bot and others added 30 commits December 10, 2022 02:22
Bumps [spring-web](https://github.com/spring-projects/spring-framework) from 4.2.5.RELEASE to 6.0.0.
- [Release notes](https://github.com/spring-projects/spring-framework/releases)
- [Commits](spring-projects/spring-framework@v4.2.5.RELEASE...v6.0.0)

---
updated-dependencies:
- dependency-name: org.springframework:spring-web
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [spring-web](https://github.com/spring-projects/spring-framework) from 5.3.14 to 6.0.0.
- [Release notes](https://github.com/spring-projects/spring-framework/releases)
- [Commits](spring-projects/spring-framework@v5.3.14...v6.0.0)

---
updated-dependencies:
- dependency-name: org.springframework:spring-web
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
# Conflicts:
#	moskito-core/pom.xml
#	moskito-webui/pom.xml
# Conflicts:
#	moskito-aop/pom.xml
#	moskito-core/pom.xml
#	moskito-extensions/moskito-additional-producers/pom.xml
#	moskito-extensions/moskito-disk-space-monitoring/pom.xml
#	moskito-extensions/moskito-mongodb/pom.xml
#	moskito-extensions/moskito-monitoring-plugin/pom.xml
#	moskito-extensions/moskito-notification-providers/pom.xml
#	moskito-extensions/moskito-php/pom.xml
#	moskito-extensions/moskito-saas/pom.xml
#	moskito-extensions/moskito-sampling-api/pom.xml
#	moskito-extensions/pom.xml
#	moskito-inspect-standalone/pom.xml
#	moskito-integration/moskito-cdi/pom.xml
#	moskito-integration/moskito-ehcache/pom.xml
#	moskito-integration/moskito-inspect-embedded/pom.xml
#	moskito-integration/moskito-inspect-jersey/pom.xml
#	moskito-integration/moskito-inspect-remote/pom.xml
#	moskito-integration/moskito-springboot/pom.xml
#	moskito-integration/moskito-springboot2/pom.xml
#	moskito-integration/moskito-sql/pom.xml
#	moskito-integration/pom.xml
#	moskito-web/pom.xml
#	moskito-webui/pom.xml
#	pom.xml
Utility to monitor collection sizes
Issue #275: Utility to monitor collection sizes
dvayanu and others added 27 commits November 17, 2025 20:49
Replaced Maven Central badge with MvnRepository badge.
…ot alerts

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…lert #30

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ng alert #59

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…rary noise

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…t alerts #28 #29

Closes #291

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ano-util 4.0.0→4.0.4, commons-codec 1.16.0→1.22.0, gson 2.10.1→2.14.0,
logback-classic 1.5.21→1.5.33, mockito-core 5.6.0→5.23.0,
aspectj 1.9.20→1.9.25.1, aspectj-maven-plugin 1.14.0→1.16.0,
maven-pmd-plugin 3.22.0→3.28.0

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Enables async servlet support across all active MoSKito filters so they
do not block async dispatch chains (e.g. SSE/MCP endpoints). Three
deployment paths are covered: web-fragment.xml (<async-supported>true),
@webfilter(asyncSupported=true) on each filter class, and
FilterRegistrationBean.setAsyncSupported(true) in the Spring Boot 1/2
auto-configurations. Deprecated filters are intentionally excluded.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@dvayanu

dvayanu commented Jun 19, 2026

Copy link
Copy Markdown
Member Author

Closing — wrong base branch. Re-opening as a feature branch PR targeting develop.

@dvayanu dvayanu closed this Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants