Bug 117032 - Upload using relative path is not working and the operation cannot be canceled (with fish)
Summary: Upload using relative path is not working and the operation cannot be cancele...
Status: RESOLVED FIXED
Alias: None
Product: quanta
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: András Manţia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-25 00:01 UTC by Christoph Bartoschek
Modified: 2006-09-07 23:03 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Bartoschek 2005-11-25 00:01:28 UTC
Version:            (using KDE KDE 3.5.0)
Installed from:    SuSE RPMs

I try to upload files to our server via ssh.  Therefore I specify the fish protocol.

However after entering username and password the upload stalls and nothing is transfered over the network. The only way to abort the operation is kill -KILL <pid of quanta>.  "Cancel" does not work.
Comment 1 Nicolas Goutte 2005-11-25 06:58:36 UTC
Does trying to upload in Konqueror works? (To know if it i more the FISH KIO slave or Quanta?)

Have a nice day!
Comment 2 Christoph Bartoschek 2005-11-25 08:30:47 UTC
With konqueror I can view the remote folder structure and copy files from my local harddisk to the server using the fish IO-Slave.
Comment 3 Nicolas Goutte 2005-11-25 12:36:50 UTC
On Friday 25 November 2005 08:30, Christoph Bartoschek wrote:
(...)
> With konqueror I can view the remote folder structure and copy
> files from my local harddisk to the server using the fish IO-Slave.


Sorry, I had not thought about it: does it work in Kate too? (Copying is not 
exactly the same as writing a file, so there could be a subtle difference.)

Have a nice day!
Comment 4 Christoph Bartoschek 2005-11-25 16:16:12 UTC
Saving files to the remote directory from kate is also no problem.
Comment 5 András Manţia 2005-11-25 17:07:00 UTC
Than another test: does saving from Quanta through fish work? If yes, 
the problem seems to be in the upload feature (not sure what can be 
there). Is it possible to give a test account to that server? You can 
mail me privately as well.
Comment 6 Christoph Bartoschek 2005-11-25 20:28:57 UTC
I've just found an error on my side. My base folder is  ~/public_html on the remote server. Therefore I specified public_html/  as the remote folder. Now, after testing some scenarios I used the absolute path /home/bartoschek/public_html and it worked as expected.

Now there are two questions left:
1. How to specify a folder in the home directory, without using the absolute path?
2. Using the wrong path, why is there no error message and why cannot I cancel the operation?
Comment 7 András Manţia 2005-11-25 20:52:17 UTC
On Friday 25 November 2005 21:28, Christoph Bartoschek wrote:
> 1. How to specify a folder in the home directory, without using the
> absolute path? 


I think the start folder depends on your server's configuration, at 
least it is the case for ftp. This is why you must put an absolute path 
there. Maybe this should be more clearly documented.

> 2. Using the wrong path, why is there no error message 
> and why cannot I cancel the operation?

Good question. The answer is: because this scenario was not really 
tested. So I don't close the bug, but please rename it, so it reflects 
what is the real problem.
Comment 8 Christoph Bartoschek 2005-11-25 22:16:43 UTC
I do not know how to rename a bugreport. And I do not see an option here.

One observation about the bug:  The X11 Eventloop seems to be still functional. The window is still repainted, although everything else does not react on any mouse or keyboard action.

I also tried to reproduce the bug on quanta from kde 3.4.2 but there I get a useful message:

Cannot create folder
fish://bartoschek@www.pontohonk.de/public_html/.
Check that you have write permission in the parent folder or that the connection to
fish://bartoschek@www.pontohonk.de
is valid.
Comment 9 Nicolas Goutte 2005-11-26 09:36:44 UTC
On Friday 25 November 2005 20:52, András wrote:
(...)
> So I don't close the bug, but please rename it, so it reflects
> what is the real problem.


You would need the "editing" priviledge in KDE Bugs to do that.
Comment 10 Nicolas Goutte 2005-11-26 09:36:47 UTC
On Friday 25 November 2005 20:28, Christoph Bartoschek wrote:
[bugs.kde.org quoted mail]

Did you try exactly the same for Konqueror or Kate? If not, can you try to 
test if it fails there too.

>
> Now there are two questions left:


> 1. How to specify a folder in the home directory, without using the
> absolute path? 


Does ~ work? (I have no idea.)

2. Using the wrong path, why is there no error message and
> why cannot I cancel the operation?


The FISH KIO slave is not much maintained. So probably it is something that 
was never seen.

Have a nice day!
Comment 11 András Manţia 2006-09-07 23:03:06 UTC
SVN commit 581888 by amantia:

Really abort if a remote directory cannot be created.
BUG: 117032

 M  +1 -1      lib/qextfileinfo.cpp  
 M  +1 -0      quanta/ChangeLog  


--- branches/KDE/3.5/kdewebdev/lib/qextfileinfo.cpp #581887:581888
@@ -205,7 +205,7 @@
     }
   //  dir2.setPath(dir2.path(-1));
     result = KIO::NetAccess::mkdir(dir2, window);
-    if (dir2.path() == "/")
+    if (dir2.path() == "/" || !result)
       break;
     i++;
   }
--- branches/KDE/3.5/kdewebdev/quanta/ChangeLog #581887:581888
@@ -26,6 +26,7 @@
         saved [#130236]
       - respect the order of items in the .docrc [#133704]
       - fix crash when creating project through slow links
+      - really abort if a remote directory cannot be created [#117032]
 
 Version 3.5.3 (Release date: 23-05-2006; Started 18-03-2005):
  - bugfixes: