[23624] Allow empty partition list to match against "*"#5989
Merged
MiguelCompany merged 5 commits intomasterfrom Sep 3, 2025
Merged
[23624] Allow empty partition list to match against "*"#5989MiguelCompany merged 5 commits intomasterfrom
"*"#5989MiguelCompany merged 5 commits intomasterfrom
Conversation
"*""*"
Contributor
afc1584 to
b47b2be
Compare
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
47606b9 to
9bdd331
Compare
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Carlosespicur
approved these changes
Sep 2, 2025
Member
Author
|
@Mergifyio backport 3.3.x 3.2.x 2.14.x |
Contributor
✅ Backports have been createdDetails
|
mergify bot
pushed a commit
that referenced
this pull request
Sep 3, 2025
* Refs #23623. Always use StringMatching. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Refactor StringMatching. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Regression unit test.. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Fix StringMatching on Windows. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23624. Avoid unnecessary conditionals. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com> (cherry picked from commit 27ce90d) # Conflicts: # src/cpp/rtps/builtin/discovery/endpoint/EDP.cpp # src/cpp/utils/StringMatching.cpp
mergify bot
pushed a commit
that referenced
this pull request
Sep 3, 2025
* Refs #23623. Always use StringMatching. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Refactor StringMatching. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Regression unit test.. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Fix StringMatching on Windows. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23624. Avoid unnecessary conditionals. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com> (cherry picked from commit 27ce90d)
mergify bot
pushed a commit
that referenced
this pull request
Sep 3, 2025
* Refs #23623. Always use StringMatching. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Refactor StringMatching. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Regression unit test.. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Fix StringMatching on Windows. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23624. Avoid unnecessary conditionals. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com> (cherry picked from commit 27ce90d)
MiguelCompany
added a commit
that referenced
this pull request
Sep 4, 2025
* Refs #23623. Always use StringMatching. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Refactor StringMatching. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Regression unit test.. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Fix StringMatching on Windows. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23624. Avoid unnecessary conditionals. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
MiguelCompany
added a commit
that referenced
this pull request
Oct 1, 2025
* Refs #23623. Always use StringMatching. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Refactor StringMatching. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Regression unit test.. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Fix StringMatching on Windows. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23624. Avoid unnecessary conditionals. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com> (cherry picked from commit 27ce90d)
MiguelCompany
added a commit
that referenced
this pull request
Oct 2, 2025
* Refs #23623. Always use StringMatching. * Refs #23623. Refactor StringMatching. * Refs #23623. Regression unit test.. * Refs #23623. Fix StringMatching on Windows. * Refs #23624. Avoid unnecessary conditionals. --------- (cherry picked from commit 27ce90d) Signed-off-by: Miguel Company <miguelcompany@eprosima.com> Co-authored-by: Miguel Company <miguelcompany@eprosima.com>
emiliocuestaf
pushed a commit
that referenced
this pull request
Oct 23, 2025
* Refs #23623. Always use StringMatching. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Refactor StringMatching. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Regression unit test.. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Fix StringMatching on Windows. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23624. Avoid unnecessary conditionals. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com> (cherry picked from commit 27ce90d) # Conflicts: # src/cpp/rtps/builtin/discovery/endpoint/EDP.cpp # src/cpp/utils/StringMatching.cpp
MiguelCompany
added a commit
that referenced
this pull request
Oct 27, 2025
* Allow empty partition list to match against `"*"` (#5989) * Refs #23623. Always use StringMatching. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Refactor StringMatching. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Regression unit test.. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Fix StringMatching on Windows. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23624. Avoid unnecessary conditionals. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com> (cherry picked from commit 27ce90d) # Conflicts: # src/cpp/rtps/builtin/discovery/endpoint/EDP.cpp # src/cpp/utils/StringMatching.cpp * Fix backport issues Signed-off-by: Emilio Cuesta <emiliocuesta@eprosima.com> * Update src/cpp/utils/StringMatching.cpp Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Emilio Cuesta Fernandez <emiliocuesta@eprosima.com> --------- Signed-off-by: Emilio Cuesta <emiliocuesta@eprosima.com> Signed-off-by: Emilio Cuesta Fernandez <emiliocuesta@eprosima.com> Co-authored-by: Miguel Company <miguelcompany@eprosima.com> Co-authored-by: Emilio Cuesta <emiliocuesta@eprosima.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
cferreiragonz
pushed a commit
that referenced
this pull request
Nov 5, 2025
* Refs #23623. Always use StringMatching. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Refactor StringMatching. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Regression unit test.. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Fix StringMatching on Windows. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23624. Avoid unnecessary conditionals. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com> (cherry picked from commit 27ce90d)
cferreiragonz
pushed a commit
that referenced
this pull request
Nov 6, 2025
* Refs #23623. Always use StringMatching. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Refactor StringMatching. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Regression unit test.. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23623. Fix StringMatching on Windows. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #23624. Avoid unnecessary conditionals. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com> (cherry picked from commit 27ce90d)
MiguelCompany
added a commit
that referenced
this pull request
Nov 12, 2025
* Refs #23623. Always use StringMatching. * Refs #23623. Refactor StringMatching. * Refs #23623. Regression unit test.. * Refs #23623. Fix StringMatching on Windows. * Refs #23624. Avoid unnecessary conditionals. --------- (cherry picked from commit 27ce90d) Signed-off-by: Miguel Company <miguelcompany@eprosima.com> Co-authored-by: Miguel Company <miguelcompany@eprosima.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
A partition with value
"*"should match with a partition with value"".An empty partition list should be treated as a list with a single partition with value
"".This should also match with a partition with value
"*".This PR refactors the matching of partitions to always use the
StringMatchingclass, and makes the behavior of that class with respect to empty strings consistent between platforms.@Mergifyio backport 3.3.x 3.2.x 2.14.x
Contributor Checklist
versions.mdfile (if applicable).Reviewer Checklist