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-apprunning 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
- Download the archive
chemistry-opencmis-workbench-1.1.0-bin.zipfrom the Apache Chemistry download page (OpenCMIS 1.1.0 releases). - Unpack it and start
workbench.bat(Windows) orworkbench.sh(Linux, macOS).
Connection
In the Connection tab set:
| Field | Value |
|---|---|
| Binding | Browser |
| Browser URL | http://localhost:8080/mercury-ws-app/browser |
| Authentication | Standard |
| Username, Password | the 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
| Step | Expected result |
|---|---|
| Open the folder tree | The root folder of the repository, empty after the first start |
Create Folder in the root folder: type CmisFolder, name WbTest | The folder appears in the tree |
| Create a second folder with the same name in the same place | Error: name constraint violation (HTTP 409) |
Create Document in WbTest: type CmisDocument, choose a file from the disk | The document appears in the list |
| Content tab of the document | The content is the same as in the file |
| Properties tab of the document | cmis:contentStreamFileName, cmis:contentStreamMimeType and cmis:contentStreamLength are set, cmis:versionLabel is 1.0 |
Change cmis:name in the Properties tab | The name changes |
| Set new content of the document | The Content tab shows the new content |
Delete the folder WbTest that contains the document | Error: the folder is not empty (HTTP 409) |
Delete the document, then the folder WbTest | Both 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.maxContentSizeis rejected with the errorContent too big!. - Properties of the date type cannot be set (the operation is not supported).
- The Query tab (CMIS QL) and the operations
checkOut/checkInare not available yet. - The description of the types in the Types tab can show an unrendered resource key, for example
${cmis.document.typeCase.description}.