[
https://issues.apache.org/jira/browse/CAMEL-22494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen reassigned CAMEL-22494:
-----------------------------------
Assignee: Claus Ibsen
> camel-as2 - AS2 consumer URI remains active after route stop/removal
> --------------------------------------------------------------------
>
> Key: CAMEL-22494
> URL: https://issues.apache.org/jira/browse/CAMEL-22494
> Project: Camel
> Issue Type: Bug
> Components: camel-as2
> Affects Versions: 4.10.6, 4.10.7, 4.14.0, 4.14.1, 4.15.0
> Reporter: Bruno Gonçalves
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.10.8, 4.14.2, 4.16.0
>
> Attachments: inbound-as2-reproducer.tar
>
>
> When a route using the {{camel-as2}} consumer endpoint is stopped or removed,
> the component fails to fully unbind or deregister the underlying server
> listener, leaving the endpoint URI unexpectedly active.
> No errors are observed in the logs when the route is stopped, but the
> expected cleanup does not occur.
> *Expected Behavior*
> After the route is stopped and removed, any attempt to send a message to the
> corresponding AS2 server URI should result in an HTTP error (e.g., *404 Not
> Found* or {*}Connection Refused{*}) because the consumer should have been
> cleanly unregistered.
> *Actual Behavior*
> The AS2 server listener remains functional and *continues to consume
> messages* at the original URI, even though the route itself is no longer
> active in the Camel Context. This suggests the server-side resource (the URI
> mapping/listener) associated with the AS2 consumer is not being properly
> deregistered during the shutdown process.
> A *Reproducer Test Case* demonstrating this behavior is attached to this
> ticket.
> It installs an AS2 inbound route and, after 5 seconds, it uninstalls it.
> After the route is uninstalled, when the endpoint
> [http://localhost:9002/as2test] is called, the AS2 consumer still processes
> the request and returns a response.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)