mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
Add trackers to torrent - no validation for special character '|' #15602
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#15602
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 @1aam2am1 on GitHub (Mar 22, 2024).
qBittorrent & operating system versions
Software versions:
qBittorrent: v4.6.3
qBittorrent Web API: 2.9.3
bitness: 64
boost: 1.82.0
libtorrent: 2.0.10.0
openssl: 3.1.5
qt: 6.6.1
Operating system: docker arm64
What is the problem?
POST /api/v2/torrents/addTrackers HTTP/1.1
Api endpoint doesn't have a validation, and can add a tracker with invalid symbol '|', this creates problem that it is impossible to remove such tracker.
Steps to reproduce
Additional context
No response
Log(s) & preferences file(s)
No response
@glassez commented on GitHub (Mar 23, 2024):
Shouldn't a valid URL really contain
|character?@1aam2am1 commented on GitHub (Mar 23, 2024):
It shouldn't have this char, but there is no validation. So it is possible to add a tracker with this character. And it is impossible to remove such tracker as 'removeTrackers' doesn't have escaping character '|' method. And this char is used as tracker separator.
@glassez commented on GitHub (Mar 24, 2024):
Duplicate of #19074
@1aam2am1 commented on GitHub (Mar 24, 2024):
Well, the issue is maybe be duplicate. But we can add fix now. By not changing the api, but the result of adding tracker. We can validate the url to be a valid one. So it shouldn't contain such character. Or only validate for this character. And don't include such trackers/return specified error result is such exists in api.