[Solved] Deluge 1.3.14 broken something Transdroid depends on

General support for any problems installing or running Deluge
Pyrrhic
New User
New User
Posts: 5
Joined: Mon Jan 23, 2017 4:13 pm
OS or Distro: Linux

[Solved] Deluge 1.3.14 broken something Transdroid depends on

Postby Pyrrhic » Mon Mar 06, 2017 7:24 pm

Hi,

I upgraded my Deluge 1.3.13 install to 1.3.14 today, and ever since I've been unable to connect to the server through the android app Transdroid.

My system is configured using a reverse proxy as outlined in this guide:

http://www.htpcguides.com/configure-del ... inx-linux/

I saw in the change notes for 1.3.14 that some sort of potential security issue was fixed with the webui - is it possible that in doing so something broke functionality that Transdroid depends on?

Thanks!

EDIT: apologies, wrote in haste - I'm running Ubuntu Mate 16.04 LTS, and installing from the official Deluge PPA.

Cas
Top Bloke
Top Bloke
Posts: 3272
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: Deluge 1.3.14 may have broken something Transdroid depends on?

Postby Cas » Mon Mar 06, 2017 10:47 pm

It could well be, test reverting the change to the webui python file:

http://git.deluge-torrent.org/deluge/co ... 64a108d583

That change certainly won't be reverted but may review cross-domain in future for develop.

Pyrrhic
New User
New User
Posts: 5
Joined: Mon Jan 23, 2017 4:13 pm
OS or Distro: Linux

Re: Deluge 1.3.14 may have broken something Transdroid depends on?

Postby Pyrrhic » Mon Mar 06, 2017 10:57 pm

Thanks! Er, that's perhaps a little beyond my experiences to date. Is there an easy way to do that, or do I literally just open up the file and make the change manually?

Cas
Top Bloke
Top Bloke
Posts: 3272
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: Deluge 1.3.14 may have broken something Transdroid depends on?

Postby Cas » Mon Mar 06, 2017 11:36 pm

Yep deleting those lines is all you need to do. Make a backup first of course to save reinstalling :)

Pyrrhic
New User
New User
Posts: 5
Joined: Mon Jan 23, 2017 4:13 pm
OS or Distro: Linux

Re: Deluge 1.3.14 may have broken something Transdroid depends on?

Postby Pyrrhic » Tue Mar 07, 2017 6:44 am

Thanks Cas - to confirm, I opened up json_api.py in /usr/lib/python2.7/dist-packages/deluge/ui/web (made a backup) and then commented out the lines:

Code: Select all

if request.getHeader('content-type') != 'application/json':
        message = 'Invalid JSON request content-type: %s' % request.getHeader('content-type')
        raise JSONException(message)


I then restarted deluged and deluge-web services using systemd, and sure enough Transdroid immediately sprang back into life. Must be that then!

I don't know if you're already familiar with the folks who make Transdroid (?) I'm clearly not terribly technical, but I'll happily seek them out and report this to them if that'd be helpful. Perhaps it's something they can fix at their end as I'm sure that code must have been added for very good reasons!

Thanks for your help :)

EDIT: went to check out Transdrone on github to see if I could work out how to file a bug report and someone had already done so referencing this very thread. The system works! :D

https://github.com/erickok/transdroid/issues/355
Last edited by Cas on Tue Mar 07, 2017 11:52 pm, edited 1 time in total.
Reason: add github link

Ansem
Member
Member
Posts: 24
Joined: Sat Aug 06, 2016 7:14 pm
OS or Distro: Windows

Re: Deluge 1.3.14 may have broken something Transdroid depends on?

Postby Ansem » Sat Mar 11, 2017 9:25 am

I have the same problem with transdroid and Torrent Status on Firefox.
Today I'll try this fix.
Since is not that easy, it's not possible to release a new version that will fix this problem? Or it's intended an we should wait for an update of transdroid?

Cas
Top Bloke
Top Bloke
Posts: 3272
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: Deluge 1.3.14 may have broken something Transdroid depends on?

Postby Cas » Sat Mar 11, 2017 9:22 pm

This is an intentional security fix for Deluge WebUI. It is up to Transdroid to release an update, they technically should have set the json content type in the first place.

Ansem
Member
Member
Posts: 24
Joined: Sat Aug 06, 2016 7:14 pm
OS or Distro: Windows

Re: Deluge 1.3.14 may have broken something Transdroid depends on?

Postby Ansem » Sun Mar 12, 2017 1:33 am

Thanks! I'll wait for their update so :)

Pyrrhic
New User
New User
Posts: 5
Joined: Mon Jan 23, 2017 4:13 pm
OS or Distro: Linux

Re: Deluge 1.3.14 may have broken something Transdroid depends on?

Postby Pyrrhic » Mon Mar 20, 2017 9:03 am

Just to confirm all that this issue is now fixed as of Transdroid version 2.5.8, available from the website http://transdroid.org/latest


Return to “Support”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest