Skip to content

fix(stream-importer): Ensure S3 paths always end in '/' (#0) - #7117

Open
garethhumphriesgkc wants to merge 2 commits into
OpenCTI-Platform:masterfrom
garethhumphriesgkc:patch-2
Open

fix(stream-importer): Ensure S3 paths always end in '/' (#0)#7117
garethhumphriesgkc wants to merge 2 commits into
OpenCTI-Platform:masterfrom
garethhumphriesgkc:patch-2

Conversation

@garethhumphriesgkc

Copy link
Copy Markdown

When no trailing is specified, the minio calls return no data. Force the slash to always be present to prevent.

Proposed changes

  • Ensure s3 paths always end in a /

Related issues

Checklist

  • I consider the submitted work as finished
  • I have signed my commits using GPG key.
  • I tested the code for its functionality using different use cases
  • I added/update the relevant documentation (either on github or on notion)
  • Where necessary I refactored code to improve the overall quality

Further comments

When no trailing is specified, the minio calls return no data.  Force the slash to always be present to prevent.
Copilot AI review requested due to automatic review settings July 28, 2026 04:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Stream Importer connector’s MinIO/S3 path handling to avoid missing objects when a configured prefix does not include a trailing /, ensuring object listing and key construction behave consistently.

Changes:

  • Normalize minio_src_path / minio_dst_path to include a trailing / for S3-style prefixes.
  • Adjust startup configuration handling to reduce “no data returned” scenarios from MinIO when prefixes are provided without a trailing slash.

Comment thread external-import/stream-importer/src/importer/connector.py Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@garethhumphriesgkc garethhumphriesgkc removed their assignment Jul 28, 2026
@romain-filigran romain-filigran added the community Contribution from the community. label Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Contribution from the community.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants