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

Improve DestinationInterceptor reappliance to respect DestinationFilters

Open
#1,870 2 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@mattrpav is already working on this.

Since Apr 2, 2026.

Assessment

This issue has not been assessed yet.

Description

Stale

Abstract.reapplyInterceptor unwraps only outer CompositeDestinationFilter, but totally ignores other DestinationFilter instances.
This behaviour applies to all recent version of ActiveMQ.

It might be easily fixed by changing this code^

                if (destination instanceof CompositeDestinationFilter) {
                    destination = ((CompositeDestinationFilter) destination).next;
                }

to

                while (destination instanceof org.apache.activemq.broker.region.DestinationFilter) {
                    destination = ((org.apache.activemq.broker.region.DestinationFilter) destination).next;
                }

or

                if (destination instanceof org.apache.activemq.broker.region.DestinationFilter) {
                    destination = ((org.apache.activemq.broker.region.DestinationFilter) destination).getAdaptor(BaseDestination.class);
                }

It's desirable to fix this in 5.19.x.

Dominant language
Java
Stars
2.5k
Forks
1.5k
Avg merge
14h 42m
Merged PRs (30d)
85

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.