<div dir="ltr"><div><div><div>This is more discussion for WildFly forums <a href="https://community.jboss.org/en/wildfly">https://community.jboss.org/en/wildfly</a> not undertow dev list.<br></div>Anyhow, without knowing know your mappings are configured it is hard to help you.<br>
<br></div>Maybe you just have mapping bit wrong, as there is difference between &quot;/&quot; and &quot;/*&quot;<br><br>--<br></div>tomaz<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 29, 2014 at 3:43 PM, Ron Leisti <span dir="ltr">&lt;<a href="mailto:ron.leisti@gmail.com" target="_blank">ron.leisti@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">Hi,</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><span style="font-family:arial,sans-serif;font-size:13px">I&#39;ve encountered what seems like a but with the handling of welcome files.  I am using Undertow 1.0.0 included in Wildfly 8.0.0</span><div style="font-family:arial,sans-serif;font-size:13px">

<br></div><div style="font-family:arial,sans-serif;font-size:13px">If I don&#39;t create a servlet mapping for the URL &quot;/&quot;, then Undertow will automatically registers its own DefaultServlet as the mapping.  I would like &quot;/&quot; to automatically invoke a servlet that is mapped to some path like &quot;/foo&quot;.  I don&#39;t setup an explicit mapping because I don&#39;t want my servlet to be the default servlet, because I still want static resources to get resolved automatically.</div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">To get this to work, I create a welcome file entry &quot;foo&quot;.  However, I think Undertow is ignoring this mapping in this circumstance.  I&#39;ve done some debugging into Undertow and found that when the ServletPathMatchesData is created, the DefaultServlet is given an exact match &quot;/&quot; which forces requiredWelcomeFileMatch to false, (ServletPathMatchesData constructor) even if requiredWelcomeFileMatch was true for the DefaultServlet.  With requiredWelcomeFileMatch=false, the welcome file logic is skipped and control is given to the default servlet, which simply returns a 404 for &quot;/&quot;.</div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Is my logic just flawed, or is this a bug?</div><div style="font-family:arial,sans-serif;font-size:13px">

<br></div><div style="font-family:arial,sans-serif;font-size:13px">Thank you</div></div>
<br>_______________________________________________<br>
undertow-dev mailing list<br>
<a href="mailto:undertow-dev@lists.jboss.org">undertow-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/undertow-dev</a><br></blockquote></div><br></div>