Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(blob): error early when trying to use conflicting characters #769

Merged
merged 3 commits into from
Oct 8, 2024

Conversation

vvo
Copy link
Member

@vvo vvo commented Oct 2, 2024

Trying to upload files containing ?, # or // will always result in a weird
behavior where the pathname you sent won't be exactly the one in the resulting
url. Rather than relying on this I propose we just error early on and advise to
either not use them or encode them.

BREAKING CHANGE: Previously working characters will now throw an error.

vvo added 2 commits October 2, 2024 16:23
Trying to upload files containing ?, # or // will always result in a weird
behavior where the pathname you sent won't be exactly the one in the resulting
url. Rather than relying on this I propose we just error early on and advise to
either not use them or encode them.

BREAKING CHANGE: Previously working characters will now throw an error.
@vvo vvo requested a review from luismeyer October 2, 2024 14:25
@vvo vvo self-assigned this Oct 2, 2024
Copy link

changeset-bot bot commented Oct 2, 2024

🦋 Changeset detected

Latest commit: ad3f2f9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@vercel/blob Minor
vercel-storage-integration-test-suite Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Oct 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
vercel-storage-next-integration-test-suite ✅ Ready (Inspect) Visit Preview Oct 8, 2024 8:11am

@vvo vvo enabled auto-merge (squash) October 8, 2024 08:06
@vvo vvo disabled auto-merge October 8, 2024 08:14
@vvo vvo merged commit 61b5939 into main Oct 8, 2024
12 checks passed
@vvo vvo deleted the fix/blob/error-early branch October 8, 2024 08:21
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.

2 participants