Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン 初心者向け
#2,706 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
90/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java
領域
testing

調査の方向性

activemq-http/src/test/java/org/apache/activemq/transport/http/HttpMaxFrameSizeTest.javaを読み、特にsendOversizedMessageTest()を確認してください。そのテストを実行し、send(5000)が正常に戻る場合に失敗することを確認してください。テストがJMSExceptionを要求し、そのメッセージに「405 Method Not Allowed」が含まれることを検証すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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. 
主要言語
Java
スター
2.5k
フォーク
1.5k
平均マージ
1日 1時間
マージ済み PR(30日)
73

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/activemq のほかの issue

apache/activemq の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。