Skip to content

Releases

v5.3.28

Choose a tag to compare

@xirvik xirvik released this 03 Dec 03:16
afb8197

Security

  • #3612 tracklabels: tracker icons are fetched only from public addresses. A request naming an internal host, an IP literal such as 127.0.0.1 or
    169.254.169.254, or a public host redirecting to one, made the web server send requests into its own network and return image answers. Every redirect hop is
    checked, answers are capped at 256 KiB, and $httpPrivateNetworkAllowlist exempts a tracker on a private network.
  • #3611 Snoopy: the private-network check ($httpBlockPrivateNetworks) judges addresses the same on every PHP version. On 7.4 and 8.1 an IPv4-mapped address such
    as ::ffff:127.0.0.1 passed it; multicast, NAT64 and 6to4 addresses passed on every version.

Data safety

  • #3614 erasedata: a multi-file torrent added with "Don't add the torrent's name to the path" no longer has the directory it was added to removed, and "Delete
    data (with path)" no longer deletes that directory recursively with other downloads' files in it. Only the torrent's own files go; the base is removed only
    when it is the torrent's own /.

Interface

  • #3609 General tab: when rTorrent has cleared the torrent's message after a successful announce, Tracker Status shows a summary of the trackers' states, and
    the Tracker URL and Tracker Status tooltips list every tracker with its status.
  • #3607 Trackers tab: each tracker shows its announce status, with the tracker's error or warning message on rTorrent 0.16.29. Switching the daemon to an older
    build while the page is open falls back without a reload.
  • #3603 Repeated identical errors are shown once with a count, in the notification and in the log.
  • #3605 The WebUI retries loading its settings during startup instead of staying on the loading screen after one failed request.
  • #3604 rss, trafic: resizing the window while the page is still loading no longer throws or queues resize timers.

Plugins

  • #3613 rss: the feed list is answered from stored feeds instead of fetching every feed first, so one slow or unreachable feed no longer empties the list with a
    timeout. An RSS timeout has its own message, and only one reload is pending at a time. Fixes #3608.
  • #3606 check_port: the IPv4 and IPv6 checks share one timeout, and one hung request can no longer leave the other address family unchecked.
  • #3615 check_port: opening the page reuses a recent Open result for the same port, address and settings instead of checking again ($checkPortCacheTTL, default
    3600 s, 0 turns it off). Closed and unknown results are always checked again, and Refresh Port Status and Force Port always check.

What's Changed

  • ui: collapse repeated errors in notifications and the log by @IvanShift in #3603
  • rss, trafic: guard resize during initialization by @IvanShift in #3604
  • ui: retry loading settings during startup by @IvanShift in #3605
  • check_port: share the timeout across address families by @IvanShift in #3606
  • webui: show per-tracker announce status by @IvanShift in #3607
  • Snoopy: judge public addresses the same on every PHP version by @xirvik in #3611
  • tracklabels: fetch tracker icons from public addresses only by @xirvik in #3612
  • webui: summarise tracker states in General tab and tooltips by @IvanShift in #3609
  • erasedata: keep the directory a download was added to by @xirvik in #3614
  • rss: list feeds from the cache instead of fetching them by @xirvik in #3613
  • check_port: reuse recent definitive results when opening the page by @IvanShift in #3615
  • Bump version to 5.3.28 by @xirvik in #3617

Full Changelog: v5.3.27...v5.3.28

v5.3.27

Choose a tag to compare

@xirvik xirvik released this 27 Nov 01:25
a8857a1

Core

  • #3600 On rTorrent 0.16.29 (and builds that backport the change), fast-resume adds, edits of a complete torrent, datadir fast-resume moves and create-and-seed keep their progress instead of running a full hash check, by using the new load.*_edited commands when the daemon offers them.

Interface

  • #3601 Settings: options rTorrent ignores (use_udp_trackers since 0.16.12, dht_port since 0.16.1, timeout_safe_sync since 0.16.18) are disabled with a note, and the obsolete hash_* fields are removed again. Fixes #3599.

What's Changed

  • Keep fast-resume progress on rtorrent 0.16.29 with the _edited loads by @xirvik in #3600
  • Settings: do not offer settings rTorrent ignores by @xirvik in #3601
  • Bump version to 5.3.27 by @xirvik in #3602

Full Changelog: v5.3.26...v5.3.27

v5.3.26

Choose a tag to compare

@xirvik xirvik released this 26 Nov 17:03
d02e125

Changes since v5.3.25

Interface

  • #3591 Row status icons are kept when Tracker (or another column) is the first column and its cell is updated in place. Fixes #3590.
  • #3594 Name cells keep the label markup when they are updated in place, instead of falling back to plain text.

Plugins

  • #3589 datadir: before the fast-resume erase during a move, a copy of the download's session file is saved, so the download can be recovered if the reload fails.
  • #3595 datadir: the recovery copy is removed once the reloaded download is listed, with the reload polled for up to 60 s, so busy clients no longer accumulate stray copies; a copy is kept only when the reload cannot be confirmed, and the log line says what to do with it.
  • #3596 datadir: a download that was started but not yet active (queued for or in its hash check) is stopped and started again around a move, instead of being left started but inactive until rtorrent restarts.
  • #3592 extsearch: opening the Settings dialog or the search menu no longer saves all UI settings, so a tab opened earlier can no longer overwrite settings changed since in another tab.

Development

  • #3593 Tests: the SCGI transport fixture waits for its peer process for as long as it runs, fixing an intermittent failure on busy runners.
  • #3597 Tests: the loginmgr listener record is read whole, fixing an intermittent failure, and php-test.sh names every failing test file and why.

What's Changed

  • Keep the status icon when the first column is updated in place by @xirvik in #3591
  • extsearch: save the search only when it changes by @xirvik in #3592
  • datadir: save a copy before fast resume erase by @IvanShift in #3589
  • tests: wait for the SCGI fixture peer while it runs by @xirvik in #3593
  • datadir: remove the recovery copy when the download is listed by @xirvik in #3595
  • Keep the label markup when a cell is updated in place by @xirvik in #3594
  • datadir: start a download again that was started but not yet active by @xirvik in #3596
  • Tests php85 intermittent by @xirvik in #3597
  • Bump version to 5.3.26 by @xirvik in #3598

Full Changelog: v5.3.25...v5.3.26

v5.3.25

Choose a tag to compare

@xirvik xirvik released this 24 Nov 16:07
91f966a

Core

  • #3579 Editing a torrent (edit plugin) or updating its trackers (retrackers plugin) now checks the download directory before the torrent is erased for the reload. A directory the reload would refuse no longer leaves the torrent removed from the list; edit reports the directory error instead.
  • #3581 rCache logs a lock or temporary file it cannot open (a directory in the way, a read-only settings directory) to the ruTorrent log instead of raising a PHP warning. Return values are unchanged.

Interface

  • #3587 Adding torrents and the log_history plugin work again when the page is opened with credentials in its address (http://user:pass@host/). fetch() rejected those addresses before sending anything; requests now go out without the credentials in the URL, and the browser still sends the ones it has for the page. Fixes #3586.

Plugins

  • #3583 telegram: a queued record that cannot be removed (for example a directory named 0001.event) no longer makes the queue drain loop and log without end, and a sent record that cannot be removed is no longer sent again on every pass. Such entries are logged once and skipped.
  • #3585 create: with torrenttools as the creator, every torrent was made hybrid (v1 and v2) even with the hybrid box unticked. A hybrid torrent is now made only when the box is ticked.
  • #3585 autotools, datadir: a hard link that falls back to a copy (as it does across filesystems) no longer logs a warning for each file.
  • #3585 httprpc: a cache directory that cannot be made or written to no longer logs a warning on every list request; listing is done in full, as before.

Development

  • #3580 Tests for the telegram drain on an unreadable record and for a restored mobile label filter before the label panel is filled.
  • #3582 Tests call setAccessible() only before PHP 8.1, removing the PHP 8.5 deprecations from the test output; two test stand-ins no longer raise notices.
  • #3584 The PHP test runner fails a test file on any PHP warning, notice, deprecation or error, in the test and in the PHP processes it starts; tests that provoke one declare it. CI runs PHP without Xdebug and with the JIT off to avoid startup warnings.
  • #3585 Test drivers no longer start child PHP processes with error_reporting=0, so diagnostics in the code they run fail the test file.

What's Changed

Full Changelog: v5.3.24...v5.3.25

v5.3.24

Choose a tag to compare

@xirvik xirvik released this 23 Nov 03:05
5ed1c14

Security

  • XML-RPC proxy: commands that store another command for rTorrent to run later (directory watches, view filters/sorts/events, group inserts, Lua, file.append) are refused at both entry points, rpc2.php and httprpc, whatever the daemon's own trust handling (#3573)
  • XML-RPC proxy: rTorrent's old names for refused commands (directory, session, scgi_port, scgi_local, and d.directory.base.set on 0.16) are refused too, so they no longer bypass the directory and session checks (#3571)

Core

  • The Settings dialog loads and saves through rpc2.php (httprpc disabled) instead of failing with "403 [error,getsettings]" (#3564)
  • httprpc: names, labels, file paths, trackers, messages and the default directory holding a quote or a backslash show as rTorrent reports them instead of escaped (#3566)
  • Torrent creator: file order no longer uses strcoll(), deprecated in PHP 8.6 (#3576)

Interface

  • Settings: values shown in a larger unit (memory, upload and download rates) are no longer rewritten on every Save, and the rpc2.php path no longer reports a fault on each Save (#3572)
  • Settings: pressing OK with nothing changed no longer resends the scheduler, XMPP and cookies settings; switching XMPP advanced settings off is now saved (#3575)

Plugins

  • erasedata: a file is kept whenever it cannot be told whether another download still uses it, including paths PHP 8.6 refuses to stat and directories PHP cannot search (#3577)
  • datadir: a move whose reload rTorrent would refuse is stopped before the download is erased, instead of losing the download or loading a different torrent in its place (#3569)
  • rutracker_check: a replacement that would put the data in a different directory is refused, instead of re-downloading everything and leaving the original copy untracked (#3568)
  • datadir, rutracker_check: labels, directories, throttles and seed settings holding a quote or a backslash are kept when a torrent is moved or replaced (#3565)
  • _getdir: labels holding a quote or a backslash are listed as they are (#3563)
  • rss: opening Settings before the RSS settings have loaded no longer overwrites the saved update interval with the default (#3574)
  • mobile: the selected filters are remembered across reloads (#3567)

Development

  • CI: the Node jobs run on Node 26 (#3562)

What's Changed

  • CI: run the node jobs on Node 26 by @xirvik in #3562
  • _getdir: list a label that holds a quote or a backslash as it is by @IvanShift in #3563
  • Let the Settings dialog load through rpc2.php by @xirvik in #3564
  • Keep a label that holds a quote or a backslash on reload by @xirvik in #3565
  • Httprpc unescape strings by @xirvik in #3566
  • Settings: do not rewrite an unchanged value shown in a larger unit by @xirvik in #3572
  • xmlrpc proxy: refuse rtorrent's old names of refused commands by @xirvik in #3571
  • rutracker_check: refuse replacements that would change directory by @IvanShift in #3568
  • datadir: check reload refusals before erasing by @IvanShift in #3569
  • mobile: remember selected filters across reloads by @jakobbg in #3567
  • xmlrpc proxy: refuse commands that store a command to run later by @xirvik in #3573
  • rss: keep the saved update interval when Settings opens before it loads by @xirvik in #3574
  • Settings noop ok by @xirvik in #3575
  • Torrent: order created torrent files without strcoll() by @xirvik in #3576
  • erasedata: keep a file when it cannot tell whether another download uses it by @xirvik in #3577
  • Bump version to 5.3.24 by @xirvik in #3578

Full Changelog: v5.3.23...v5.3.24

v5.3.23

Choose a tag to compare

@xirvik xirvik released this 16 Nov 01:50
95ab8cb

Security

  • erasedata: "Remove and delete data" no longer deletes files outside the download when a name holds a quote or a backslash; files another loaded torrent still uses are kept (#3550)
  • unpack: archive names are no longer treated as wildcard patterns, so unpack no longer extracts, or deletes after unpacking, archives in other directories; RAR paths containing * or ? are refused with a logged reason, and archives to delete are passed one by one, so a path holding ; can no longer delete the wrong file (#3553, #3558)

Core

  • Adding torrents uses fetch() instead of a hidden frame, so the result shows correctly when a server sends X-Frame-Options: DENY or sits behind a TLS proxy; uploads posted directly to addtorrent.php are redirected relatively unless a public base URL is configured (#3535, #3534)
  • rtorrent's default, session and home directories are stored as rtorrent reports them, so paths holding a quote or a backslash work in automove, watch folders, fast resume and the plugin start-up checks; a ' in the session directory no longer breaks loading the interface (#3556, #3559)

Interface

  • The toolbar search has a clear button, hidden while an external search is pending so its query is kept (#3548, #3552)
  • A failed external search makes the search field editable again and reports the error (#3557)

Plugins

  • Paths, names and labels holding a quote or a backslash now work in data (Get File), mediainfo, screenshots, spectrogram, unpack, extratio and autotools labels (#3539, #3542, #3543, #3544, #3545, #3546, #3549)
  • spectrogram: SoX no longer treats file names as wildcards, so it reads the right file and shows the real name in the title (#3544)
  • datadir: moving data with names holding a quote or a backslash moves the files instead of repointing the torrent at an empty location (#3560)
  • autotools: & and = survive in saved settings (label templates, filters, folders) (#3554); files with only a UTF-8 path are moved (#3536)
  • _getdir: no warnings when a parameter is missing; ArrowLeft opens only the parent folder (#3555)
  • telegram: {SIZE}, {LABEL} and {RATIO} in message templates (#3530); a notification when a hash check finds a completed torrent incomplete (#3532); an unreadable queued notification is kept and reported instead of deleted (#3540)
  • retrackers: logs when a torrent's source file is unavailable (#3541)

Development

  • Tests: log streams close after a throwing write (#3538); makeDirectory permissions under umask (#3537); the zero-name torrent comparison no longer depends on the creation date (#3531)

What's Changed

  • telegram: add {SIZE}, {LABEL} and {RATIO} to the message templates by @Heliedan in #3530
  • Compare the zero-name torrents without their creation date by @xirvik in #3531
  • telegram: notify when a hash check finds a complete torrent incomplete by @Heliedan in #3532
  • autotools: move files with a UTF-8-only path by @IvanShift in #3536
  • tests: cover makeDirectory permissions under umask by @IvanShift in #3537
  • telegram: keep a queued notification that cannot be read by @IvanShift in #3540
  • retrackers: log when the source torrent is unavailable by @IvanShift in #3541
  • data: send the file when its path holds a quote or a backslash by @IvanShift in #3539
  • mediainfo: find the file when its path holds a quote or a backslash by @IvanShift in #3542
  • screenshots: find the file when its path holds a quote or a backslash by @IvanShift in #3543
  • unpack: find the archives when a path, name or label holds a quote or… by @IvanShift in #3545
  • extratio: match a rule against a label that holds a quote or a backslash by @IvanShift in #3546
  • tests: verify log streams close after a throwing write by @IvanShift in #3538
  • Add a clear button to the toolbar search by @xirvik in #3548
  • Add torrents with fetch() instead of a hidden frame by @xirvik in #3535
  • addtorrent: redirect an upload relatively unless a public base is set by @xirvik in #3534
  • spectrogram: give SoX the file's own name after --no-glob by @IvanShift in #3544
  • erasedata: delete the files when a path holds a quote or a backslash by @IvanShift in #3550
  • autotools: label a download by a directory that holds a quote or a backslash by @IvanShift in #3549
  • unpack: handle archive name patterns by @IvanShift in #3553
  • Keep an external search query while its request is pending by @IvanShift in #3552
  • autotools: keep & and = in saved settings by @xirvik in #3554
  • Getdir escape names by @xirvik in #3555
  • Keep rtorrent's default directory as reported by @xirvik in #3556
  • extsearch: give the query back when a search fails by @xirvik in #3557
  • unpack: pass archives to delete as arguments by @xirvik in #3558
  • Keep rtorrent's session and home directories as reported by @xirvik in #3559
  • Datadir move unescape by @xirvik in #3560
  • Bump version to 5.3.23 by @xirvik in #3561

Full Changelog: v5.3.22...v5.3.23

v5.3.22

Choose a tag to compare

@xirvik xirvik released this 08 Nov 02:32
029425b

New

  • Telegram notification plugin: queued, batched messages for added, finished and removed torrents (#3274)
  • Seedingtime fills a missing time from rTorrent's own finished time (#3526)

Data safety

  • Erasedata keeps files that another loaded torrent still uses: cross-seeds, a pack and one of its files,
    symlinks (#3523)
  • "Delete Path" keeps its flag with httprpc enabled (#3525)
  • Edit and Retrackers no longer delete the download's tied .torrent file (#3518)

Paths with a quote or a backslash

  • Edit (#3509), Source (#3516), Retrackers (#3524) and Dump (#3527) find the torrent file
  • XMLRPC faults are told apart from values that contain "faultCode" (#3521)

rTorrent 0.16

  • Retrackers waits for the session copy rTorrent 0.16 writes later (#3528)
  • d.check_hash works through the XMLRPC proxy (#3522)

Other fixes

  • 32-bit PHP: torrent integers past 2 GiB (#3512), and the PHP suite runs on 32-bit in CI (#3520)
  • _task: kills only a task's own tree, and quotes the task's path for sh (#3506, #3519)
  • AutoTools Move keeps pointing at its data when the label is its folder (#3501, #3515)
  • Feeds show rTorrent's strings unescaped, names that are not UTF-8, and the tracker status (#3510, #3517)
  • fastResume refuses a torrent it cannot read instead of throwing (#3511)
  • The mobile page survives a settings save that holds its lock (#3507)
  • The CPU load graph keeps only the last three minutes (#3513)
  • UTF::display() stays correct under PHP 8.1's tracing JIT (#3502)
  • The log keeps O_APPEND, opening r+b only when ab is refused (#3505)

Development

  • PHP formatted to PER Coding Style 3.0 and checked by PHP-CS-Fixer in CI (#3503), with git blame pointed past
    the formatting commits (#3504)
  • Test-suite umask fix (#3508)

What's Changed

  • Php per cs formatting by @xirvik in #3503
  • Point git blame at the formatting commits on master by @xirvik in #3504
  • _task: kill a task's tree only while its pid still runs the task by @IvanShift in #3506
  • FileUtil: keep O_APPEND in toLog() and open r+b only when ab is refused by @IvanShift in #3505
  • Keep an AutoTools Move pointed at its data when the label is its folder by @IvanShift in #3501
  • edit: find the torrent file when its path holds a quote or a backslash by @IvanShift in #3509
  • feeds: print rTorrent's strings unescaped and show the tracker status by @IvanShift in #3510
  • fastResume: refuse a torrent it cannot read instead of throwing by @IvanShift in #3511
  • fix decode_integer for 32-bit systems by @kaloyan13 in #3512
  • Pass the PHP test suite on 32-bit PHP, and run it in CI by @xirvik in #3520
  • mobile: keep the page while the settings save holds its lock by @IvanShift in #3507
  • UTF: keep display() right under PHP 8.1's tracing JIT by @IvanShift in #3502
  • tests: clear the owner's bits of the umask the PHP suite runs under by @IvanShift in #3508
  • cpuload: keep only the last three minutes in the status bar graph by @Heliedan in #3513
  • autotools: read the label as move.php does and compare it as a folder by @IvanShift in #3515
  • source: find the zipped torrent files when their paths hold a quote or a backslash by @IvanShift in #3516
  • feeds: show a name, label or comment that is not UTF-8 by @IvanShift in #3517
  • edit, retrackers: do not delete the download's tied .torrent file by @IvanShift in #3518
  • _task: quote a task's path for sh, keep a task its kill left running by @IvanShift in #3519
  • Tell an XMLRPC fault from a value that contains "faultCode" by @IvanShift in #3521
  • xmlrpc proxy: add sanitization exception for d.check_hash by @notfirecc in #3522
  • retrackers: find the torrent file when its path holds a quote or a backslash by @IvanShift in #3524
  • ttprpc: stop dropping the flag of erasedata's "Delete Path" by @IvanShift in #3525
  • erasedata: keep the files another loaded torrent still uses by @IvanShift in #3523
  • Telegram Notification Plugin by @drrako in #3274
  • seedingtime: fill a missing time from the finished time by @xirvik in #3526
  • dump: find the torrent when its path holds a quote or a backslash by @xirvik in #3527
  • retrackers: wait for the session copy rtorrent 0.16 writes later by @xirvik in #3528
  • Bump version to 5.3.22 by @xirvik in #3529

New Contributors

Full Changelog: v5.3.21...v5.3.22

v5.3.21

Choose a tag to compare

@xirvik xirvik released this 03 Nov 17:32

Security

  • Unpack: each archive is extracted into its own empty directory. Symbolic links in archives are refused (unrar runs with -ol-, so it never creates them), and nothing is written through a link already in the output folder. A refusal names the entry in the task log and in errors.log. Behaviour changes: links in archives are no longer recreated, extracted files get u+rwX, and a file replaced by an unpack becomes a new inode. (#3494)
  • Create: a folder that holds a link resolving outside the top directory, or a link that does not resolve, is refused before any creator starts. This includes mktorrent and the other external creators, which follow links. (#3493)
  • The top-directory check refuses . and .. in the part of a path that does not exist yet. It also stops at the root under an open_basedir that hides it, and clears PHP's realpath cache before checking. (#3492)

Core

  • The log is written even when another user owns it in a sticky directory such as /tmp (fs.protected_regular). A write that fails no longer leaves the lock held, and a stalled writer no longer hangs every request that logs. (#3496, fixes #3495)
  • A torrent's source file is found when the session or tied-file path contains a backslash or a double quote. (#3491)

Interface

  • Users can choose between the desktop and the mobile UI: ?mobile=0 or ?mobile=1, remembered per device. The mobile settings page has a "Desktop version" button, and Settings > General has an "Interface" choice. Windows tablets and 2-in-1 devices are no longer stuck in the mobile UI. Arguments like mobile=10 or xmobile=1 no longer select it. (#3497)

Plugins

  • Tasks: cancelling a task stops its whole process tree. Before, the program doing the work (createtorrent.php, unrar, unzip) kept running to the end. (#3499)

Themes

  • RSS Manager filter names are readable in Oblivion and OblivionBlue, and the URL rewrite rules list in Dark, DarkBetter and MaterialDesign. (#3498, fixes #3487)

Localization

  • The new interface strings are translated in every language file; native speakers have not reviewed them. (#3497)

Development

  • An incomplete PHP test run now fails the suite, and source paths are preserved. (#3452)

What's Changed

  • Unescape the session and tied paths in rTorrent::getSource() by @IvanShift in #3491
  • tests: reject incomplete PHP test runs by @IvanShift in #3452
  • Stop isInsideTopDirectory() at the root and at .. in a missing tail by @IvanShift in #3492
  • Refuse to create from a folder holding a link out of the top directory by @IvanShift in #3493
  • Unpack each archive into its own empty directory and keep links out by @IvanShift in #3494
  • Write the log when another user owns it in a sticky directory by @xirvik in #3496
  • mobile: let the user choose the desktop or the mobile UI by @xirvik in #3497
  • rss: readable filter and rule names in dark themes by @xirvik in #3498
  • _task: kill the whole process tree of a task by @xirvik in #3499
  • Bump version to 5.3.21 by @xirvik in #3500

Full Changelog: v5.3.20...v5.3.21

v5.3.20

Choose a tag to compare

@xirvik xirvik released this 30 Oct 04:53

Security and privacy

  • Directories are kept inside $topDirectory once symbolic links are
    followed, not only as written. A user who can create links in their own
    tree could previously point the Add Torrent base directory, a datadir move,
    the httprpc default directory, AutoTools' finished and watch directories,
    unpack's output directory or create's source at a link leading outside it,
    and rtorrent or the plugin then wrote, moved, extracted or hashed data
    there.
  • The Add Torrent base directory is validated before anything reaches
    rtorrent: a value no filesystem can hold (a pasted URL or magnet link) is
    refused instead of loading a download that can never start, and a plain
    /name is read as a folder under the download area.
  • External links decode special-scheme hosts before checking them, so RSS and
    lookat no longer store links whose encoded host the browser refuses.
  • A task whose pid file reads as 1 is no longer killed as init's children.
  • The log warns about PHP below 8.0 and rTorrent below 0.16.27, which
    carries a fix for a buffer overflow in parsing a DNS reply.

Fixes

  • Torrent names and paths that are not UTF-8 keep their bytes: add-torrent
    notifications show them as \xNN instead of �, filesystem shell fallbacks
    quote them without depending on the locale (on 32-bit PHP a download over
    2 GiB next to such a name was sent with the wrong size), and three more
    basename() calls keep non-ASCII names on PHP 7.4, as does a non-ASCII move
    destination.
  • Fast resume records the paths the daemon will load, including the
    name.utf-8/path.utf-8 aliases libtorrent 0.16.25 and later use, so a
    resumed torrent no longer stays inactive with no message.
  • AutoTools uses the basename rtorrent wrote for a single-file torrent, and a
    download skipped by "Skip torrents that contain files matching the pattern"
    stays pointed at its data.
  • A private torrent's info hash is no longer randomized when adding it.
  • Malformed httprpc list responses are reported and refused before they reach
    the torrent list, which previously stopped updating until a reload.
  • The ratio plugin sets group limits through group2.* on 0.9.4 up to 0.15,
    where some patched 0.9.8 builds define only that, instead of failing to
    start and leaving rtorrent's built-in limits in force.
  • extsearch sizes its results to the layout.

Translations

  • The first line of the Log tab is translated.
  • The new log warnings are translated in every language file.

Tests

Shared helpers for byte-preserving display and shell quoting, and display
names taken from a torrent's own metadata, land ahead of their callers. rTorrent
probe fixtures are cleaned up after a failed setup.

What's Changed

  • Fix/add directory validation by @xirvik in #3469
  • Set ratio group limits through group2 below 0.15 by @xirvik in #3472
  • Warn in the log about an outdated PHP or rTorrent by @xirvik in #3473
  • Size the extsearch results by the layout by @xirvik in #3479
  • autotools: use the actual single-file basename by @IvanShift in #3475
  • Warn about rTorrent releases before 0.16.27 by @xirvik in #3481
  • Keep a non-ASCII move destination on PHP 7.4 by @xirvik in #3480
  • Add helpers for byte-preserving text display and shell quoting by @IvanShift in #3476
  • rtorrent: keep fast resume to the paths the daemon will load by @IvanShift in #3477
  • _task: refuse pid 1 when killing a task by @IvanShift in #3478
  • autotools: keep a skipped Move pointed at its data by @IvanShift in #3482
  • Tests: clean up rTorrent probe fixtures after setup failures by @IvanShift in #3463
  • ExternalURL: validate decoded special-scheme hosts by @IvanShift in #3464
  • Add display names for torrents from their own metadata by @IvanShift in #3483
  • Keep non-ASCII names on PHP 7.4 in three more basename() calls by @IvanShift in #3484
  • Keep datadir moves inside the top directory through links by @xirvik in #3488
  • Httprpc: validate list deltas before changing the cache by @IvanShift in #3466
  • webui: translate the first line of the Log tab by @Heliedan in #3468
  • addtorrent: don't randomize the info hash of a private torrent by @Heliedan in #3467
  • Keep plugin directories inside the top directory through links by @xirvik in #3489
  • Show legacy filename bytes in add torrent notifications by @IvanShift in #3485
  • Preserve filename bytes in filesystem shell fallbacks by @IvanShift in #3486
  • Bump version to 5.3.20 by @xirvik in #3490

Full Changelog: v5.3.19...v.5.20

v5.3.19

Choose a tag to compare

@xirvik xirvik released this 24 Oct 16:07

Security and privacy

  • Error and refusal responses are sent as plain text, and content sniffing is
    refused on them, so a value echoed back in a diagnostic cannot be interpreted
    as markup by the browser.
  • A torrent's Content-Disposition header can no longer choose the name a
    download is saved under.
  • Response cookies are scoped to the host and path that set them, are taken
    only from a followed redirect's own origin, and a Set-Cookie value is
    bounded to non-control bytes — a terminator inside one previously truncated
    the next request's header block.
  • Four loginmgr accounts now require an explicitly configured origin instead
    of a built-in hostname, and Torrentech, mTeam and AniDUB are reached over the
    scheme their account names. Several of those domains had lapsed and been
    re-registered by other parties.
  • Permission selects exactly one mode class, compares group IDs numerically,
    and resolves relative symlinks beside the link — the previous comparison
    could grant access the kernel refuses.
  • system.multicall preserves validated member trust, and an account list that
    was never discovered is not stored.

Fixes

  • A value of zero is handled as a value throughout: the last piece when it is a
    single zero byte, an SCGI reply chunk of 0, a header line that is a single
    zero, a base directory named 0, and a bencoded integer read as an integer
    rather than a float.
  • The daemon state follows the daemon again, survives a failed torrent-list
    request, and an unreachable daemon is named in the response header. A bad
    torrent list is refused before the plugins read it.
  • Accept-Encoding coding tokens and quality values are honoured, $exit is
    respected on a 304 and after an external gzip, and the offered encoding is
    initialised.
  • A submenu stays open while the pointer moves into it, a macOS ctrl-click
    reads as the secondary click, a multi-line status tip keeps its line breaks,
    and desktop add inputs survive a failed upload.
  • The HTTP client stops after a header read timeout, discards stale bodies,
    distinguishes a socket failure from an HTTP response, preserves literal body
    bytes, percent-encodes the URL given to curl, declines a redirect target no
    request can carry, and exposes only the final response's headers.
  • fileutil preserves an existing custom temporary directory's mode and
    reports a temporary directory anyone may rewrite. The cache retains its
    writer lock while removing an entry and remembers the version a successful
    store published.
  • feeds supports an explicit public application URL and serves a feed only
    for a view that has it; rss checks a feed's validators by grammar;
    extsearch takes its origins from loginmgr; mobile ignores files
    returned for a previous torrent.
  • A missing translation key falls back to English, and the bundled Public
    Suffix List reports its own age.

Translations

  • French: strings still in English translated, wrong translations corrected,
    and the permission lists completed.
  • Two English strings describing a read/write/execute check as "read/execute"
    are corrected; following the old text granted a permission that did not
    satisfy the check.

Tests

Substantial additions across the suite: shared HTTP and SCGI fixtures, a
harness that drives getplugins.php, serializable daemon replies that run
without pcntl, key parity for lang/*.php, and non-empty assertions on every
swept collection so a glob that stops matching cannot report a pass. The test
tree is now checked in CI as well.

What's Changed

  • Snoopy: stop after a header read timeout by @IvanShift in #3399
  • Snoopy: refuse malformed URLs without retaining a response by @IvanShift in #3400
  • Snoopy: distinguish socket failures from HTTP responses by @IvanShift in #3401
  • Snoopy: preserve literal request and response body bytes by @IvanShift in #3398
  • fix(objects): keep a submenu open while the pointer moves into it by @xirvik in #3403
  • fix: read a macOS ctrl-click as the secondary click it is by @xirvik in #3404
  • Fix/zero byte read loops by @xirvik in #3405
  • Hash the remaining zero piece in multi-file torrents by @IvanShift in #3407
  • CachedEcho: honor exit after sending external gzip by @IvanShift in #3408
  • Send tracklabel error responses as plain text by @IvanShift in #3413
  • Preserve download names in Content-Disposition headers by @IvanShift in #3411
  • Snoopy: discard stale bodies after HTTP read timeouts by @IvanShift in #3409
  • Fileutil: preserve existing custom temporary directory modes by @IvanShift in #3415
  • Cache: retain the writer lock when removing an entry by @IvanShift in #3410
  • Snoopy: scope mutable state to a request chain by @IvanShift in #3416
  • tests: run serializable SCGI replies without pcntl by @IvanShift in #3412
  • Fix/response header hygiene by @xirvik in #3422
  • Fix/torrent basedir and bencode by @xirvik in #3423
  • Fix/snoopy request state resets by @xirvik in #3424
  • Close test gaps found by mutating merged work by @xirvik in #3425
  • Feeds: support an explicit public application URL by @IvanShift in #3418
  • Keep account sessions when saving settings fails by @IvanShift in #3419
  • Bound the Set-Cookie capture to non-control bytes by @xirvik in #3426
  • Preserve validated member trust in system.multicall by @IvanShift in #3421
  • Preserve desktop add inputs when uploads fail by @IvanShift in #3420
  • Settings: unregister the stored plugin hook subject by @IvanShift in #3414
  • Unregister hooks by name, and read either stored shape by @xirvik in #3428
  • Fix/loginmgr cache write results by @xirvik in #3429
  • Fix/loginmgr configured origins by @xirvik in #3430
  • Close three gaps left by merged work by @xirvik in #3431
  • Fix/snoopy wire integrity by @xirvik in #3432
  • Snoopy: retain timeouts after partial body reads by @IvanShift in #3427
  • Mobile: ignore files returned for a previous torrent by @IvanShift in #3434
  • Carry a bencoded integer back as an integer by @xirvik in #3437
  • Cache: remember the version published by a successful store by @IvanShift in #3433
  • Trust the server's scheme over the client's by @xirvik in #3438
  • Refuse to store an account list never discovered by @xirvik in #3439
  • Decline a header value no request can carry by @xirvik in #3440
  • Check the test files, and fall back to English by @xirvik in #3441
  • Discard a response no request answered for by @xirvik in #3442
  • Assert what the merged work left unasserted by @xirvik in #3443
  • Share one add-torrent result collector by @xirvik in #3444
  • Drive getplugins.php, and warn on a wide temp dir by @xirvik in #3445
  • Send the index, the scheme and the date that were meant by @xirvik in #3446
  • Snoopy: expose only the final HTTP response headers by @IvanShift in #3435
  • Share framed SCGI transport between XMLRPC clients by @IvanShift in #3436
  • WebUI: preserve daemon state after failed list requests by @IvanShift in #3450
  • tracklabels: configure the WebUI when column changes are denied by @IvanShift in #3449
  • Snoopy: scope response cookies to their request targets by @IvanShift in #3453
  • Reuse shared HTTP fixtures in endpoint tests by @IvanShift in #3447
  • Permission: select one mode class and resolve relative symlinks by @IvanShift in #3451
  • Honor gzip coding tokens and quality values by @IvanShift in #3448
  • Report an aged suffix list, and key cookies once by @xirvik in #3454
  • Name the add-torrent fixture tree uniquely by @xirvik in #3455
  • Mark an unreachable daemon in the response by @xirvik in #3456
  • Give a timed cookie case its full lifetime by @xirvik in #3460
  • Fix/permission gid compare by @xirvik in #3457
  • che...
Read more
⌂ 换网址