Skip to content
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

[18763] Improve content filter expression parameters checks and verbosity. #3565

Merged
merged 8 commits into from
Jun 15, 2023

Conversation

jsan-rt
Copy link
Contributor

@jsan-rt jsan-rt commented Jun 2, 2023

Description

This PR adds an additional check to verify that the expression_parameters vector provided when creating a ContentFilteredTopic math with the limits established in the DomainParticipantQoS. It also fixes a wrong length comparison when deserializing that same vector.

@Mergifyio backport 2.10.x 2.9.x 2.6.x

Related documentation PR: eProsima/Fast-DDS-docs#510

Contributor Checklist

  • Commit messages follow the project guidelines.
  • The code follows the style guidelines of this project.
  • Tests that thoroughly check the new feature have been added/Regression tests checking the bug and its fix have been added; the added tests pass locally
  • [NA] Any new/modified methods have been properly documented using Doxygen.
  • Changes are ABI compatible.
  • Changes are API compatible.
  • [NA] New feature has been added to the versions.md file (if applicable).
  • [NA] New feature has been documented/Current behavior is correctly described in the documentation.
  • Applicable backports have been included in the description.

Reviewer Checklist

  • The PR has a milestone assigned.
  • Check contributor checklist is correct.
  • Check CI results: changes do not issue any warning.
  • Check CI results: failing tests are unrelated with the changes.

@jsan-rt
Copy link
Contributor Author

jsan-rt commented Jun 3, 2023

@richiprosima please test this

@JLBuenoLopez JLBuenoLopez added this to the v2.11.0 milestone Jun 5, 2023
@jsan-rt
Copy link
Contributor Author

jsan-rt commented Jun 5, 2023

@richiprosima please test this

@JLBuenoLopez JLBuenoLopez added doc-pending Issue or PR which is pending to be documented and removed doc-pending Issue or PR which is pending to be documented labels Jun 13, 2023
@jsan-rt
Copy link
Contributor Author

jsan-rt commented Jun 14, 2023

@richiprosima please test this

Copy link
Contributor

@JLBuenoLopez JLBuenoLopez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please remember to include a note in the documentation stating the limit in the number of parameters in the corresponding QoS: https://fast-dds.docs.eprosima.com/en/latest/fastdds/dds_layer/core/policy/eprosimaExtensions.html#contentfilterproperty-allocationconfiguration. Also, reading the CFT section I do not find any reference to this section so I suggest including it in the same PR.

jsan-rt added 8 commits June 14, 2023 15:30
Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>
…ontentFilteredTopics

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>
Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>
Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>
Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>
Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>
Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>
Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>
@jsan-rt jsan-rt force-pushed the bugfix/parameter_limits_check branch from 552376d to c26670e Compare June 14, 2023 13:30
@JLBuenoLopez
Copy link
Contributor

@richiprosima please test this

@JLBuenoLopez JLBuenoLopez added ci-pending PR which CI is running and removed doc-pending Issue or PR which is pending to be documented labels Jun 14, 2023
@JesusPoderoso JesusPoderoso added ready-to-merge Ready to be merged. CI and changes have been reviewed and approved. and removed ci-pending PR which CI is running labels Jun 14, 2023
@JesusPoderoso
Copy link
Contributor

@Mergifyio backport 2.10.x 2.9.x 2.6.x

@mergify
Copy link
Contributor

mergify bot commented Jun 14, 2023

backport 2.10.x 2.9.x 2.6.x

✅ Backports have been created

@JLBuenoLopez JLBuenoLopez merged commit 3073c64 into master Jun 15, 2023
@JLBuenoLopez JLBuenoLopez deleted the bugfix/parameter_limits_check branch June 15, 2023 05:35
mergify bot pushed a commit that referenced this pull request Jun 15, 2023
…3565)

* Refs #18763: Added max expression parameter test

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Fixed maximum parameter size checks when deserializing ContentFilteredTopics

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added test for qos expression_parameter constraints

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added check for expression_parameter constraints

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added runtime modification to test

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added check to set_expression_parameters

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Fixed signed/unsigned mismatch

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Applied suggestions

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

---------

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>
(cherry picked from commit 3073c64)
mergify bot pushed a commit that referenced this pull request Jun 15, 2023
…3565)

* Refs #18763: Added max expression parameter test

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Fixed maximum parameter size checks when deserializing ContentFilteredTopics

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added test for qos expression_parameter constraints

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added check for expression_parameter constraints

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added runtime modification to test

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added check to set_expression_parameters

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Fixed signed/unsigned mismatch

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Applied suggestions

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

---------

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>
(cherry picked from commit 3073c64)
mergify bot pushed a commit that referenced this pull request Jun 15, 2023
…3565)

* Refs #18763: Added max expression parameter test

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Fixed maximum parameter size checks when deserializing ContentFilteredTopics

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added test for qos expression_parameter constraints

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added check for expression_parameter constraints

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added runtime modification to test

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added check to set_expression_parameters

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Fixed signed/unsigned mismatch

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Applied suggestions

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

---------

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>
(cherry picked from commit 3073c64)

# Conflicts:
#	src/cpp/fastdds/domain/DomainParticipantImpl.cpp
jsan-rt added a commit that referenced this pull request Jun 15, 2023
…3565) (#3592)

* Refs #18763: Added max expression parameter test

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Fixed maximum parameter size checks when deserializing ContentFilteredTopics

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added test for qos expression_parameter constraints

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added check for expression_parameter constraints

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added runtime modification to test

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added check to set_expression_parameters

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Fixed signed/unsigned mismatch

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Applied suggestions

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

---------

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>
(cherry picked from commit 3073c64)

Co-authored-by: jsantiago-eProsima <90755661+jsantiago-eProsima@users.noreply.github.com>
EduPonz pushed a commit that referenced this pull request Jun 21, 2023
) (#3591)

* Refs #18763: Added max expression parameter test

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Fixed maximum parameter size checks when deserializing ContentFilteredTopics

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added test for qos expression_parameter constraints

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added check for expression_parameter constraints

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added runtime modification to test

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added check to set_expression_parameters

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Fixed signed/unsigned mismatch

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Applied suggestions

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

---------

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>
(cherry picked from commit 3073c64)

Co-authored-by: jsantiago-eProsima <90755661+jsantiago-eProsima@users.noreply.github.com>
EduPonz pushed a commit that referenced this pull request Aug 3, 2023
…3565)

* Refs #18763: Added max expression parameter test

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Fixed maximum parameter size checks when deserializing ContentFilteredTopics

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added test for qos expression_parameter constraints

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added check for expression_parameter constraints

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added runtime modification to test

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added check to set_expression_parameters

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Fixed signed/unsigned mismatch

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Applied suggestions

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

---------

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>
(cherry picked from commit 3073c64)
MiguelCompany pushed a commit that referenced this pull request Aug 4, 2023
) (#3593)

* Refs #18763: Added max expression parameter test

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Fixed maximum parameter size checks when deserializing ContentFilteredTopics

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added test for qos expression_parameter constraints

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added check for expression_parameter constraints

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added runtime modification to test

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Added check to set_expression_parameters

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Fixed signed/unsigned mismatch

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

* Refs #18763: Applied suggestions

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>

---------

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>
(cherry picked from commit 3073c64)

Co-authored-by: jsantiago-eProsima <90755661+jsantiago-eProsima@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Ready to be merged. CI and changes have been reviewed and approved.
Projects
None yet
3 participants