You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 31, 2021. It is now read-only.
When triggering an addFiles request with empty "tags" in the body, the empty string is assigned as tag into d.custom1.
In server/models/ClientRequests there is a guard to only set custom1 if the tags are an non-empty array. However, earlier in the code, the tags are put through String.split() which returns an array containing the empty string if the source string is empty. So the guard fails (probably unintentionally).
Expected Behavior
d.custom1 should not change.
Context
I have a script that runs when torrents are added to rtorrent to automatically assign tags into custom1. This bug causes any tags set by my script to be overwritten with the empty string.
The text was updated successfully, but these errors were encountered:
Type: Bug Report
Your Environment
git bb55350
Summary
When triggering an addFiles request with empty "tags" in the body, the empty string is assigned as tag into
d.custom1
.In
server/models/ClientRequests
there is a guard to only setcustom1
if the tags are an non-empty array. However, earlier in the code, the tags are put throughString.split()
which returns an array containing the empty string if the source string is empty. So the guard fails (probably unintentionally).Expected Behavior
d.custom1
should not change.Context
I have a script that runs when torrents are added to rtorrent to automatically assign tags into
custom1
. This bug causes any tags set by my script to be overwritten with the empty string.The text was updated successfully, but these errors were encountered: