docker-library / docker-library/tomcat
Symbolic links returning 404
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 635
- Forks
- 744
- PR merge metrics
- No merged PRs in 30d
Description
Running into an issue where symbolic links in a mounted volume are served as 404. The symlinks are created and exist on the container itself, but the tomcat server does not seem to serve them as normal files and instead returns 404.
Here's a quick way to replicate this behavior:
docker-compose.yml
services:
test-symlink:
container_name: test-symlink
image: tomcat
ports:
- "8080:8080"
volumes:
- ./app:/usr/local/tomcat/webapps/app
mkdir app
touch app/real-file.txt
ln -s real-file.txt app/symlink.txt
docker compose up
http://localhost:8080/app/real-file.txt > returns 200
http://localhost:8080/app/symlink.txt > returns 404
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the docker-compose.yml reproduction and run the two listed requests against the mounted app. Compare the behavior of real-file.txt and symlink.txt, then inspect the Tomcat image and mounted webapp configuration. Done means the symlink URL is served successfully instead of returning 404, without breaking the regular file URL.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose
- Domain
- backend, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100