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

Fix FTP test segfault #1777

Merged
merged 2 commits into from
May 19, 2022
Merged

Fix FTP test segfault #1777

merged 2 commits into from
May 19, 2022

Conversation

julianoes
Copy link
Collaborator

@JonasVautherin I think the fix you suggested in #1774 does not work in general.

Removing a system is not really supported, so in the case of the FTP test, the ftp plugin is already created from the fake plugin and removing it has bad effects, in this case a segfault.

This PR reverts your commit and adds a commit which instead triggers a discovery notification when a fake system changes to a real system.

However, in the future, given the server components - I think - we can remove the fake system completely. However, this requires us to split the FTP plugin into client and server. That's something I wanted to do but haven't gotten to yet.

julianoes added 2 commits May 19, 2022 13:27
This makes sure we notify the user when a system actually connects after
it has been created in anticipation that it will eventually exist.
@julianoes julianoes added the bug label May 19, 2022
@julianoes julianoes requested a review from JonasVautherin May 19, 2022 04:23
Copy link
Collaborator

@JonasVautherin JonasVautherin left a comment

Choose a reason for hiding this comment

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

Oh right. I thought about that, and then settled on the other way, thinking that nobody would use the "fake system". But a server component does, indeed 🤦‍♂️.

Thanks a lot!

@JonasVautherin JonasVautherin merged commit dc67eb5 into main May 19, 2022
@JonasVautherin JonasVautherin deleted the pr-fix-ftp-segfault branch May 19, 2022 07:58
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.

2 participants