Bug 73172 - Creating remote project is broken
Summary: Creating remote project is broken
Status: RESOLVED FIXED
Alias: None
Product: quanta
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: András Manţia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-21 21:17 UTC by Dik Takken
Modified: 2004-02-27 17:42 UTC (History)
0 users

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 Dik Takken 2004-01-21 21:17:21 UTC
Version:           3.2.0 rc1 (using KDE KDE 3.2.0)
Installed from:    Compiled From Sources
OS:          Linux

When I create a new project on a remote server via the fish protocol, quanta misbehaves. Here's what I do:

Quanta asks for the basic settings. I give Quanta these settings:

name: "New"
protocol: "fish"
host: "server"
user: "jack"
password: "****" :)
mainfolder: "/home/jack"

I finish the wizard by pressing 'next' two times, then Quanta says: "cannot open file /home/jack/New.webprj"

When I retry and change the 'mainfolder' property to

fish://jack@server/home/jack

it works perfectly. Apparently, Quanta forgets to prepend the "fish://<user>@<hostname>" part to every filename when it creates the project and scans the project folder. In the first case, Quanta attempted to create the project in the local /home/jack directory.
Comment 1 András Manţia 2004-02-27 17:42:02 UTC
CVS commit by amantia: 

Now this was a stupid bug (and reported for 3.2.0 rc1). Remote project creation should work now.

CCMAIL: 73172-done@bugs.kde.org


  M +1 -0      ChangeLog   1.205.2.16
  M +1 -1      quanta/project/project.cpp   1.136.2.3


--- quanta/ChangeLog  #1.205.2.15:1.205.2.16
@@ -23,4 +23,5 @@
         - fix saving of files with fish:// [#74716]
         - make insertion and renaming in the project tree view work as expected
+        - fix creation of remote projects [#73172]
         - various parsing fixes
     - performance:

--- quanta/quanta/project/project.cpp  #1.136.2.2:1.136.2.3
@@ -1089,5 +1089,5 @@ void Project::slotAcceptCreateProject()
   baseURL.setProtocol(png->comboProtocol->currentText());
   if (baseURL.protocol() == i18n("Local")) baseURL.setProtocol("file");
-  QuantaCommon::setUrl(baseURL, basePath);
+  baseURL.setPath(basePath);
   baseURL.adjustPath(1);
   if (!baseURL.path().startsWith("/")) baseURL.setPath("/"+baseURL.path());