nmjukin / google-sites-liberation

Automatically exported from code.google.com/p/google-sites-liberation
0 stars 0 forks source link

Import does not work #39

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Exported site from Google Sites using the tool.
2.Deleted the site from Google Sites.
3.Imported the site.

What is the expected output? What do you see instead?
Scanning directory.
Importing page: home
Import complete.

I cannot see the restored site in Google Sites.

What version of the product are you using? On what operating system?

Windows Vista SP1.
Please provide any additional information below.

Hi, Thanks for the tool. Its great to see as a corporate user, I can use 
my google 
domain admin account to backup all sites in the domain without having to 
rely on the 
users. The export portion worked well for me. However, import feature is 
not working 
for me eventhough the gui tool mentions that import completed 
successfully. Is this 
due to the fact that it takes a while for google to replicate the change?

Original issue reported on code.google.com by chellaps...@gmail.com on 11 Dec 2009 at 8:47

GoogleCodeExporter commented 8 years ago
The following is what I get when trying the command line option to do the 
import.

java -cp google-sites-liberation-1.0.1.jar 
com.google.sites.liberation.imprt.Main -
d "mydomain.org" -w "My-Site" -u Myuser -p MyPassword -f 
"D:\GoogleSitesBackup\My-
Site"

Thanks
================================================================================
==
Scanning directory.
Importing page: home
Dec 11, 2009 4:50:01 PM com.google.sites.liberation.imprt.EntryInserterImpl inse
rtEntry
WARNING: Unable to insert entry: {WebPageEntry {BasePageEntry {BaseContentEntry
com.google.gdata.data.sites.WebPageEntry@20f8395f}}}
com.google.gdata.util.ResourceNotFoundException: Not Found
Site not found

        at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(Htt
pGDataRequest.java:555)
        at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(G
oogleGDataRequest.java:543)
        at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGData
Request.java:536)
        at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataReques
t.java:515)
        at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRe
quest.java:515)
        at com.google.gdata.client.Service.insert(Service.java:1327)
        at com.google.gdata.client.GoogleService.insert(GoogleService.java:599)
        at com.google.gdata.client.media.MediaService.insert(MediaService.java:3
72)
        at com.google.sites.liberation.imprt.EntryInserterImpl.insertEntry(Entry
InserterImpl.java:26)
        at com.google.sites.liberation.imprt.EntryUploaderImpl.uploadEntry(Entry
UploaderImpl.java:111)
        at com.google.sites.liberation.imprt.PageImporterImpl.importPage(PageImp
orterImpl.java:104)
        at com.google.sites.liberation.imprt.SiteImporterImpl.importPage(SiteImp
orterImpl.java:61)
        at com.google.sites.liberation.imprt.SiteImporterImpl.importSite(SiteImp
orterImpl.java:47)
        at com.google.sites.liberation.imprt.Main.doMain(Main.java:85)
        at com.google.sites.liberation.imprt.Main.main(Main.java:101)
Current progress: 100%.
Current progress: 100%.
Import complete.

Original comment by chellaps...@gmail.com on 11 Dec 2009 at 10:57

GoogleCodeExporter commented 8 years ago
has the site been created yet?  the import tool will not create new sites.  it 
will only 
import into existing sites.

Original comment by gk5...@kickstyle.net on 6 Jan 2010 at 4:35

GoogleCodeExporter commented 8 years ago
Hi, Thanks for the response. I tried both ways, with and without creating the 
sites. 
The gui tool show the import complete, but nothing happens. The command line 
tool 
shows the following...

C:\Temp\Google\Google  Sites>java -cp google-sites-liberation-1.0.1.jar com.goog
le.sites.liberation.imprt.Main -d mydomain.org -w mysite -u myusername -p 
mypassword -f "C:\Temp\Google\Google  Sites\Mysitebackup"
Scanning directory.
Importing page: home
Jan 7, 2010 1:52:25 PM com.google.sites.liberation.imprt.EntryUpdaterImpl update
Entry
WARNING: Unable to update entry:{WebPageEntry {BasePageEntry {BaseContentEntry c
om.google.gdata.data.sites.WebPageEntry@ae533a}}}
com.google.gdata.util.ServiceForbiddenException: Forbidden
If-Match or If-None-Match header required

        at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(Htt
pGDataRequest.java:561)
        at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(G
oogleGDataRequest.java:543)
        at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGData
Request.java:536)
        at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataReques
t.java:515)
        at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRe
quest.java:515)
        at com.google.gdata.client.Service.update(Service.java:1482)
        at com.google.gdata.client.Service.update(Service.java:1448)
        at com.google.gdata.client.GoogleService.update(GoogleService.java:583)
        at com.google.sites.liberation.imprt.EntryUpdaterImpl.updateEntry(EntryU
pdaterImpl.java:47)
        at com.google.sites.liberation.imprt.EntryUploaderImpl.uploadEntry(Entry
UploaderImpl.java:113)
        at com.google.sites.liberation.imprt.PageImporterImpl.importPage(PageImp
orterImpl.java:104)
        at com.google.sites.liberation.imprt.SiteImporterImpl.importPage(SiteImp
orterImpl.java:61)
        at com.google.sites.liberation.imprt.SiteImporterImpl.importSite(SiteImp
orterImpl.java:47)
        at com.google.sites.liberation.imprt.Main.doMain(Main.java:85)
        at com.google.sites.liberation.imprt.Main.main(Main.java:101)
Current progress: 100%.
Current progress: 100%.
Import complete.

Original comment by chellaps...@gmail.com on 7 Jan 2010 at 7:56

GoogleCodeExporter commented 8 years ago
I get the same error when trying to import even one file to an existing site 
(Issue
#41). 

WARNING: Unable to update entry:{WebPageEntry {BasePageEntry {BaseContentEntry c
om.google.gdata.data.sites.WebPageEntry@ae533a}}}
com.google.gdata.util.ServiceForbiddenException: Forbidden

Original comment by jre...@gmail.com on 11 Jan 2010 at 3:21