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

bug: leading */*/. in routes causes bugs in wrangler dev #1002

Closed
threepointone opened this issue May 14, 2022 · 0 comments · Fixed by #1018 or #1025
Closed

bug: leading */*/. in routes causes bugs in wrangler dev #1002

threepointone opened this issue May 14, 2022 · 0 comments · Fixed by #1018 or #1025
Assignees
Labels
bug Something that isn't working

Comments

@threepointone
Copy link
Contributor

When using a route like *foo.com or *.foo.com with wrangler dev, zone id deduction fails, leading to subtle errors.

@threepointone threepointone added this to the 2.1 milestone May 14, 2022
@threepointone threepointone self-assigned this May 14, 2022
@petebacondarwin petebacondarwin moved this to Selected for development in workers-sdk May 15, 2022
@petebacondarwin petebacondarwin removed this from the Selected for development milestone May 15, 2022
@threepointone threepointone moved this from Selected for development to In Progress in workers-sdk May 16, 2022
@threepointone threepointone moved this from In Progress to In Review in workers-sdk May 16, 2022
threepointone added a commit that referenced this issue May 16, 2022
When given routes, we use the host name from the route to deduce a zone id to pass along with the host to set with dev `session`. Route patterns can include leading `*`/`*.`, which we don't account for when deducing said zone id, resulting in subtle errors for the session. This fix strips those leading characters as appropriate.

Fixes #1002
@petebacondarwin petebacondarwin added bug Something that isn't working and removed type: bug labels May 16, 2022
@threepointone threepointone moved this from In Review to In Progress in workers-sdk May 16, 2022
@threepointone threepointone moved this from In Progress to In Review in workers-sdk May 16, 2022
threepointone added a commit that referenced this issue May 16, 2022
When given routes, we use the host name from the route to deduce a zone id to pass along with the host to set with dev `session`. Route patterns can include leading `*`/`*.`, which we don't account for when deducing said zone id, resulting in subtle errors for the session. This fix strips those leading characters as appropriate.

Fixes #1002
threepointone added a commit that referenced this issue May 16, 2022
When given routes, we use the host name from the route to deduce a zone id to pass along with the host to set with dev `session`. Route patterns can include leading `*`/`*.`, which we don't account for when deducing said zone id, resulting in subtle errors for the session. This fix strips those leading characters as appropriate.

Fixes #1002
threepointone added a commit that referenced this issue May 16, 2022
When given routes, we use the host name from the route to deduce a zone id to pass along with the host to set with dev `session`. Route patterns can include leading `*`/`*.`, which we don't account for when deducing said zone id, resulting in subtle errors for the session. This fix strips those leading characters as appropriate.

Fixes #1002
threepointone added a commit that referenced this issue May 16, 2022
When given routes, we use the host name from the route to deduce a zone id to pass along with the host to set with dev `session`. Route patterns can include leading `*`/`*.`, which we don't account for when deducing said zone id, resulting in subtle errors for the session. This fix strips those leading characters as appropriate.

Fixes #1002
threepointone added a commit that referenced this issue May 16, 2022
#1018)

When given routes, we use the host name from the route to deduce a zone id to pass along with the host to set with dev `session`. Route patterns can include leading `*`/`*.`, which we don't account for when deducing said zone id, resulting in subtle errors for the session. This fix strips those leading characters as appropriate.

Fixes #1002
Repository owner moved this from In Review to Done in workers-sdk May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working
Projects
None yet
2 participants