mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
Qt GUI tracklist filter widget may display wrong top-level domain for tlds like .co.uk #14634
Labels
No labels
Accessibility
AppImage
Bounty
Build system
CI
Can't reproduce
Code cleanup
Confirmed bug
Confirmed bug
Core
Crash
Data loss
Discussion
Docker
Documentation
Duplicate
Feature
Feature request
Feature request
Feature request
Filters
Flatpak
GUI
Has workaround
I2P
Invalid
Libtorrent
Look and feel
Meta
NSIS
Network
Not an issue
OS: *BSD
OS: Linux
OS: Windows
OS: macOS
PPA
Performance
Project management
Proxy/VPN
Qt bugs
Qt6 compat
RSS
Search engine
Security
Temp folder
Themes
Translations
Triggers
Waiting diagnosis
Waiting info
Waiting upstream
Waiting web implementation
Watched folders
WebAPI
WebUI
autoCloseOldIssue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/qBittorrent#14634
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ttys3 on GitHub (May 29, 2023).
qBittorrent & operating system versions
qBittorrent v4.5.2
Linux Fedora 38
Qt: 6.4.2
Libtorrent: 2.0.8.0
Boost: 1.78.0
OpenSSL: 3.0.8
zlib: 1.2.13
What is the problem?
found the issue during this PR: https://github.com/qbittorrent/qBittorrent/pull/18190
the GUI version has a bug dealing with hostname.
in
QString getHost(const QString &url)(github.com/qbittorrent/qBittorrent@ecc08dee09/src/gui/transferlistfilters/trackersfilterwidget.cpp (L76))it simply do
host.section(u'.', -2, -1), which will causehttps://www.google.co.ukbecomeco.uk, not the rightgoogle.co.ukSteps to reproduce
just copy the
QString getHost(const QString &url)func out, and do some tests:Additional context
No response
Log(s) & preferences file(s)
No response
@ttys3 commented on GitHub (May 30, 2023):
or, maybe take this comment ? https://github.com/qbittorrent/qBittorrent/pull/18190#issuecomment-1567697482
@Chocobo1 commented on GitHub (May 30, 2023):
If my memory serves me right, we did try that but was quickly reverted due to users backlash, I'm not really sure.
I don't mind if someone wants to try it. 😉
@stalkerok commented on GitHub (May 30, 2023):
Maybe you can make it so that if this is still one tracker, then the user himself could combine it into one?
@glassez commented on GitHub (May 31, 2023):
It looks like it could be implemented through something like tracker aliases, e.g. if given
example.com=tracker1.example.com;tracker2.example.com, then they are all counted asexample.com.@ttys3 commented on GitHub (Jun 2, 2023):
good to see https://github.com/qbittorrent/qBittorrent/pull/19062
@tearfur commented on GitHub (Jun 2, 2023):
I did some tracing, here is the history of the relevant code in reverse chronological order (as far as I can tell).
It doesn't look like there was any backlash/revert of sorts, so I think it is worth a try to try use hostnames instead.
0dcb65bb7csrc/gui/transferlistfilterswidget.cpptosrc/gui/transferlistfilters/trackersfilterwidget.cpp802ec5a14e9f0429ca6fgetHost()fromTrackerFiltersListto anonymous namespace15b2811fa5QUrl::topLevelDomain()to the current implementation. It doesn't look there was any (intentional) change in behaviourf0d5ce4b98@stalkerok commented on GitHub (Oct 31, 2023):
@glassez, if you can find the time to implement this, that would be very nice. Thanks.
@glassez commented on GitHub (Oct 31, 2023):
@stalkerok
Is there really a lot of such trackers (having multiple subdomains) in the wild?
@stalkerok commented on GitHub (Oct 31, 2023):
Quite a lot. For example
or
It is the same tracker. You can put any digit instead of the tracker number and it will work.
More examples
There are only 4 trackers in the screenshot

@glassez commented on GitHub (Oct 31, 2023):
I wonder what is the point in such subdomains...