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.
So when one submits a .torrent file that exceeds the XMLRPC filesize limits, rtorrent returns a response that includes a <fault>...</fault> block. The rtorrentDeserializer doesn't handle this block and throws an exception, swallowing the original error message.
Example response:
Status: 200 OK
Content-Type: text/xml
Content-Length: 372
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<fault>
<value><struct>
<member><name>faultCode</name>
<value><i4>-503</i4></value></member>
<member><name>faultString</name>
<value><string>Call XML not a proper XML-RPC call. XML-RPC request too large. Max allowed is 524288 bytes</string></value></member>
</struct></value>
</fault>
</methodResponse>
Expected Behavior
It would be nice for the original error message from the <fault>...</fault> block be passed onto the client.
Current Behavior
The rtorrentDeserializer doesn't handle fault block, and returns an exception and swallows the original error message and fault code returned from rtorrent.
This results on the add files button to keep spinning and spinning.
Assuming a working setup of rtorrent and Flood (and rtorrent with the default XMLRPC filesize limits—524288 bytes on the latest master), try to upload a torrent that is larger than that size.
Context
The text was updated successfully, but these errors were encountered:
Type: Bug Report
Your Environment
Summary
So when one submits a .torrent file that exceeds the XMLRPC filesize limits, rtorrent returns a response that includes a
<fault>...</fault>
block. The rtorrentDeserializer doesn't handle this block and throws an exception, swallowing the original error message.Example response:
Expected Behavior
It would be nice for the original error message from the
<fault>...</fault>
block be passed onto the client.Current Behavior
The rtorrentDeserializer doesn't handle fault block, and returns an exception and swallows the original error message and fault code returned from rtorrent.
This results on the add files button to keep spinning and spinning.
Possible Solution
See PR: #841
Steps to Reproduce
Assuming a working setup of rtorrent and Flood (and rtorrent with the default XMLRPC filesize limits—524288 bytes on the latest master), try to upload a torrent that is larger than that size.
Context
The text was updated successfully, but these errors were encountered: