smongiar opened a new pull request, #29250:
URL: https://github.com/apache/camel/pull/29250

   On Windows, absolute paths contain backslashes (e.g. C:\Users\...\target). 
When used in a file: URI, backslashes are URL-encoded to %5C by 
UnsafeUriCharactersEncoder. Although getSchemeSpecificPart() decodes them back, 
the route's internal URI representation retains the encoded form, and the file 
consumer silently fails to poll the directory.
   
   # Description
   
   Normalize backslashes to forward slashes in 
FileComponent.buildFileEndpoint() before creating the File object. Java's File 
class handles forward slashes on all platforms, so this is safe and prevents 
the encoding issue entirely.
   
   # Target
   
   - [ x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   - [x ] [If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on 
it).](https://issues.apache.org/jira/browse/CAMEL-26639)
   
   


-- 
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