[AAA-232] WebInitializer failure with web-jetty-impl Created: 12/Sep/22 Updated: 19/Sep/22 Resolved: 16/Sep/22 |
|
| Status: | Resolved |
| Project: | aaa |
| Component/s: | General |
| Affects Version/s: | 0.16.0, 0.16.1 |
| Fix Version/s: | 0.16.2 |
| Type: | Bug | Priority: | Medium |
| Reporter: | Peter Suna | Assignee: | Oleksandr Zharov |
| Resolution: | Done | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Description |
|
Initialization of rfc8040 WebInitializer fails with Error: Caused by: java.lang.IllegalArgumentException: Servlet Spec 12.2 violation: path spec must start with "/" or "*.": bad spec "rests/*" at org.eclipse.jetty.http.pathmap.ServletPathSpec.assertValidServletPathSpec(ServletPathSpec.java:175) at org.eclipse.jetty.http.pathmap.ServletPathSpec.<init>(ServletPathSpec.java:56) at org.eclipse.jetty.servlet.ServletHandler.updateMappings(ServletHandler.java:1424) at org.eclipse.jetty.servlet.ServletHandler.doStart(ServletHandler.java:164) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97) at org.eclipse.jetty.server.handler.ScopedHandler.doStart(ScopedHandler.java:120) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:975) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:375) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916) at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) at org.opendaylight.aaa.web.jetty.JettyWebServer.restart(JettyWebServer.java:137) at org.opendaylight.aaa.web.jetty.JettyWebServer.registerWebContext(JettyWebServer.java:129) at org.opendaylight.restconf.nb.rfc8040.web.WebInitializer.<init>(WebInitializer.java:84) https://javaee.github.io/servlet-spec/downloads/servlet-4.0/servlet-4_0_FINAL.pdf
|
| Comments |
| Comment by Robert Varga [ 13/Sep/22 ] |
|
So the web-api spec is not laid out here and osgi-impl ensures the patterns start with a slash. Hence this needs a fix on the jetty-impl side. At some point the builders should enforce proper values, but that's something for another day. |