-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[C++] Use same regex code at ZTSClient #11323
Conversation
/pulsarbot run-failure-checks |
1 similar comment
/pulsarbot run-failure-checks |
Thanks for your contribution. For this PR, do we need to update docs? (The PR template contains info about doc, which helps others know more about the changes. Can you provide doc info in future PR descriptions? Thanks) |
I understand. I updated the description. |
@equanz many thanks! |
This reverts commit 7cce8e3.
### Motivation apache#9533 causes some degraded behaviors at [ZTSClient](https://github.com/apache/pulsar/pull/9533/files#diff-41a90a5ec7937b5e2151752843621d6acfe8963077dc04c285842a09a4e45ecc). 1. when using boost::regex - can't set `path` at file scheme 2. when using std::regex - can't set relative path like `file:./path/to/private.key` I'd like to fix this issue. ### Modifications * Use same regex code between boost and std like [this](https://github.com/apache/pulsar/pull/9533/files#diff-a67e917f5f42f3337507a69a4e0f13e286238dc759b4048cb5141290cf445b38) * Fix regex to be able to capture relative path like `file:./`
### Motivation #9533 causes some degraded behaviors at [ZTSClient](https://github.com/apache/pulsar/pull/9533/files#diff-41a90a5ec7937b5e2151752843621d6acfe8963077dc04c285842a09a4e45ecc). 1. when using boost::regex - can't set `path` at file scheme 2. when using std::regex - can't set relative path like `file:./path/to/private.key` I'd like to fix this issue. ### Modifications * Use same regex code between boost and std like [this](https://github.com/apache/pulsar/pull/9533/files#diff-a67e917f5f42f3337507a69a4e0f13e286238dc759b4048cb5141290cf445b38) * Fix regex to be able to capture relative path like `file:./` (cherry picked from commit 7cce8e3)
### Motivation apache#9533 causes some degraded behaviors at [ZTSClient](https://github.com/apache/pulsar/pull/9533/files#diff-41a90a5ec7937b5e2151752843621d6acfe8963077dc04c285842a09a4e45ecc). 1. when using boost::regex - can't set `path` at file scheme 2. when using std::regex - can't set relative path like `file:./path/to/private.key` I'd like to fix this issue. ### Modifications * Use same regex code between boost and std like [this](https://github.com/apache/pulsar/pull/9533/files#diff-a67e917f5f42f3337507a69a4e0f13e286238dc759b4048cb5141290cf445b38) * Fix regex to be able to capture relative path like `file:./`
Motivation
#9533 causes some degraded behaviors at ZTSClient.
path
at file schemefile:./path/to/private.key
I'd like to fix this issue.
Modifications
file:./
Verifying this change
This change added tests and can be verified as follows:
ZTSClientWrapper::parseUri
with relative pathDoes this pull request potentially affect one of the following parts:
If
yes
was chosen, please highlight the changesDocumentation
For contributor
For this PR, do we need to update docs?
No. Because this is one of the bug fixes.
For committer
For this PR, do we need to update docs?
doc
label.doc-required
label.doc-required
label.no-need-doc
label and explain why.