Skip to main content

Testing with CMIS Workbench

Info

Apache Chemistry CMIS Workbench is a desktop application for browsing and testing CMIS repositories. It is a convenient way to check that the Mercury DB repository works with a standard client. This page describes the connection and a short test scenario.

Requirements​

  • Java installed on the computer with the Workbench.
  • The Mercury DB server with the application mercury-ws-app running and at least one repository configured (see CMIS document repository).
  • A user who can authenticate with the Basic scheme in the realm of the OAuth client set in mercury.cmis.security.oauthClientId.

Installation​

  1. Download the archive chemistry-opencmis-workbench-1.1.0-bin.zip from the Apache Chemistry download page (OpenCMIS 1.1.0 releases).
  2. Unpack it and start workbench.bat (Windows) or workbench.sh (Linux, macOS).

Connection​

In the Connection tab set:

FieldValue
BindingBrowser
Browser URLhttp://localhost:8080/mercury-ws-app/browser
AuthenticationStandard
Username, Passwordthe Mercury DB user

Click Load Repositories. The list should contain the repository identifiers from mercury.cmis.repositories (by default documents). Select the repository and click Connect.

To use the AtomPub binding, choose AtomPub and set ATOM Pub URL to http://localhost:8080/mercury-ws-app/atom11 (CMIS 1.1) or .../atom (CMIS 1.0).

Test scenario​

StepExpected result
Open the folder treeThe root folder of the repository, empty after the first start
Create Folder in the root folder: type CmisFolder, name WbTestThe folder appears in the tree
Create a second folder with the same name in the same placeError: name constraint violation (HTTP 409)
Create Document in WbTest: type CmisDocument, choose a file from the diskThe document appears in the list
Content tab of the documentThe content is the same as in the file
Properties tab of the documentcmis:contentStreamFileName, cmis:contentStreamMimeType and cmis:contentStreamLength are set, cmis:versionLabel is 1.0
Change cmis:name in the Properties tabThe name changes
Set new content of the documentThe Content tab shows the new content
Delete the folder WbTest that contains the documentError: the folder is not empty (HTTP 409)
Delete the document, then the folder WbTestBoth are removed

Limitations​

  • The root folder cannot be deleted. A folder that is not empty cannot be deleted.
  • A document content larger than mercury.cmis.maxContentSize is rejected with the error Content too big!.
  • Properties of the date type cannot be set (the operation is not supported).
  • The Query tab (CMIS QL) and the operations checkOut/checkIn are not available yet.
  • The description of the types in the Types tab can show an unrendered resource key, for example ${cmis.document.typeCase.description}.