Skip to content

Fix App Folder access with explicit CLI and environment settings - #407

Merged
AndreyVMarkelov merged 2 commits into
dropbox:masterfrom
AndreyVMarkelov:andreymarkelov/fix-app-folder-406
Nov 18, 2026
Merged

AndreyVMarkelov merged 2 commits into
dropbox:masterfrom
AndreyVMarkelov:andreymarkelov/fix-app-folder-406

Conversation

@AndreyVMarkelov

Copy link
Copy Markdown
Contributor

App Folder applications can log in successfully, but file operations fail with Path root is not supported for sandbox app because dbxcli automatically sets Dropbox-API-Path-Root.

Add the global --app-folder flag and DBXCLI_APP_FOLDER environment 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 existing invalid_arguments error 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-docs
  • go run ./tools/gen-json-schemas
  • git diff --check

The end-to-end tests use a local API simulator; a live App Folder token was not available for a live Dropbox test.

Fixes #406.

@AndreyVMarkelov
AndreyVMarkelov merged commit ac0dbb6 into dropbox:master Nov 18, 2026
14 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.

Application with app folder access

1 participant