fix: Add encoding parameter to rclone S3 config to prevent filename q…#409
Closed
phernandez wants to merge 2 commits intofeature/spec-20-simplified-rclone-syncfrom
Closed
fix: Add encoding parameter to rclone S3 config to prevent filename q…#409phernandez wants to merge 2 commits intofeature/spec-20-simplified-rclone-syncfrom
phernandez wants to merge 2 commits intofeature/spec-20-simplified-rclone-syncfrom
Conversation
…uoting Files with spaces like 'Hello World.md' were being displayed with single quotes as ''Hello World.md'' on the server due to rclone's default S3 encoding behavior. This fix adds 'encoding = Slash,InvalidUtf8' to the rclone configuration, which tells rclone to only encode slashes and invalid UTF-8, not spaces or other common filename characters. Fixes #406 Co-authored-by: Paul Hernandez <phernandez@users.noreply.github.com>
…ue-406-20251031-0133 Signed-off-by: Paul Hernandez <60959+phernandez@users.noreply.github.com>
Contributor
|
Claude finished @phernandez's task —— View job PR #409 Code Review - Critical Bug FoundCritical Bug 🚨File: The IssueThe code has a variable name mismatch that will cause a # Line 94: Variable is defined as REMOTE_NAME
REMOTE_NAME = "basic-memory-cloud"
# Lines 97-105: Code uses undefined variable section_name
config.set(section_name, "type", "s3")
config.set(section_name, "provider", "Other")
config.set(section_name, "access_key_id", access_key)
config.set(section_name, "secret_access_key", secret_key)
config.set(section_name, "endpoint", endpoint)
config.set(section_name, "region", region)
config.set(section_name, "encoding", "Slash,InvalidUtf8")Root CauseLooking at the git history:
Required FixChange all instances of config.set(REMOTE_NAME, "type", "s3")
config.set(REMOTE_NAME, "provider", "Other")
config.set(REMOTE_NAME, "access_key_id", access_key)
config.set(REMOTE_NAME, "secret_access_key", secret_key)
config.set(REMOTE_NAME, "endpoint", endpoint)
config.set(REMOTE_NAME, "region", region)
config.set(REMOTE_NAME, "encoding", "Slash,InvalidUtf8")Team Checklist ReviewCode Quality & Standards
Testing & Documentation
Basic Memory Architecture
Security & Performance
Encoding Fix (When Bug is Fixed)
Additional FindingsNo Test CoverageThere are no tests for Recommendation: Add tests before merging: def test_configure_rclone_remote_creates_correct_config():
"""Test that configure_rclone_remote creates proper rclone config."""
# This test would immediately catch the NameErrorWhy This Wasn't Caught
SummaryStatus: ❌ Cannot approve - Critical bug blocks functionality Impact:
Required Actions:
Good Things About This PR:
Just needs the variable name fixed! |
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.
…uoting
Files with spaces like 'Hello World.md' were being displayed with single quotes as ''Hello World.md'' on the server due to rclone's default S3 encoding behavior.
This fix adds 'encoding = Slash,InvalidUtf8' to the rclone configuration, which tells rclone to only encode slashes and invalid UTF-8, not spaces or other common filename characters.
Fixes #406