Commit 9b4dbdd
Replace LegacyCatchAllController with direct handler mappings
Instead of routing all requests through a catch-all controller that
manually dispatches based on file extension, use Spring's
SimpleUrlHandlerMapping with pattern-based mappings:
- /**/*.htm -> springController (UrlFilenameViewController)
- /**/*.portlet -> portletController (generic)
- /**/*.field -> fieldGenController
- Specific portlet patterns -> dedicated portlet controllers
This fixes included request handling (pageContext.include) since
Spring's handler mapping correctly uses jakarta.servlet.include.*
attributes, whereas LegacyCatchAllController used request.getRequestURI()
which returns the original request URI during includes.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent c957848 commit 9b4dbdd
File tree
2 files changed
+15
-165
lines changed- omod/src/main
- java/org/openmrs/web/controller
- resources
2 files changed
+15
-165
lines changedLines changed: 0 additions & 148 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
127 | 140 | | |
128 | 141 | | |
129 | 142 | | |
130 | | - | |
131 | | - | |
132 | 143 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 144 | + | |
147 | 145 | | |
148 | 146 | | |
149 | 147 | | |
| |||
0 commit comments