jetty / jetty/jetty.project

Review PathMappings put(PathSpec, E resource) for replacement behavior

Open
#8,764 3 comments 0 reactions 1 assignee Claimed by @joakime View on GitHub
Bug
Dominant language
Java
Stars
4.1k
Forks
2k
Avg merge
3d 56m
Merged PRs (30d)
48

Description

**Jetty version(s)**
Jetty 12

**Description**
As pointed out at https://github.com/eclipse/jetty.project/pull/8748#discussion_r1003823744 if a new mapping is introduced that would replace an existing PathSpec,
we should be returning the old resource that was replaced in the `put()` method.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.