nikitakoliadin commented on PR #19989:
URL: https://github.com/apache/camel/pull/19989#issuecomment-3730406178

   Hello, I have problems with this update.
   
   I have as2 server that listens to `/receiver/*` (which is 
`requestUriPattern` prop). And when I send my request to `/receiver/test` 
(never mind the path) I see this following message in logs:
   
   ```
   2026-01-06T15:50:13.368+02:00  WARN 13822 --- [X1 Integration Corsair] [    
AS2Hdlr-237] [                                                 ] 
o.a.c.c.as2.api.AS2ServerConnection      : No AS2 consumer configuration found 
for canonical path: /receiver/test-1. Encrypted messages will likely fail.
   ```
   
   After debuging I found that `Map<String, AS2ConsumerConfiguration> 
consumerConfigurations` has my configuration under by key `/receiver/*` but 
`getConfigurationForPath` methods tries to get configuration by 
`/receiver/test` key (which is absolutely equals to my request path and which 
is correct). This is wrong in my opinion because key is pattern, and it should 
use regex or something to get `AS2ConsumerConfiguration` by path in 
`getConfigurationForPath` method.
   
   Is my logic correct or am I doing something wrong here? This start being an 
issue with the latest version to me. Previously, it worked well.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to