Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

server: don't allow to set wrong maxRequestSize

Open Beginner friendly
#4,035 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
java
Domain
backend

Research direction

Start in ServerOptions (server module) and find the setter for maxRequestSize; it currently stores the value without validation. Add a check that rejects zero and negative values (match how other positive-only options in the same class validate and what exception they throw), then add or extend the options unit test to cover 0 and -1. Done when the fluent setter throws for non-positive input and the existing server options tests pass.

Written by the indexing model from the issue text.

Description

bug web-server

It must be always a positive number. Today it is allowed to set 0 or -1

var serverOptions = new ServerOptions()
   .setMaxRequestSize(-1);
Dominant language
Java
Stars
1.8k
Forks
207
Avg merge
1d 17h
Merged PRs (30d)
19

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jooby-project/jooby

All issues in jooby-project/jooby

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.