Skip to content

fix(devtools-proxy-support): handle special characters in SSH URL correctly COMPASS-8254 #469

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

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

addaleax
Copy link
Collaborator

@addaleax addaleax commented Sep 5, 2024

This is unfortunately very obvious in retrospect 😞

@addaleax addaleax changed the title fix(devtools-proxy-support): handle special characters in proxy URL correctly COMPASS-8254 fix(devtools-proxy-support): handle special characters in SSH URL correctly COMPASS-8254 Sep 5, 2024
@@ -92,7 +92,7 @@ export class SSHAgent extends AgentBase implements AgentWithInitialize {
this.logger.emit('ssh:establishing-conection', {
host: sshConnectConfig.host,
port: sshConnectConfig.port,
password: !!sshConnectConfig.passphrase,
password: !!sshConnectConfig.password,
Copy link
Collaborator

Choose a reason for hiding this comment

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

😭

Copy link
Collaborator Author

@addaleax addaleax Sep 5, 2024

Choose a reason for hiding this comment

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

To be fair, this bit is unrelated to the bug itself, but still, yeah, not my smartest move 😅

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah I see now it is just in a logging event 👍

@@ -78,10 +78,10 @@ export class SSHAgent extends AgentBase implements AgentWithInitialize {
const sshConnectConfig: ConnectConfig = {
readyTimeout: 20000,
keepaliveInterval: 20000,
host: this.url.hostname,
host: decodeURIComponent(this.url.hostname),
Copy link
Collaborator

Choose a reason for hiding this comment

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

I can see how this would be easy to miss.

@addaleax addaleax merged commit 7592cfc into main Sep 5, 2024
5 checks passed
@addaleax addaleax deleted the 8254-dev branch September 5, 2024 15:34
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.

3 participants