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

Allow redirects for /plugins install and add emptiness check for downloaded files #1922

Merged

Conversation

H3rnand3zzz
Copy link
Contributor

How to test the functionality

Use /plugins install <redirect_link>, e.g. /plugins install https://github.com/profanity-im/profanity-plugins/raw/master/stable/syscmd.py

To test emptiness check, I would suggest finding some empty file that ends up with .c or .py for the purpose of testing.

Fix #1901

@H3rnand3zzz H3rnand3zzz changed the title Fix/plugins install follow redirect Fix /plugins install follow redirect Nov 10, 2023
@H3rnand3zzz H3rnand3zzz changed the title Fix /plugins install follow redirect Allow redirects for /plugins install and add emptiness check for downloaded files Nov 10, 2023
Empty file is not a normal condition for file downloading,
thus user has to be notifed.

Related to profanity-im#1901
@H3rnand3zzz H3rnand3zzz force-pushed the fix/plugins-install-follow-redirect branch from ef69486 to 092b553 Compare November 10, 2023 19:05
@jubalh jubalh merged commit 1d3378a into profanity-im:master Nov 10, 2023
6 checks passed
@H3rnand3zzz H3rnand3zzz deleted the fix/plugins-install-follow-redirect branch November 11, 2023 07:33
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.

/plugin install does not work with redirect links + occasional crash
2 participants