mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
Unable to add torrents in WebUI #14372
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#14372
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 @HanabishiRecca on GitHub (Feb 27, 2023).
qBittorrent & operating system versions
qBittorrent: 4.5.1 & current master
Operating system: Arch Linux
Qt: 6.4.2
libtorrent-rasterbar: 2.0.8
What is the problem?
Any attempt to add a file or url via WebUI fails. I tried both 4.5.1 and build from current master branch.
Tried different browsers: Firefox 110 & Chromium 110.
Found similar issue: #11701
Client responds with
400on/api/v2/torrents/addendpoint.In logs:
Which points here:
github.com/qbittorrent/qBittorrent@b922e1ae73/src/base/http/requestparser.cpp (L364)As you can see from the code, the client seeks for
filenameornameheaders in the form data.Here is the request content when trying to upload a file:
And indeed strange fact, no
filenameornameheaders here obviously.Same goes for magnet:
No
filenameornameeither.So the question is: what is actually happening? Seems like it messed up somewhere.
Steps to reproduce
No response
Additional context
No response
Log(s) & preferences file(s)
No response
@HanabishiRecca commented on GitHub (Feb 27, 2023):
Diving into
upload.html, nofilenameornamein recent history.I wonder, how it even managed to work earlier?
@HanabishiRecca commented on GitHub (Mar 13, 2023):
Turns out this is some weird Qt bug. Details in https://github.com/qbittorrent/qBittorrent/issues/18654#issuecomment-1466324368