-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
debugSource use uri.from #74781
debugSource use uri.from #74781
Conversation
this.uri = uri.from({ | ||
scheme: DEBUG_SCHEME, | ||
path, | ||
query: `session=${encodeURIComponent(sessionId)}&ref=${this.raw.sourceReference}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any special reason why you encode sessionId
. Can this contain =
or &
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this should be a hex UUID. So I will remove the encode / decode part of the sessionID
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@isidorn make sure to remove the corresponding decodeURIComponent call too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@weinand I just removed it. Thanks
@weinand merging this in. Let's keep our eyes open for potential regressions. |
Tackles issue outlined here #73849
Tested this a bit and does not seem to break.