-
Notifications
You must be signed in to change notification settings - Fork 71
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
WAUrl>>#initializeFromString: error when query parameters include scheme #1216
Comments
I think erroring is correct. I believe
So I don't think ? should be allowed in the query. |
Maybe I misunderstand. I think the error I hit is that there isn't a scheme at the start the string being parsed in FastCGI on GemStone looks at the $request_uri. Nginx defaults to passing the "URL without the scheme/domain/auth/port/" parameters as the $request_uri. I could change what GemStone is using to be the "full URL" I agree a |
The first URL in the first message on this issue is the entire URL, not the query parameter of another URL. Sorry that was unclear. |
Also is there a reason we don't process the URL as a stream? I might mess around with that. |
I see, I misunderstood, we somehow need to know whether the URL starts with a scheme or not. |
I will close the issue as I tried the example you provided, but feel free to reopen when needed! |
Regarding:
It might be worth knowing: the PetitParser grammar for the ‘URI’ rule from RFC 3986 that I gave in a comment on Zinc issue #100 accepts both |
When using Google OAuth2 they make you set absolute URLs as query parameters.
e.g.
https://www.example.com/gmailOauth2Callback?state=743bXEqXLe5PucpZLW92&code=4/1wH1DIitgV-Ko-AezApV730SJ-Sx5M64ww5ttygg5QT5eJ3GGG3KB8yJgiH-V02XJx84_DNdpGfPpZKz0XzunNg&scope=https://www.googleapis.com/auth/gmail.compose%20https://www.googleapis.com/auth/gmail.metadata
GemStone's fastcgi uses just the $request_uri part:
/gmailOauth2Callback?state=743bXEqXLe5PucpZLW92&code=4/1wH1DIitgV-Ko-AezApV730SJ-Sx5M64ww5ttygg5QT5eJ3GGG3KB8yJgiH-V02XJx84_DNdpGfPpZKz0XzunNg&scope=https://www.googleapis.com/auth/gmail.compose%20https://www.googleapis.com/auth/gmail.metadata
of the initial URL.
WAUrl>>#initializeFromString:
parses the scheme part of those query parameters as the initial scheme for the whole URL and then signals a syntax error.I'll submit a PR for a fix for this issue. But maybe it should be part of a fix for #551
The text was updated successfully, but these errors were encountered: