Opened 10 years ago

Last modified 6 years ago

#4014 reopened Bug

409 error when opening "http://localhost:9091/transmission/web" without trailing "/"

Reported by: veldt Owned by: jordan
Priority: Normal Milestone: None Set
Component: GTK+ Client Version: 2.20
Severity: Normal Keywords:
Cc:

Description

Launching the web client from transmission-gtk via "Open web client" doesn't work on my system (ubuntu maverick with seamonkey 2.0.11); the URL that tries to load in the browser is "http://localhost:9091/transmission/web" and generates a 409 error.

Testing different URL's.. http://localhost:9091/transmission/web/ ("this works") http://localhost:9091/transmission (changes to "this works") http://localhost:9091/ (changes to "this works") http://localhost:9091 (changes to "this works")

This gives 409: http://localhost:9091/transmission/

The error is the usual:

409: Conflict Your request had an invalid session-id header. To fix this, follow these steps:

  1. When reading a response, get its X-Transmission-Session-Id header and remember it
  2. Add the updated header to your outgoing requests
  3. When you get this 409 error message, resend your request with the updated header

This requirement has been added to help prevent CSRF attacks. X-Transmission-Session-Id: (...)

Here are some other postings/tickets which might be related...

https://forum.transmissionbt.com/viewtopic.php?f=4&t=10568&hilit=409 https://forum.transmissionbt.com/viewtopic.php?f=8&t=6133&hilit=409 https://forum.transmissionbt.com/viewtopic.php?f=8&t=8393&hilit=409 https://forum.transmissionbt.com/viewtopic.php?f=8&t=10135&hilit=409 https://forum.transmissionbt.com/viewtopic.php?f=8&t=10306&hilit=409 https://forum.transmissionbt.com/viewtopic.php?f=8&t=9958&hilit=409 https://trac.transmissionbt.com/ticket/1538

This wiki page: https://trac.transmissionbt.com/wiki/WebProxy suggests a rewrite to the URL (...)/transmission/web. I don't know but it might benefit from a trailing slash.

Change History (6)

comment:1 Changed 10 years ago by jordan

looks like it might be a regression caused by #1538

comment:2 Changed 10 years ago by jordan

  • Summary changed from 409 error to 409 error when opening "http://localhost:9091/transmission/web" without trailing "/"

comment:3 Changed 10 years ago by mezz

I can reproduce same problem on FreeBSD when I clicked on 'Open web client' in gtk client. Probably easier way is to copy behavior like qt by doing 'http://localhost:9091/' when click on open web client. Or make it learns to accept the 'http://localhost:9091/transmission/web'.

comment:4 Changed 9 years ago by jordan

r12467 gtk/tr-prefs.c: (trunk gtk) #4014 "409 error when opening .../transmission/web without trailing '/'" -- use suggestion from Mezz to have the "open web client" button in the GTK+ client follow the same URL as the Qt client

comment:5 Changed 8 years ago by livings124

  • Resolution set to fixed
  • Status changed from new to closed

This looks like it should've been closed. Please reopen if I'm incorrect.

comment:6 Changed 6 years ago by rubenvb

  • Resolution fixed deleted
  • Status changed from closed to reopened

I'm running into this with Transmission 2.84. Adding a trailing slash '/' to the URL makes the error page go away. So

.../transmission/web

doesn't work (error 409), but

.../transmission/web/

works.

Note: See TracTickets for help on using tickets.