Skip to content

Conversation

tuthanika
Copy link
Contributor

"Fix the bug mentioned in this issue — caused by a missing header that prevents Dropbox from correctly identifying the path." Reference: #909

@dezhishen dezhishen requested a review from Copilot August 14, 2025 08:40
Copilot

This comment was marked as outdated.

@dezhishen dezhishen requested a review from Copilot August 14, 2025 12:30
Copilot

This comment was marked as outdated.

dezhishen
dezhishen previously approved these changes Aug 14, 2025
@xrgzs xrgzs changed the title Fix incorrect path error during upload on Dropbox fix(dropbox): incorrect path error during upload Aug 16, 2025
@xrgzs xrgzs requested a review from Copilot August 16, 2025 06:16
Copy link
Contributor

@Copilot Copilot AI left a comment

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 fixes a bug where Dropbox upload operations fail due to incorrect path handling when a root namespace ID is configured. The fix adds the missing Dropbox-API-Path-Root header to upload requests when a root namespace is specified.

  • Add Dropbox-API-Path-Root header to upload session methods when RootNamespaceId is set
  • Create a helper method to build the path root header JSON
  • Add JSON tag to RootNamespaceId field for proper serialization

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
drivers/dropbox/util.go Adds path root header logic to upload methods and implements helper function
drivers/dropbox/meta.go Adds JSON tag to RootNamespaceId field

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@xrgzs xrgzs merged commit d76407b into OpenListTeam:main Aug 16, 2025
12 checks passed
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.

3 participants