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

debugSource use uri.from #74781

Merged
merged 2 commits into from
Jun 3, 2019
Merged

debugSource use uri.from #74781

merged 2 commits into from
Jun 3, 2019

Conversation

isidorn
Copy link
Contributor

@isidorn isidorn commented Jun 3, 2019

Tackles issue outlined here #73849

Tested this a bit and does not seem to break.

this.uri = uri.from({
scheme: DEBUG_SCHEME,
path,
query: `session=${encodeURIComponent(sessionId)}&ref=${this.raw.sourceReference}`
Copy link
Member

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 &?

Copy link
Contributor Author

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check

Copy link
Contributor

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.

Copy link
Contributor Author

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

@isidorn
Copy link
Contributor Author

isidorn commented Jun 3, 2019

@weinand merging this in. Let's keep our eyes open for potential regressions.

@isidorn isidorn merged commit 038f563 into master Jun 3, 2019
@isidorn isidorn deleted the isidorn/debugSourceUriFrom branch June 3, 2019 12:22
@github-actions github-actions bot locked and limited conversation to collaborators Mar 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants