Skip to content

fix: data links at the file share path root#384

Open
allison-truhlar wants to merge 3 commits into
mainfrom
fix-data-links-at-top-level-of-fsp
Open

fix: data links at the file share path root#384
allison-truhlar wants to merge 3 commits into
mainfrom
fix-data-links-at-top-level-of-fsp

Conversation

@allison-truhlar

@allison-truhlar allison-truhlar commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

When the file browser is at the FSP root, Filestore returns "." as the relative path. A literal "." in a share URL gets collapsed by URL normalization at the recipient, causing path mismatch / NoSuchBucket errors when the link is opened. This fix:

  • Normalizes "." -> "" on write and on read in the backend API endpoints
  • Adds a _normalize_proxied_path helper and dot-segment validation to _validate_url_prefix (and matching frontend validateUrlPrefix)
  • Falls back to the FSP name when deriving a url_prefix from an empty path
  • Handles legacy DB records with stored path="." in the proxy resolver
  • Mirrors the same normalization in the DataLink dialog preview

When merged, closes issue #368

@krokicki

When the file browser is at the FSP root, Filestore returns "." as the
relative path. A literal "." in a share URL gets collapsed by URL
normalization at the recipient, causing path mismatch / NoSuchBucket
errors when the link is opened. This fix:
- Normalizes "." -> "" on write and on read in the backend API endpoints
- Adds a _normalize_proxied_path helper and dot-segment validation to
  _validate_url_prefix (and matching frontend validateUrlPrefix)
- Falls back to the FSP name when deriving a url_prefix from an empty path
- Handles legacy DB records with stored path="." in the proxy resolver
- Mirrors the same normalization in the DataLink dialog preview
@allison-truhlar allison-truhlar requested a review from krokicki June 12, 2026 16:44
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.

1 participant