Bug 105513 - "Remote file not accepted" dialog shown when try to open/save files
Summary: "Remote file not accepted" dialog shown when try to open/save files
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-12 09:58 UTC by Raghu
Modified: 2008-06-02 09:47 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raghu 2005-05-12 09:58:32 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    SuSE RPMs
Compiler:          GCC 3.4 
OS:                Linux

Hello Everybody

i am runing KDE 3.4 (compiled with dbus-qt support by SuSE) on SuSE 9.3.
whenever i open/save files from many KDE applications such as Konsole, Kinternet, Nautun, Amarok, Kaffeine etc
via Media:/ protocol i am geting a popup tiltled "Remote file not accepted" containing "you can only select local files" error message,
actualy this computer's single hard disk holds the reiserfs 3.3 filesystem that  SuSE 9.3 installed on,

Reproduce this problem by doing these folowing tasks,

1 > in KDE open Konsole,
2 > click Edit Menu and select "Save History As"
3 > click "Storage Media"
4 > select your Linux filesystem
5 > Navigate /home/yourname
6 > try to save file.

Expected Behaviour,

Files would open/save fine in Media:/ protocol too
Comment 1 Kevin Ottens 2005-05-12 10:24:02 UTC
Well, I tested with amarok and it works correctly.
For konsole you're right.

But it's not a media:/ bug, more a problem coming from konsole ignoring
"network transparency" in this case (you can't save using fish:// either).

Hence why it's more a konsole bug. If you experience the same thing for other
applications, you'll have to fill bugs on a per application basis.

Hmmm... maybe the report title should be changed to address only konsole?
I let this decision to konsole maintainers...
Comment 2 Raghu 2005-05-12 13:17:10 UTC
see i not only mentioned Konsole but Nautun, Amarok, Kaffeine, 
does all these apps don't support network transparency?
if yes then i am must open a dozen of bugs then :-(
Comment 3 Thiago Macieira 2005-05-12 13:37:49 UTC
Some applications, especially the media players, can refuse to open/save non-local files, since streaming from network isn't supported by KIO.

The problem here is that those apps don't fully resolve the URL into mostLocalWhatever (can't remember the correct name) before trying to save.
Comment 4 Kurt Hindenburg 2005-05-27 19:08:45 UTC
SVN commit 418782 by hindenburg:

Use mostLocalURL for saving history; doesn't work yet as mostLocalURL doesn't work for non-existing files yet.

CCBUG: 105513 


 M  +7 -2      konsole.cpp  


--- trunk/KDE/kdebase/konsole/konsole/konsole.cpp #418781:418782
@@ -128,6 +128,7 @@
 #include <kparts/componentfactory.h>
 #include <kcharsets.h>
 #include <kcolordialog.h>
+#include <kio/netaccess.h>
 
 #include "konsole.h"
 #include <netwm.h>
@@ -3766,9 +3767,13 @@
 
 void Konsole::slotSaveHistory()
 {
-  KURL url = KFileDialog::getSaveURL(QString::null, QString::null, 0L, i18n("Save History"));
-  if( url.isEmpty())
+  // FIXME - mostLocalURL can't handle non-existing files yet, so this
+  //         code doesn't work.
+  KURL s_url = KFileDialog::getSaveURL(QString::null, QString::null, 0L, i18n("Save History"));
+  if( s_url.isEmpty())
       return;
+  KURL url = KIO::NetAccess::mostLocalURL( s_url, 0 );
+
   if( !url.isLocalFile() ) {
     KMessageBox::sorry(this, i18n("This is not a local file.\n"));
     return;
Comment 5 Robert Knight 2008-06-02 09:47:33 UTC
Fixed this some time ago in KDE 4.  Saving history to a remote or local location using KIO now works.