Bug 259377 - Disable showing of upnp devices in Dolphin 'Places' panel and Device notifier
Summary: Disable showing of upnp devices in Dolphin 'Places' panel and Device notifier
Status: RESOLVED UNMAINTAINED
Alias: None
Product: solid
Classification: Frameworks and Libraries
Component: libsolid-upnp (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Paulo Romulo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-09 21:57 UTC by Vitaliy Gorbunov
Modified: 2013-03-12 12:44 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Annoying Shares in Dolphin... (70.78 KB, image/png)
2010-12-10 18:39 UTC, Vangelis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaliy Gorbunov 2010-12-09 21:57:40 UTC
Version:           unspecified (using KDE 4.5.85) 
OS:                Linux

From http://forum.kde.org/viewtopic.php?f=202&t=91843&p=181463.

I am using my computer on quite big dorm network. After upgrading to kde 4.6b2 in Kubuntu, all the windows shares of other computers show up in Dolphin (and also Open/Save dialogs, etc), which causes the system to be quite slow in certain situations. If I enable automount, all these folders also appear in Device notifier as Storage Access and every time somebody turns on his pc, a notification pops-up, which is really annoying.

There is should be a way to disable showing these windows shares (and also to disable scanning for them)


Reproducible: Always
Comment 1 Kevin Ottens 2010-12-09 23:25:26 UTC
Which type of shares are those? smb? nfs? upnp?

For instance did they end up somehow in your fstab?
Comment 2 Vitaliy Gorbunov 2010-12-09 23:35:28 UTC
It's smb shares. 

Here is my /etc/fstab. 

proc  /proc   proc  defaults        0       0
/dev/sda3 / ext3 relatime,errors=remount-ro 0  1
UUID=4f515a26-7f23-40cb-b8a8-eaa53a5bf57e none swap sw 0  0
/dev/scd0 /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0  /media/floppy0  auto rw,user,noauto,exec,utf8 0 0
/dev/sda5 /media/ext3 ext3 relatime,errors=remount-ro 0 0
/dev/sda6 /media/arch ext4 defaults 0 0
/dev/sda1 /media/suse ext4 defaults 0 0

There is not smb shares there.
Comment 3 Kevin Ottens 2010-12-09 23:44:51 UTC
Would they be automounted and then appear in /etc/mtab?
Comment 4 Peter 2010-12-09 23:50:06 UTC
(In reply to comment #3)
> Would they be automounted and then appear in /etc/mtab?

Same problem here...

I think they're smb shares, but don't exactly, is there a way to list smb shares?

(and no, they don't appear in /etc/mtab, nor in /etc/fstab)
Comment 5 Vitaliy Gorbunov 2010-12-09 23:59:44 UTC
(In reply to comment #3)
> Would they be automounted and then appear in /etc/mtab?
No
Comment 6 Kevin Ottens 2010-12-10 00:00:23 UTC
Hmmm... Do they appear if you use the following command:
solid-hardware list details

(It's pretty verbose, but if you find them please post an extract or two of the relevant output)
Comment 7 Peter 2010-12-10 00:09:55 UTC
*but I don't know exactly

and just to clarify, the shares are probably mounted, because when I right-click on any of them, one of the options that shows up is to unmount the item.

Left-clicking on the item, however, does nothing. (ie dolphin is still in the same directory as before; Device notifier does not open any window, altought it says "Open with File Manager" under the icon in the Device notifier when I hover above an item).

Unmounting these shares has also no effect, they still appear in the list as mounted. 

New info: maybe they are upnp shares, because when the dolphin is started from konsole, a lot of lines like

UPnP device entered: "uuid:8d35fb8f8d35-0101-8000-324795dfa806" 
UPnP device entered: "uuid:fe8b7f7a-38d1-471f-91c1-4dd7106022ee" 
UPnP device entered: "uuid:445d08dc-c2b5-48f8-ad1a-d8899f0070e9"

appears
Comment 8 Vitaliy Gorbunov 2010-12-10 00:21:14 UTC
Yes? It should be upnp shares. Sorry for disinformation.
And they not appear in solid-hardware list details.
Comment 9 Peter 2010-12-10 01:16:45 UTC
I found on the gentoo wiki how to allow UPnP in iptables, so I used similar rules to disable it:

iptables -t filter -A INPUT -i eth1 -s 239.0.0.0/8 -j DROP
iptables -t filter -A INPUT -i eth1 -p tcp --sport 49152 -j DROP
iptables -t filter -A INPUT -i eth1 -p udp --sport 1900 -j DROP

and now there is only one UPnP share visible, others are filtered. But this works only if you don't want to use UPnP (I'm not sure, maybe it will affect other multicast services, too).
Comment 10 kalyan chakrawarthy 2010-12-10 07:44:20 UTC
This problem is there for everyone who installed kde 4.6 in networks with lots of windows machines. I stay at hostel and sometimes the places panel is filled with 100 network shares which is totally annoying.
Comment 11 Vangelis 2010-12-10 18:39:49 UTC
Created attachment 54398 [details]
Annoying Shares in Dolphin...

If you right click on any of them, you will get the "Unmount" option but none of them are actually mounted or possible to be mounted when clicking on them....
Basically they just exist and taking space there...
Comment 12 Vangelis 2010-12-10 18:44:20 UTC
The most annoying thing of all is the device notifier keeps popping up when someone opens their PC and that's very frequent in a large network!! (even in a non so large like the student houses that I live...)
Please disable that feature by default for this kind of shares (that they are not actually shares as you can't access them somehow)!!
Comment 13 Vitaliy Gorbunov 2010-12-10 21:41:05 UTC
Anyone who was affected by this bug, please look at https://bugs.kde.org/show_bug.cgi?id=259472. Maybe it also affect you. Perhaps it's somehow connected..
Comment 14 Vangelis 2010-12-12 23:17:56 UTC
*** This bug has been confirmed by popular vote. ***
Comment 15 Kevin Ottens 2011-01-03 18:26:16 UTC
Interesting... shows that quite a lot of people export stuff on your network without even knowing it seems. :-)

Anyway, that's an interesting usability type of issue, the fact that upnp is shown there is *very* handy on a real home network. I've no solution for it yet in your case though, I'll have to think about it.
Comment 16 kalyan chakrawarthy 2011-01-07 18:40:58 UTC
^^ Actually most of the computers have no public shares/exports, still dolphin displays them on the places panel. Its quite annoying considering people switch on/off their computers all the time.
Comment 17 kalyan chakrawarthy 2011-01-07 18:41:11 UTC
^^ Actually most of the computers have no public shares/exports, still dolphin displays them on the places panel. Its quite annoying considering people switch on/off their computers all the time.
Comment 18 kalyan chakrawarthy 2011-01-07 18:41:23 UTC
^^ Actually most of the computers have no public shares/exports, still dolphin displays them on the places panel. Its quite annoying considering people switch on/off their computers all the time.
Comment 19 kalyan chakrawarthy 2011-01-07 18:41:44 UTC
^^ Actually most of the computers have no public shares/exports, still dolphin displays them on the places panel. Its quite annoying considering people switch on/off their computers all the time.
Comment 20 kalyan chakrawarthy 2011-01-07 18:43:36 UTC
Damn, this commenting system sux.
Comment 21 Vangelis 2011-01-08 19:26:30 UTC
(In reply to comment #15)
> Interesting... shows that quite a lot of people export stuff on your network
> without even knowing it seems. :-)
> 
> Anyway, that's an interesting usability type of issue, the fact that upnp is
> shown there is *very* handy on a real home network. I've no solution for it yet
> in your case though, I'll have to think about it.

Even if they don't have any shares, you can still see all of the hosts on the network just when they open up their computer :(
Except that, in large LAN's you get random crashes when someone logs in or out...
At least an option to disable this feature would be very handy!
Comment 22 Kevin Ottens 2011-01-09 19:31:27 UTC
Hm, ok, if they're just UPnP enabled servers without any shares then it's a bug in the libsolid UPnP backend which reports devices with the StorageAccess interface too aggressively.

Reassigning at the right place then.
Comment 23 Vitaliy Gorbunov 2011-01-09 23:33:33 UTC
(In reply to comment #22)
> Hm, ok, if they're just UPnP enabled servers without any shares then it's a bug
> in the libsolid UPnP backend which reports devices with the StorageAccess
> interface too aggressively.
> 
> Reassigning at the right place then.

Bug https://bugs.kde.org/show_bug.cgi?id=259472 is in the right place for a long time. But there was no any reaction from backend's developer, despite the fact that the bug is very serious.
I disabled upnp connections through iptables and happy now. But if this bug will not fixed before release, it will make sad a lot of kde users.
Comment 24 mathojojo 2011-04-28 23:01:24 UTC
Yes, I'm sad !
Comment 25 Tejas Guruswamy 2012-06-17 16:53:09 UTC
It's absolutely horrible for anyone on a shared network e.g. at university.
I have literally hundreds of useless entries (clicking on them does nothing, as nothing is actually shared by these computers) in dolphin, every single file dialog, amarok ...
Comment 26 Benjamin Eikel 2013-02-22 09:01:56 UTC
I suffer from the same problem leading to an unresponsive Dolphin after start. When starting Dolphin from the command line, it outputs multiple “UPnP device entered: "uuid:…"” messages and fills the “Devices” list with network shares. I see no way to disable this behavior. I am using libsolid4 4:4.9.5-0r1 and dolphin 4:4.9.5-0r1 on Debian GNU/Linux unstable amd64 with experimental-snapshots packages from http://qt-kde.debian.net/.
Comment 27 Alex Fiestas 2013-03-12 12:44:49 UTC
HUPNP backend has been disabled, and set as unmaintained