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

fixed: Use exact matching for protocol in file+dir factories (fixes vfs.sftp addon issue #37) #16511

Merged
merged 1 commit into from Aug 23, 2019

Conversation

arnova
Copy link
Member

@arnova arnova commented Aug 19, 2019

Previously we did not use an exact match to compare the protocol in file/dir factory causing eg. "ftp" to be matched in "sftp". Furthermore we weren't consistent preferring internally supported protocols over addon provided protocols.

This fixes xbmc/vfs.sftp#37

@arnova arnova added Type: Fix non-breaking change which fixes an issue Backport: Needed v19 Matrix labels Aug 19, 2019
@arnova arnova added this to the Matrix 19.0-alpha 1 milestone Aug 19, 2019
@notspiff
Copy link
Contributor

split fix is correct, i disagree on the prefering internals - that voids the ability to override implementations.

@arnova
Copy link
Member Author

arnova commented Aug 19, 2019

split fix is correct, i disagree on the prefering internals - that voids the ability to override implementations.

Yes I already had doubts about this. Overriding internals may be useful but obviously this comes with the downside that you can completely screw up your setup when you install a broken (or malicious) addon. I don't mind changing it so that it prefers addons as long as it's consistent (which it previously wasn't in File vs. Dir factory)

…fs.sftp addon issue xbmc#37)

changed: Consistently prefer addon protocols over internal protocols
@arnova
Copy link
Member Author

arnova commented Aug 19, 2019

@notspiff : Updated

Copy link
Member

@AlwinEsch AlwinEsch left a comment

Choose a reason for hiding this comment

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

Find this way much better, with before e.g. it search "abc" which have addon No. 3 and the first addon have "abcD" then the wrong was used. The '|' check is there perfect.

@arnova
Copy link
Member Author

arnova commented Aug 23, 2019

@notspiff : Ok, as is?

@arnova
Copy link
Member Author

arnova commented Aug 23, 2019

jenkins build this please

@arnova arnova merged commit 717bcf6 into xbmc:master Aug 23, 2019
@arnova arnova deleted the protocol_factory_fix branch March 29, 2021 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backport: Done Type: Fix non-breaking change which fixes an issue v19 Matrix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add-on breaks regular FTP connections
3 participants