Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
OpenCMIS 0.11.0
-
None
Description
The workbench lists the contents of the root folder on start up. This causes a huge delay or crash when opening the workbench if the root folder contains a large number of items.
I propose an option to NOT list the contents of the root folder if a particular system property is passed in. This is the simplest fix, although I imagine something could be done with paging, etc but the code that does this is not using queries.
Other options are:
- offer a limit (with a system property or re-use cmis.workbench.folder.maxItemsPerPage)
- don't list at start-up, and add a 'fetch' button on the toolbar
from loadFolder() in ClientModel.java:
if (this.listRootContents()) {
ItemIterable<CmisObject> iter = ((Folder) folderObject).getChildren(clientSession
.getFolderOperationContext());
for (CmisObject child : iter)
}
private boolean listRootContents() {
final String dontListRootContents = System.getProperty("cmis.workbench.dontListRootContents");
if (dontListRootContents != null)
return true; // default behaviour
}