jetty / jetty/jetty.project

Resource Alias Support in ServletContextHandler

Open
#13,649 1 comment 0 reactions 0 assignees View on GitHub
Enhancement
Dominant language
Java
Stars
4.1k
Forks
2k
Avg merge
3d 56m
Merged PRs (30d)
48

Description

**Jetty version(s)**
12.1

**Enhancement Description**

In an embedded Jetty 12.1 setup, a `ServletContextHandler` is being used to configure multiple servlets, but it does not provide the option to define any alias. But a `WebAppContext` provides the method `setResourceAlias()` to register resource aliases, which would address this need. Adding support for resource aliasing in the `ServletContextHandler` would enable more flexible resource mapping in embedded Jetty configurations without requiring the use of WebAppContext.

see discussion https://github.com/jetty/jetty.project/discussions/13527

Contributor guide

Open the contributing guide

Research direction

Start at ServletContextHandler and compare its resource handling with WebAppContext.setResourceAlias(). Read the linked discussion for the expected alias behavior, then identify the relevant ServletContextHandler tests or test entry points. Done means embedded Jetty configurations can define resource aliases without switching to WebAppContext, with behavior covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.