[
https://issues.apache.org/jira/browse/CAMEL-13191?focusedWorklogId=199103&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-199103
]
ASF GitHub Bot logged work on CAMEL-13191:
------------------------------------------
Author: ASF GitHub Bot
Created on: 15/Feb/19 06:46
Start Date: 15/Feb/19 06:46
Worklog Time Spent: 10m
Work Description: oscerd commented on pull request #2774: CAMEL-13191:
Fix Regex Pattern to hide passwords in URI
URL: https://github.com/apache/camel/pull/2774
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 199103)
Time Spent: 1h 20m (was: 1h 10m)
> URISupport sanitizeUri don't hide complete password if password contains colon
> ------------------------------------------------------------------------------
>
> Key: CAMEL-13191
> URL: https://issues.apache.org/jira/browse/CAMEL-13191
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.23.1
> Reporter: Christian Pieczewski
> Assignee: Andrea Cosentino
> Priority: Major
> Fix For: 3.0.0, 2.23.2, 2.24.0, 2.22.4
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> sanitizedUri don't hide the complete password if the password contains a
> colon.
> e.g.
> camel route URI is "sftp://user:hidden:[email protected]" where the
> password is "hidden:password"
> the sanitizedUri method will only hide the last part of password
> (sftp://user:hidden:[email protected])
> {code:java|title=UnitTest}
> import org.apache.camel.util.URISupport;
> import org.junit.jupiter.api.Assertions;
> import org.junit.jupiter.api.Test;
> class UriSupportTest {
> @Test
> void testURISanitizeUri() {
> var sanitizedUri =
> URISupport.sanitizeUri("sftp://user:hidden:[email protected]");
> Assertions.assertEquals("sftp://user:[email protected]", sanitizedUri);
> }
> }
> {code}
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)