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

HttpMaxFrameSizeTest.sendOversizedMessageTest() passes silently when maxFrameSize is not enforced

Open Beginner friendly
#2,706 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
90/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
java
Domain
testing

Research direction

Read activemq-http/src/test/java/org/apache/activemq/transport/http/HttpMaxFrameSizeTest.java, especially sendOversizedMessageTest(). Run that test and check that it fails if send(5000) returns normally; done means the test requires a JMSException and verifies its message contains “405 Method Not Allowed”.

Written by the indexing model from the issue text.

Description

Component: activemq-http (test)
Version: present on main as of 2026-10-19, commit 644cf4fd

Description

HttpMaxFrameSizeTest.sendOversizedMessageTest() sends a 5000-byte message to a connector configured with maxFrameSize=4000 and asserts on the resulting JMSException, but nothing fails the test when no exception is thrown:

try {
      send(5000);
} catch (JMSException jmsException) {
     Assert.assertTrue(jmsException.getMessage().contains("405 Method Not Allowed"));
}

If the frame-size limit stops being enforced, send(5000) returns normally, the
catch block never runs, and the test passes. The assertion inside the catch is the
only check in the method.

Impact

Test-only: no runtime effect. The cost is lost regression coverage; this test is what guards the behaviour added in AMQ-7327 and refined in AMQ-7419 (405 instead of 500 on oversized frames), and in its current form it cannot fail when that behaviour regresses.

Proposed fix

     public void sendOversizedMessageTest() throws Exception {
         try {
             send(5000);
+          Assert.fail("Expected JMSException: maxFrameSize should have been enforced");
         } catch (JMSException jmsException) {
             Assert.assertTrue(jmsException.getMessage().contains("405 Method Not Allowed"));
         }
     }

I searched the open and closed issues and found no existing report. Happy to open a PR with the fix if it is welcomed. 
Dominant language
Java
Stars
2.5k
Forks
1.5k
Avg merge
1d 1h
Merged PRs (30d)
73

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 apache/activemq

All issues in apache/activemq

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.