COMMON ISSUE: PKIX PATH BUILDING FAILED
This is a common issue when attempting to download files from box.
The full error will look like this in the logs:
Caught exception: Couldn't connect to the Box API due to a network error. com.box.sdk.BoxAPIException: Couldn't connect to the Box API due to a network error. ...(About fifteen lines of stacktrace)... Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
In order to fix this, first, attempt to install Box’s ssl certificate in your Java keystore.
If that does not work, you can also download the Java Cryptography Extension (JCE) Unlimited Strength from Oracle and install the files in /jre/lib/security.
Box Query
This tab gives you three ways to retrieve data from Box. They construct a query using Box’s Search API and can be mixed and matched as needed
- Box Query: Used as a query parameter
- Folder ID’s (comma delimited): A comma delimited list of folder ids to restrict the search
-
Content Types (comma delimited): Available options are:
- file - Limits the search results to files
- folder - Limits the search results to folders
- web_link - Limits the search results to web links, also known as bookmarks
Repository Crawl
Retrieve Folders: Folders will be retrieved as repository documents. Retrieve Files: Checked by default, files will be retrieved. Retrieve only listed folderIds: The connector will only collect the documents and folders configured in the Box Query tab, and will not crawl. Retrieve Collaborations: Will retrieve collaborations in the format [user]=[role]. Truncate parent paths to exclude folders above specified folders:
As a default, the parent paths of files are absolute, and will include the root folder All Files as well as any folders above the configured ones. When this box is checked, only folder paths up to the “crawled” folders will be included.