﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1062	Zotero RDF import/export problems with empty collections	dstillman	simon	"Various problems with importing and exporting of empty collections/subcollections that should be fixed for 1.0.7 (which we need to get out ASAP because of a Fx 3.0.1 compatibility fix):

1) Create a collection with one item, a subcollection with no items, and a subsubcollection with one item. Right-click top collection, export as Zotero RDF, get error:

Error: returnItem.isAttachment is not a function
Source file: chrome://zotero/content/xpcom/translate.js
Line: 1947

2) Create an empty collection with a subcollection containing one item. Right-click collection, export as Zotero RDF, get error:

Error: this._itemsLeft.concat is not a function
Source file: chrome://zotero/content/xpcom/translate.js
Line: 1773

This one is probably new since r2998 (since before that it wasn't possible to export collections with no items) and is the least important.

3a) Create the same three levels of collections, with a single collection in each. Export as ZRDF. Import. I get either two or all three items (not sure why I'm getting inconsistent results) in the top collection, along with the item in its appropriate subcollection.

3b) Many users are reporting a problem of imported subcollections being empty, though I haven't seen it myself and don't think we have a simple test case. This may be related to 3a above. It also may have something to do with empty subcollections that contain collections with items. I can try to find a test case if the fix doesn't seem obvious."	defect	closed	blocker	1.0.7	export	1.0	fixed		stakats tjowens
