<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>355328</bug_id>
          
          <creation_ts>2015-11-14 07:37:58 +0000</creation_ts>
          <short_desc>Can&apos;t open files on Samba share using non-KIO-aware software without adding the share&apos;s password into to the URL or using %F in the desktop file</short_desc>
          <delta_ts>2018-01-31 17:20:30 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>kio-extras</product>
          <component>default</component>
          <version>17.08.2</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>75324</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>accessibility</keywords>
          <priority>NOR</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>laichiaheng</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>frank78ac</cc>
    
    <cc>hhfischer25</cc>
    
    <cc>madcatx</cc>
    
    <cc>nate</cc>
    
    <cc>simonandric5</cc>
    
    <cc>stasnel</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1556888</commentid>
    <comment_count>0</comment_count>
    <who name="">laichiaheng</who>
    <bug_when>2015-11-14 07:37:58 +0000</bug_when>
    <thetext>I can&apos;t open the videos, I have to fill in the password in the URL in terminal by myself.
ex: user@user-PC:~&gt;mpv &apos;smb://user@192.168.1.xxx/影片/movie.mkv&apos;
It has to be like this:
ex: user@user-PC:~&gt;mpv &apos;smb://user:password@192.168.1.xxx/影片/movie.mkv&apos;

I can&apos;t do it in the dolphin file manager, it needs to be done in terminal.

Reproducible: Always

Steps to Reproduce:
1.Open the path of my samba sharing directory
2.Open the video.
3.nothing

Actual Results:  
FAIL!!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1707109</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2017-10-20 02:30:04 +0000</bug_when>
    <thetext>Are you still able to reproduce the issue? I am able to get this working in Kubuntu 17.04 with Plasma 5.9.5 by doing the following:

1. Get another Kubuntu 17.04 machine on the same network, use it to create a Samba share, and put a movie file in it (mine was a .mov)
2. Connect to that machine from your machine via Dolphin &gt; Network
3. Navigate to the movie file on the share
4. Open it in VLC via [right-click] -&gt; Open With -&gt; [select VLC]

For me, this works fine.

Does anybody have a reproducible set of steps that make it fail?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1707366</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2017-10-21 17:11:25 +0000</bug_when>
    <thetext>So this seems to work in Dolphin right now when the share is on a Linux PC, but fails when the share is on a Windows PC.

As Lai Chiaheng has observed, Windows Samba seems to require the password to be specified in the URL. From my time in Mac land, I seem to remember Finder saying, &quot;Are you sure you want to enable Windows Samba sharing? That requires storing Samba passwords in an insecure way!&quot; So maybe this is just a poor Samba implementation in Windows that we need to handle.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1707382</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2017-10-21 18:54:17 +0000</bug_when>
    <thetext>I asked our resident Samba expert and he says that the problem here is that MPV and VLC aren&apos;t KIO-aware, which would allow this to just work. Instead, the SMB KIOSlave falls back to blindly passing them the path to the file, which fails because right now that path doesn&apos;t include the password.

It seems somewhat unlikely that we&apos;ll get VLC or MPV to link against KIO--let alone the entire universe of other non-KDE software--so we&apos;re probably going to have to do something yucky like just add the password into the path and live with diminished security in exchange for making this work, unless we can think of a clever workaround that doesn&apos;t ruin performance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1707919</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2017-10-24 20:00:06 +0000</bug_when>
    <thetext>So there is another option I hadn&apos;t considered, which is to have KIO use FUSE to mount these remote URLs locally, which exposes them to software that doesn&apos;t use KIO but is otherwise POSIX-compliant. This is what GNOME&apos;s GVFS does, which is why they don&apos;t have the same problem (though FUSE mounting does impose a performance penalty, but I suppose that&apos;s better than not having the functionality at all with popular apps like VLC).

It looks like there was an effort to implement that a few years back: https://techbase.kde.org/Projects/KioFuse

Sadly it appears to have been abandoned. I wonder if it&apos;s revivable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1707925</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2017-10-24 20:27:19 +0000</bug_when>
    <thetext>Another option: replace the %U in VLC&apos;s desktop file with %F, which forces the system to download the file locally to a temp directory before passing it to the app. This does work (hurrah!) but you do need to wait a bit for the file to download and there&apos;s no feedback while that happens, which isn&apos;t the best user experience when the network connection is slow.

This change would need to be made at the distro level, which wouldn&apos;t make sense for distros that also ship GNOME, since GNOME&apos;s GVFS is able to do this transparently, as mentioned above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1708634</commentid>
    <comment_count>6</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2017-10-28 15:07:24 +0000</bug_when>
    <thetext>*** Bug 342272 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1708639</commentid>
    <comment_count>7</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2017-10-28 15:14:39 +0000</bug_when>
    <thetext>Marking as a duplicate to consolidate info in one bug report.

*** This bug has been marked as a duplicate of bug 330192 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1726510</commentid>
    <comment_count>8</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2018-01-31 17:20:30 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 75324 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>