Bug 331776 - UPNP plugin don't get xml
Summary: UPNP plugin don't get xml
Status: RESOLVED WORKSFORME
Alias: None
Product: ktorrent
Classification: Applications
Component: general (other bugs)
Version First Reported In: 4.3.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-05 18:07 UTC by BLaD
Modified: 2022-12-08 05:13 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Ktorrent logs file (3.67 KB, text/x-log)
2014-03-05 18:10 UTC, BLaD
Details
ktupnptest log file (2.33 KB, text/x-log)
2014-03-05 18:11 UTC, BLaD
Details
Wireshark's dump of ktupnptest (3.70 KB, application/gzip)
2014-03-05 18:12 UTC, BLaD
Details
Wireshark's dump of ktorrent UPNP (1.16 KB, application/gzip)
2014-03-05 18:16 UTC, BLaD
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BLaD 2014-03-05 18:07:27 UTC
UPNP plugin receive wrong answer from router.

Reproducible: Always

Steps to Reproduce:
1.Run the program.
2.Open UPNP tab
3.For sure click the "Scan again"
Actual Results:  
Nothing(clear list) with the exception of errors in logs.
Plugin receive from my router same as my chromium:
"500 Internal Server Error"

Expected Results:  
See my router device in device list and of course working port forwarding.
Plugin should receive a valid xml file.

My router's model is TL-WR841ND (TP-LINK) in it config UPNP is on and work fine.
In chromium 32.0.1700.102 (246481) I see:
"500 Internal Server Error" (same for ktorrent upnp plugin).
but in firefox 28 beta 8 I see proper(valid) xml file (same for ktupnptest).
Comment 1 BLaD 2014-03-05 18:10:18 UTC
Created attachment 85429 [details]
Ktorrent logs file
Comment 2 BLaD 2014-03-05 18:11:30 UTC
Created attachment 85430 [details]
ktupnptest log file
Comment 3 BLaD 2014-03-05 18:12:53 UTC
Created attachment 85431 [details]
Wireshark's dump of ktupnptest
Comment 4 BLaD 2014-03-05 18:16:55 UTC
Created attachment 85432 [details]
Wireshark's dump of ktorrent UPNP
Comment 5 dcg 2014-05-29 12:21:24 UTC
I can confirm something like this is happening in my system. UPnP plugin doesn't work, and I see this in the log:

jue may 29 14:13:10 2014: Detected IGD ipos/7.0 UPnP/1.0 TL-WR740N/4.0
jue may 29 14:13:10 2014: Downloading XML file http://192.168.0.1:1900/igd.xml
jue may 29 14:13:10 2014: Error parsing XML

I can access http://192.168.0.1:1900/igd.xml with firefox

But, surprisingly, it does not work at all with konqueror - it shows "500 Internal Server Error"

This makes me think that the bug is not in ktorrent, but somewhere in the http KDE stack.
Comment 6 dcg 2014-05-29 12:44:17 UTC
Well, I just found and fixed the problem.

Apparently, the bug is NOT in KDE. It is in the router - both the original reporter and me have a TP-LINK router. Apparently, the web server included in TP-LINK router is broken. It returns error when the browser user agent is unknown to it.

To fix the problem , you've got to go to the konqueror preferences -> browser identification

Then go to "Site specific identification"->"new", and add a site identification for your router's IP (192.168.1.1 in case of the bug reporter), then select a modern Windows IE browser  in the agent list. Then restart konqueror (for some reason it requires it in order to work). Then restart ktorrent - problem solved!
Comment 7 BLaD 2014-05-29 14:36:31 UTC
You might be right, although the solution is quite dubious and not transparent.
As I said ktupnptest works fine with my router. I do not think that there is a problem to do the same user agent.
And ofc thank you.
Comment 8 dcg 2017-09-04 13:06:43 UTC
The latest release of ktorrent (5.1.0) has solved this issue for me
Comment 9 Justin Zobel 2022-11-08 06:50:13 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 10 Bug Janitor Service 2022-11-23 05:13:58 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Bug Janitor Service 2022-12-08 05:13:38 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!