google-code-export / ooo2gd

Automatically exported from code.google.com/p/ooo2gd
1 stars 1 forks source link

Import from GDocs won't work unless target local dir exists #75

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version of OOo2GD:1.9
Version of Java:1.6
Operating System:Linux Ubuntu 9.10
Version of OO.org:3.1
Is OO.org using Sun Java?: I've tried with Sun Java 1.6.0_15 and IBM Java
1.6.0 and both work fine

What steps will reproduce the problem?
1.Set "Downloaded files save to" path to a non-existent dir. I did this by
browsing for Documents folder in my home dir and then using the Create new
dir button in the Browse dialog to specify a new folder called GDoc.
2.Attempt to import file from Google Docs

What is the expected output? What do you see instead?
I'd expect the directory to be created (assuming I have permissions) and
the file to be imported. Instead there's an error. 
On the console I see:
java.io.FileNotFoundException:
/home/andyp/Documents/GDoc/Dogear_Nation_site_management.ods.0.part (No
such file or directory)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
    at org.openoffice.gdocs.util.Downloader.fetchImplForFile(Downloader.java:166)
    at org.openoffice.gdocs.util.Downloader.access$000(Downloader.java:32)
    at org.openoffice.gdocs.util.Downloader$1.fetchImpl(Downloader.java:77)
    at
org.openoffice.gdocs.util.Downloader.doFetchHttpURLConnection(Downloader.java:14
6)
    at org.openoffice.gdocs.util.Downloader.run(Downloader.java:122)
    at java.lang.Thread.run(Thread.java:619)

If I then create the target directory and try again, it works fine.

Original issue reported on code.google.com by andypiperuk on 11 Dec 2009 at 8:45

GoogleCodeExporter commented 9 years ago

Original comment by przeme...@gmail.com on 11 Dec 2009 at 8:59

GoogleCodeExporter commented 9 years ago
Fixed at least in 2.2

Original comment by przeme...@gmail.com on 1 May 2010 at 11:04