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

Don't crash when using /plugins install disconnected #1882

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

jubalh
Copy link
Member

@jubalh jubalh commented Aug 28, 2023

When we are not connected and run /plugins install we crash because we get the account struct to check for the (xmpp) tls setting. To apply that to the http (etc) connection to download the plugin from a server.

This got introduced in 3a86b8c to fix #1624.

There are several ways to handle this (some described in 1880) in this patch I took the route that it will use secure connection when we are nto connected and will only check the tls.trust account setting if we are connected.

Fix #1880

I ran valgrind when using my new feature
no

When we are not connected and run `/plugins install` we crash because we
get the account struct to check for the (xmpp) tls setting.
To apply that to the http (etc) connection to download the plugin from a
server.

This got introduced in 3a86b8c to fix #1624.

There are several ways to handle this (some described in 1880) in this
patch I took the route that it will use secure connection when we are
nto connected and will only check the tls.trust account setting if we
are connected.

Fix #1880
@jubalh jubalh added the bug label Aug 28, 2023
@jubalh jubalh added this to the next milestone Aug 28, 2023
@jubalh jubalh requested a review from sjaeckel August 28, 2023 06:00
@jubalh jubalh self-assigned this Aug 28, 2023
Copy link
Member

@sjaeckel sjaeckel left a comment

Choose a reason for hiding this comment

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

I like that approach!

@jubalh jubalh merged commit 8618203 into master Aug 28, 2023
6 checks passed
@jubalh jubalh deleted the fix/1880-pluginsinstall branch August 28, 2023 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/plugins install without connected account crashes /sendfile does not work with self signed cert
2 participants