HarshVardhanKumar / google-sites-liberation

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

Importing 'folder' that doesn't exist on site causes NullPointerException #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Export SiteA and SiteB into different folders on local machine
2. Copy a folder from SiteB into SiteA's folder
3. Import SiteA from its folder back to Sites

What is the expected output? 
All content from the local SiteA folder is uploaded

What do you see instead?
As soon as the importer gets to the copied folder, it throws a 
NullPointerException:

Nov 10, 2009 3:28:21 PM com.google.sites.liberation.imprt.EntryUpdaterImpl 
updateEntry
WARNING: Unable to update entry:{WebPageEntry {BasePageEntry {BaseContentEntry 
com.google.gdata.data.sites.WebPageEntry@37c3432a}}}
com.google.gdata.util.ServiceForbiddenException: Forbidden
If-Match or If-None-Match header required

    at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:561)
    at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:543)
    at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:536)
    at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:515)
    at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.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(EntryUpdaterImpl.java:47)
    at com.google.sites.liberation.imprt.EntryUploaderImpl.uploadEntry(EntryUploaderImpl.java:113)
    at com.google.sites.liberation.imprt.PageImporterImpl.importPage(PageImporterImpl.java:104)
    at com.google.sites.liberation.imprt.SiteImporterImpl.importPage(SiteImporterImpl.java:61)
    at com.google.sites.liberation.imprt.SiteImporterImpl.importSite(SiteImporterImpl.java:47)
    at com.google.sites.liberation.util.GuiMain$ImportExportRunnable.run(GuiMain.java:284)
    at java.lang.Thread.run(Thread.java:637)
Exception in thread "Thread-2" java.lang.NullPointerException
    at com.google.sites.liberation.util.EntryUtils.setParent(EntryUtils.java:80)
    at com.google.sites.liberation.imprt.PageImporterImpl.importPage(PageImporterImpl.java:126)
    at com.google.sites.liberation.imprt.SiteImporterImpl.importPage(SiteImporterImpl.java:61)
    at com.google.sites.liberation.imprt.SiteImporterImpl.importSite(SiteImporterImpl.java:47)
    at com.google.sites.liberation.util.GuiMain$ImportExportRunnable.run(GuiMain.java:284)
    at java.lang.Thread.run(Thread.java:637)

(The first exception seems to be thrown for every single page uploaded, but the 
pages still get uploaded fine)

What version of the product are you using? On what operating system?
1.0.1, OS X 10.5.8

Please provide any additional information below.

Please ignore any claims that Google Code makes that I'm jamezpolley@gmail.com. 
This is a bug in Google Code. My Google Account is james@polley.org; 
jamezpolley@gmail.com does not exist.

Original issue reported on code.google.com by jamezpol...@gmail.com on 10 Nov 2009 at 4:34

GoogleCodeExporter commented 9 years ago
When this exception is thrown, nothing happens. The app doesn't indicate that 
an error 
occurred; it doesn't exit; it doesn't continue to the next file - it just sits 
there, with a 
progress bar not progressing.

Original comment by jamezpol...@gmail.com on 10 Nov 2009 at 4:35

GoogleCodeExporter commented 9 years ago
Nope. Even when I'm only re-importing exactly the same content I just exported, 
I get 
the same NullPointerException, and the importer just sits there doing nothing.

Original comment by jamezpol...@gmail.com on 10 Nov 2009 at 4:41

GoogleCodeExporter commented 9 years ago
In short, every time I try to import, I get a NullPointerException at some 
point. Just now, 
it happened to be before a single file was uploaded. Usually it's part-way 
through the 
import, but I've never been able to import anything without this happening at 
some 
point.

Original comment by jamezpol...@gmail.com on 10 Nov 2009 at 5:12

GoogleCodeExporter commented 9 years ago

Original comment by gk5...@kickstyle.net on 20 Nov 2009 at 3:50