<div dir="ltr">Thanks for the reply Stuart, I&#39;ll enter a ticket for it t be looked at.  I may be an edge case, but i could certainly benefit from the slightly different approach that allows my custom resource manager to do its thing.. <div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div></div><div>Thanks!</div><div><br></div><div>~Brad</div><div><br></div><div><b>Developer Advocate</b></div><div><i>Ortus Solutions, Corp </i></div><div><b><br></b></div><div>E-mail: <a href="mailto:brad@coldbox.org" target="_blank">brad@coldbox.org</a></div><div>ColdBox Platform: <a href="http://www.coldbox.org" target="_blank">http://www.coldbox.org</a> </div><div>Blog: <a href="http://www.codersrevolution.com" target="_blank">http://www.codersrevolution.com</a></div><div><br></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Sep 14, 2018 at 12:48 AM Stuart Douglas &lt;<a href="mailto:sdouglas@redhat.com">sdouglas@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Sep 14, 2018 at 3:38 PM Brad Wood &lt;<a href="mailto:bdw429s@gmail.com" target="_blank">bdw429s@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I&#39;m using Undertow for the deployment of Adobe ColdFusion and Lucee Server sites, which for historical reasons and convenience, keeps two separate folders for the WAR/web-inf and the actual web root where content is served from.  </div><div><br></div><div>In your typical J2EE setup, the real path &quot;/&quot; is the parent of &quot;/WEB-INF&quot; but that is not the case for me and we use a custom resource manager with great success to handle the correct resolution of paths in the server.</div><div><br></div><div>We have one issue however in the event of path resolution for non existent files such as &quot;/WEB-INF/cfform/logs/flex.log&quot; which doesn&#39;t exist yet the first time a server comes up.  Since it doesn&#39;t exist, my custom resource manager (who knows where the real WEB-INF lives) returns null as it should which leaves it up to this line of code:</div><div><a href="https://github.com/undertow-io/undertow/blob/ff4c9cf37872cb96070ba6a2fcbbaa6df291e390/servlet/src/main/java/io/undertow/servlet/spec/ServletContextImpl.java#L389" target="_blank">https://github.com/undertow-io/undertow/blob/ff4c9cf37872cb96070ba6a2fcbbaa6df291e390/servlet/src/main/java/io/undertow/servlet/spec/ServletContextImpl.java#L389</a><br></div><div>to &quot;guess&quot; where the file would exist if it were to be created.  Since it roots it in the real path of &quot;/&quot;, it guessing incorrectly in my case and the result is I have folders and files created in the wrong directory. </div><div><br></div><div>This is rather tricky since my custom resource manager would tell the servlet context exactly where &quot;/WEB-INF&quot; is if it were to ask that question, but since it asks for &quot;/&quot;, a different answer is given.  Interestingly enough, had the example provided in the final comment of this ticket been followed, it would work for me since it progressively attempts to resolve the path while peeling back directories one at a time until it finds one that exists.</div><div><a href="https://issues.jboss.org/browse/UNDERTOW-373?focusedCommentId=13036336&amp;page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-13036336" target="_blank">https://issues.jboss.org/browse/UNDERTOW-373?focusedCommentId=13036336&amp;page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-13036336</a><br></div><div dir="ltr"><br></div><div>There&#39;s no comment on the ticket as to why that solution wasn&#39;t used, but I would presume to avoid additional disk hits.  I&#39;m looking for ways that I can still control how /WEB-INF is resolved with my custom resource manager, even for non-existent paths.  Save the progressive searching I mentioned in the previous paragraph, the only other solution I can think of is for the servlet contexts&#39; getRealPath() to detect when a non existent path begins with /WEB-INF and asking the resource manager to resolve /WEB-INF in that case instead of / so it can get a more specific answer.</div><div><br></div><div>Thoughts?  </div></div></div></div></div></div></blockquote><div><br></div><div>I am ok with the solution in UNDERTOW-373, the main reason why it was not followed was because it just did not seem necessary, as with the default resource managers the result is basically the same, but if there is a use case for it I am happy to adopt this approach.</div><div><br></div><div>Stuart</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br clear="all"><div><div dir="ltr" class="m_1987089874720070731m_-4068276994417848831gmail_signature"><div dir="ltr"><div><div dir="ltr"><div></div><div>Thanks!</div><div><br></div><div>~Brad</div><div><br></div><div><b>Developer Advocate</b></div><div><i>Ortus Solutions, Corp </i></div><div><b><br></b></div><div>E-mail: <a href="mailto:brad@coldbox.org" target="_blank">brad@coldbox.org</a></div><div>ColdBox Platform: <a href="http://www.coldbox.org" target="_blank">http://www.coldbox.org</a> </div><div>Blog: <a href="http://www.codersrevolution.com" target="_blank">http://www.codersrevolution.com</a></div><div><br></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
undertow-dev mailing list<br>
<a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/undertow-dev</a></blockquote></div></div>
</blockquote></div>