Repository navigation
Fix App Folder access with explicit CLI and environment settings - #407
Merged
AndreyVMarkelov merged 2 commits intoNov 18, 2026
Merged
AndreyVMarkelov merged 2 commits into
AndreyVMarkelov merged 2 commits into
Conversation
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.
App Folder applications can log in successfully, but file operations fail with
Path root is not supported for sandbox appbecause dbxcli automatically setsDropbox-API-Path-Root.Add the global
--app-folderflag andDBXCLI_APP_FOLDERenvironment setting to skip automatic namespace discovery and leave the path-root header unset. For example,dbxcli --app-folder ls /lists the dedicated app folder. Explicit CLI values override the environment, including invalid environment values; invalid values otherwise produce the existinginvalid_argumentserror and validation exit code. Existing Full Dropbox and team-space behavior remains the default.Includes regression coverage for saved credentials, direct tokens, token refresh, configuration precedence, JSON help/errors, and header omission. Ten subprocess end-to-end cases exercise the real CLI and SDK against a local HTTP Dropbox API simulator, reproducing the original rejection and verifying the fix. README, generated command docs, and the affected help fixture are updated.
Validation:
go test ./...go vet ./...go build ./...go run ./tools/gen-docsgo run ./tools/gen-json-schemasgit diff --checkThe end-to-end tests use a local API simulator; a live App Folder token was not available for a live Dropbox test.
Fixes #406.