Overview
The Box Connector provides functionality to retrieve files from Box.com cloud storage and register them in the Fess index.
This feature requires the fess-ds-box plugin.
Prerequisites
Plugin installation is required
A Box developer account and application creation is required
JWT (JSON Web Token) authentication or OAuth 2.0 authentication setup is required
Installing the Plugin
Method 1: Direct JAR file placement
Method 2: Install from admin console
Open “System” -> “Plugins”
Upload the JAR file
Restart Fess
Configuration
Configure in the admin console under “Crawler” -> “Data Store” -> “Create New”.
Basic Settings
| Item | Example |
|---|---|
| Name | Company Box Storage |
| Handler Name | BoxDataStore |
| Enabled | On |
Parameter Configuration
JWT authentication example (recommended):
Parameter List
Script Configuration
Available Fields
| Field | Description |
|---|---|
file.url | Link to open file in browser |
file.contents | File text content |
file.mimetype | File MIME type |
file.filetype | File type |
file.name | File name |
file.size | File size (bytes) |
file.created_at | Creation date |
file.modified_at | Last modified date |
For details, refer to Box File Object.
Box Authentication Setup
JWT Authentication Setup Steps
1. Create an Application in Box Developer Console
Access https://app.box.com/developers/console:
Click “Create New App”
Select “Custom App”
Select “Server Authentication (with JWT)” for authentication method
Enter app name and create
2. Application Configuration
In the “Configuration” tab:
Application Scopes:
Check “Read all files and folders stored in Box”
Advanced Features:
Click “Generate a Public/Private Keypair”
Download the generated JSON file (important!)
App Access Level:
Select “App + Enterprise Access”
4. Obtain Authentication Credentials
Obtain the following information from the downloaded JSON file:
Private Key Format
Replace newlines in private_key with \n to make it a single line:
Usage Examples
Crawling Entire Company Box Storage
Parameters:
Script:
Troubleshooting
Authentication Errors
Symptom: Authentication failed or Invalid grant
Check:
Verify
client_idandclient_secretare correctVerify private key is correctly copied (newlines are
\n)Verify passphrase is correct
Verify app is authorized in Box admin console
Verify
enterprise_idis correct
Private Key Format Errors
Symptom: Invalid private key format
Resolution:
Verify newlines are correctly converted to \n:
Cannot Retrieve Files
Symptom: Crawl succeeds but 0 files
Check:
Verify “Read all files and folders” is enabled in Application Scopes
Verify App Access Level is set to “App + Enterprise Access”
Verify files actually exist in Box storage
Verify service account has appropriate permissions
Reference Information
Data Store Connector Overview - Data Store Connector Overview
Dropbox Connector - Dropbox Connector
Google Workspace Connector - Google Workspace Connector
Data Store Crawling - Data Store Configuration Guide