bardsoftware / ganttproject

Official GanttProject repository.
http://ganttproject.biz
GNU General Public License v3.0
860 stars 301 forks source link

WEBDAV - cannot load/save files on server if / is not under dav control #761

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Configure web server (lets call it 192.168.0.124) with dav enabled at 
location /dav (no authentication required) on the filesystem at 
/var/www/html/dav.  
2. Manually copy myproject.gan to /var/www/html/dav
3. In GanttProject... Menu > Settings > WEBDAV 
4. Enter servername, 
5. Click Add button
6. Enter URL http://192.168.0.124
7. Click Ok button
8. Menu > Web Server > Load From Server ...
9. Enter /dav/myproject.gan in file path
10. Click 'Open' button

What is the expected output? 

The file /dav/myproject.gan loads, or an error message is displayed indicating 
what went wrong.

What do you see instead?
The dialog closes and no indication of success or failure is evident in the UI. 

What version of the product are you using? On what operating system?
2.6.1 Brno (build 1499) Ubuntu Linux 12.04

Please provide any additional information below.

The .ganttproject log contains the following:

WARNING: [uncaughtException]java.lang.RuntimeException: 
io.milton.httpclient.MethodNotAllowedException: http error: 405 - 
http://192.168.0.124/

The apache access_log lists the following:
192.168.0.31 - - [15/Mar/2013:10:18:17 -0400] "PROPFIND / HTTP/1.1" 405 305 "-" 
"Apache-HttpClient/4.2.1 (java 1.5)"
192.168.0.31 - - [15/Mar/2013:10:18:32 -0400] "PROPFIND / HTTP/1.1" 405 305 "-" 
"Apache-HttpClient/4.2.1 (java 1.5)"
192.168.0.31 - - [15/Mar/2013:10:18:34 -0400] "PROPFIND / HTTP/1.1" 405 305 "-" 
"Apache-HttpClient/4.2.1 (java 1.5)"
192.168.0.31 - - [15/Mar/2013:10:18:35 -0400] "PROPFIND / HTTP/1.1" 405 305 "-" 
"Apache-HttpClient/4.2.1 (java 1.5)"
192.168.0.31 - - [15/Mar/2013:10:18:38 -0400] "PROPFIND / HTTP/1.1" 405 305 "-" 
"Apache-HttpClient/4.2.1 (java 1.5)"
192.168.0.31 - - [15/Mar/2013:10:18:45 -0400] "PROPFIND / HTTP/1.1" 405 305 "-" 
"Apache-HttpClient/4.2.1 (java 1.5)"
192.168.0.31 - - [15/Mar/2013:10:18:47 -0400] "PROPFIND / HTTP/1.1" 405 305 "-" 
"Apache-HttpClient/4.2.1 (java 1.5)"
192.168.0.31 - - [15/Mar/2013:10:21:22 -0400] "PROPFIND / HTTP/1.1" 405 305 "-" 
"Apache-HttpClient/4.2.1 (java 1.5)"
192.168.0.31 - - [15/Mar/2013:10:34:20 -0400] "PROPFIND / HTTP/1.1" 405 305 "-" 
"Apache-HttpClient/4.2.1 (java 1.5)"
192.168.0.31 - - [15/Mar/2013:10:34:53 -0400] "PROPFIND / HTTP/1.1" 405 305 "-" 
"Apache-HttpClient/4.2.1 (java 1.5)"
192.168.0.31 - - [15/Mar/2013:10:34:55 -0400] "PROPFIND / HTTP/1.1" 405 305 "-" 
"Apache-HttpClient/4.2.1 (java 1.5)"
192.168.0.31 - - [15/Mar/2013:10:34:59 -0400] "PROPFIND / HTTP/1.1" 405 305 "-" 
"Apache-HttpClient/4.2.1 (java 1.5)"
192.168.0.31 - - [15/Mar/2013:10:35:39 -0400] "PROPFIND / HTTP/1.1" 405 305 "-" 
"Apache-HttpClient/4.2.1 (java 1.5)"
192.168.0.31 - - [15/Mar/2013:10:35:41 -0400] "PROPFIND / HTTP/1.1" 405 305 "-" 
"Apache-HttpClient/4.2.1 (java 1.5)"
192.168.0.31 - - [15/Mar/2013:10:35:45 -0400] "PROPFIND / HTTP/1.1" 405 305 "-" 
"Apache-HttpClient/4.2.1 (java 1.5)"

* There are no accesses to /dav or /dav/myproject.gan *

Other webdav clients (i.e. cadaver) are able to list, read and write files to 
/dav

Full log is attached.

Original issue reported on code.google.com by rstanc...@semaconnect.com on 15 Mar 2013 at 2:57

Attachments:

GoogleCodeExporter commented 9 years ago
Can you try with http://192.168.0.124/dav as server URL (and just myproject.gan 
as file path, of course) ?

Original comment by dbarashev on 15 Mar 2013 at 3:09

GoogleCodeExporter commented 9 years ago
This leads to an error dialog in the "Load from Server..." dialog which 
contains the following information:

Something went wrong 

I/O problems when accessing URI does not specify a valid host name: http:///

Log atttached

Original comment by rstanc...@semaconnect.com on 15 Mar 2013 at 4:19

GoogleCodeExporter commented 9 years ago
log eaten by captcha now attached

Original comment by rstanc...@semaconnect.com on 15 Mar 2013 at 4:21

Attachments:

GoogleCodeExporter commented 9 years ago
Why do you have three slashes after http: ?

Original comment by dbarashev on 15 Mar 2013 at 4:24

GoogleCodeExporter commented 9 years ago
No.

.ganttproject file attached

Original comment by rstanc...@semaconnect.com on 15 Mar 2013 at 4:26

Attachments:

GoogleCodeExporter commented 9 years ago
Are you sure that "fileshare" is selected in the dropdown? There is another 
server definition in your options file with empty name and just http:// as URL

Original comment by dbarashev on 15 Mar 2013 at 4:39

GoogleCodeExporter commented 9 years ago
It is not selected, but if I select it, nothing happens.

Regarding the empty name, I'm not sure where this is coming from.  It seems 
that the act of running "Open from a server..." creates the extra entry or 
atleast corrupts the entries.

Please see attached:

dotganttproject_before
(1)removed .ganttproject (2) started ganttproject (3) configure the webdav 
server settings (4) exit ganttproject (5) copy .ganttproject to 
dotganttproject_before

dotganttproject_after
(1) restart ganttproject (2) clicked menu > Web Server > Load From Server ... 
(same result) (3) cancel (4) exit (5) copy .ganttproject to 
dotganttproject_after

Original comment by rstanc...@semaconnect.com on 15 Mar 2013 at 5:10

Attachments:

GoogleCodeExporter commented 9 years ago
Just to clarify, when I select the server in the dropdown list, there is no 
apparent action in the UI.  The refresh and open buttons remain disabled.  
There are no error messages and no additional entries in the log (attached).

Original comment by rstanc...@semaconnect.com on 15 Mar 2013 at 5:20

Attachments: