Skip to content

Conversation

@sergio-d-lemos
Copy link
Contributor

This PR removes the dependency on Spring MVC and does some clean ups in the Web Console. Apologize for the long PR.

  • spring-context is used to inject beams into the context
  • Created the ActionServlet which plays the role of the DispatcherServlet (from spring-webmvc)
  • Removed the applicationContext because I could not find any JSP page using it
  • Moved CSRF validation to its own Filter
  • Minor clean ups here and there

I tested each page using Chrome and did some sanity tests using Firefox. I was unable to test running the console on an OSGI container, but I can test if we think is necessary.

@mattrpav mattrpav changed the title [AMQ-9798] Refactored Web Console and removed dependency on Spring-MVC. WIP: [AMQ-9798] Refactored Web Console and removed dependency on Spring-MVC. Oct 27, 2025
@mattrpav mattrpav self-requested a review October 27, 2025 17:53
@kenliao94
Copy link
Contributor

kenliao94 commented Oct 28, 2025

Can we also write some tests for the change?

Great initiative!

@sergio-d-lemos
Copy link
Contributor Author

Can we also write some tests for the change?

Great initiative!

Yes, if we don't need any major change to the PR I will include some unit tests. At least for the classes I've added

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.

2 participants