Skip to content

[Foxy] Use global namespace for parameter events subscription topic (#1257) - #1261

Merged
jacobperron merged 1 commit into
foxyfrom
jacob/foxy_backport_1257
Nov 6, 2020
Merged

jacobperron merged 1 commit into
foxyfrom
jacob/foxy_backport_1257

Conversation

@jacobperron

@jacobperron jacobperron commented Aug 5, 2020 •

Copy link
Copy Markdown
Member

Backport #1257 to Foxy.

This changes default behavior and could consequently break application code that is relying on the assumption that the parameter events subscription uses a relative namespace (but the publisher is using a global namespace), therefore I'm hesitant about backporting. On the other hand, without the patch it can lead to buggy behavior when trying to use parameter events for the first time in Foxy.

Dashing and Eloquent don't have the same problem since both the publisher and subscription are using relative namespaces.

@ros2/team I'm looking for opinions on whether this fix should be backported or not.

Similar to #929, but for the subscription.

This fixes an issue listening to parameter events from a remote node when the local node has a different namespace.
Originally reported here: https://answers.ros.org/question/358170/parameter-events-on-foxy/

Signed-off-by: Jacob Perron <[email protected]>
@jacobperron jacobperron self-assigned this Aug 5, 2020
@jacobperron

Copy link
Copy Markdown
Member Author

If we decide to move forward with this backport, we should also backport the same change in rclpy: ros2/rclpy#612

@wjwwood wjwwood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For me this is fixing unintended behavior, so a bug fix. Therefore I'm ok with it.

@ivanpauno ivanpauno changed the title Use global namespace for parameter events subscription topic (#1257) [Foxy] Use global namespace for parameter events subscription topic (#1257) Aug 5, 2020
@jacobperron

Copy link
Copy Markdown
Member Author

rclpy backport: ros2/rclpy#614

@ros-discourse

Copy link
Copy Markdown

This pull request has been mentioned on ROS Discourse. There might be relevant details there:

https://discourse.ros.org/t/global-parameter-events-and-security-ramifications/15924/1

@jacobperron

Copy link
Copy Markdown
Member Author

It sounds like we haven't reached a consensus yet on whether to use global or private topic names for parameter events:
https://discourse.ros.org/t/global-parameter-events-and-security-ramifications/15924/1

But, since I think the current state in Foxy is "broken" because of the asymmetry between the parameter client and parameter sever, I'm going to move forward on this PR.

@jacobperron

jacobperron commented Oct 1, 2020 •

Copy link
Copy Markdown
Member Author
  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status (unrelated test failures)
  • Windows Build Status (edit: retriggered)

@jacobperron
jacobperron merged commit 0e84509 into foxy Nov 6, 2020
@delete-merged-branch
delete-merged-branch Bot deleted the jacob/foxy_backport_1257 branch November 6, 2020 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants