Skip to content

fix(feeds): percent-encode feed path segments and reject dot segments - #127

Draft
tbarbugli wants to merge 3 commits into
masterfrom
tommaso/sec-2510-feed-path-encoding
Draft

tbarbugli wants to merge 3 commits into
masterfrom
tommaso/sec-2510-feed-path-encoding

Conversation

@tbarbugli

@tbarbugli tbarbugli commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Linear: SEC-2510

Summary

  • Percent-encode path segments (feed_group_id, feed_id) in GetStreamRuby::Resources::Feed with URI.encode_uri_component.
  • Reject nil, empty strings, and dot segments (. / ..) before interpolating request paths.
  • Add unit specs in spec/feed_resource_spec.rb.

Note: OpenAPI-generated client files under lib/getstream_ruby/generated/*_client.rb are produced by the generator in GetStream/chat and should be updated there so generated path substitutions match.

Testing

  • make test (341 RSpec examples, 0 failures)

This branch has not been deployed

No deployments
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.

1 participant