Skip to content

Commit

Permalink
Applied fix from #7748 missed by cherry-pick
Browse files Browse the repository at this point in the history
  • Loading branch information
gregw committed Apr 6, 2022
1 parent a278d75 commit 3fb8d52
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Expand Up @@ -53,7 +53,6 @@
import org.eclipse.jetty.util.ArrayUtil;
import org.eclipse.jetty.util.MultiException;
import org.eclipse.jetty.util.MultiMap;
import org.eclipse.jetty.util.URIUtil;
import org.eclipse.jetty.util.annotation.ManagedAttribute;
import org.eclipse.jetty.util.annotation.ManagedObject;
import org.eclipse.jetty.util.component.DumpableCollection;
Expand Down Expand Up @@ -1161,6 +1160,11 @@ protected void updateNameMappings()
}
}

protected ServletPathSpec asPathSpec(String pathSpec)
{
return new ServletPathSpec(pathSpec);
}

protected void updateMappings()
{
try (AutoLock ignored = lock())
Expand Down Expand Up @@ -1269,7 +1273,7 @@ else if (isAllowDuplicateMappings())
finalMapping.getServletName(),
getServlet(finalMapping.getServletName()).getSource());

ServletPathSpec servletPathSpec = new ServletPathSpec(pathSpec);
ServletPathSpec servletPathSpec = asPathSpec(pathSpec);
MappedServlet mappedServlet = new MappedServlet(servletPathSpec, getServlet(finalMapping.getServletName()));
pm.put(servletPathSpec, mappedServlet);
}
Expand Down
Expand Up @@ -1246,6 +1246,11 @@ protected void updateNameMappings()
}
}

protected ServletPathSpec asPathSpec(String pathSpec)
{
return new ServletPathSpec(pathSpec);
}

protected void updateMappings()
{
try (AutoLock ignored = lock())
Expand Down Expand Up @@ -1354,7 +1359,7 @@ else if (isAllowDuplicateMappings())
finalMapping.getServletName(),
getServlet(finalMapping.getServletName()).getSource());

ServletPathSpec servletPathSpec = new ServletPathSpec(pathSpec);
ServletPathSpec servletPathSpec = asPathSpec(pathSpec);
MappedServlet mappedServlet = new MappedServlet(servletPathSpec, getServlet(finalMapping.getServletName()));
pm.put(servletPathSpec, mappedServlet);
}
Expand Down

0 comments on commit 3fb8d52

Please sign in to comment.