- Added ability for user to retrieve an avatar) for a specified user.
- Added invite_email field to collaboration object.
- Added is_collaboration_restricted_to_enterprise field to folder object.
- Added status field to task assignment object.
- Added ability to retrieve fields for
BoxFile#getTasks()
- Fixed bug where offset based paging would not return correctly.
- Added functionality to allow content streaming to Box through outputstream. Thank you @gajarajkalburgi for the pr!
- Added
getOptionsObjects()
onMetadataTemplate.Field
which returns both key and type. - Added functionality for
BoxItem#getType()
for BoxItem. - Added functionality for
BoxAPIConnection#BoxGlobalSettings()
andBoxAPIConnection#BoxGlobalSettings()
as well as getting and reading the timeout for the connection. - Added functionality for
BoxGlobalSettings#getMaxRequestAttempts()
andBoxGlobalSettings#setMaxRquestAttempts()
- Fixed a bug where
BoxLegalHoldPolicy#create()
was not setting the correct legal hold policy duration.
- Fixed a bug where the specified headers for batch requests were not being sent.
- Fixed a bug where too many TCP connections were being opened. Thank you @pmatte1 for implementing this fix!
- Added support for Metadata Cascade Policy
- Deprecated the moveFolderToUser() for Box Users. We encourage users to use transferContent going forward because idiomatically it is more correct.
- Added functionality to allow users to set passwords on shared links for Box files, folders, and web links.
- Fixed wrong redirect for two links in the
Getting Started
andQuick Test
section of the README.
- Fixed a bug where customers had issues with large file uploads because they fail to parse the Retry-After header from the commit response. Reason being headers storage/lookup was case sensitive.
- Added better exception handling for JSON parse in response exception.
- Fixed a bug where uploadNewVersion() was returning an empty object.
- Fixed a bug where multiple As-User headers could be set.
- Added support to test update for multiselect field on metadata
- Added support for enterprise admins with Box Zones purchased to have support for Box Storage Policies and Box Storage Policy Assignments
- Added support to allow users to work with multiselect metadata
- Added
getLogin()
method for the "login" field on the "accessible by" for BoxCollaboration.Info class.
- Fixed a bug where the the private key password should be passed into
setPrivateKetPassword()
instead of the private key. A big thank you to breach10ck for their pull request! - Added an additional check to ensure that the request properties on the request object is not null in the
toString()
method - Added support to fetch the content of the generated representation after it has been generated
- Improved error messages for API response errors to allow for better debugging.
- Added support for assigning Retention Policies to Metadata Templates
- Added
CONTENT_ACCESS
to event type enum
- Added support for user tracking codes on the user object.
- Fixed a bug where JWT authentication would fail due to improper date parsing.
- Added support for setting custom headers on API connection. This allow for setting As-User support and suppressing notifications support.
- Changed default JWT expiration window to reduce chances of error.
- Added support for retrieving a metadata template by ID
- Added support for allowing the user to retrieve specific Collaboration fields on a Collaboration object
- Reduced the number of API calls that the
EventStream
makes to fetch new events, which should help users who are running into rate limit issues. - Force support for TLSv1.1 or higher when available to improve the security of connections to the Box API
- Add randomized jitter to the exponential backoff algorithm used by the SDK to improve the success rate of retried requests.
- Added support for getting and setting the
can_view_path
field on a collaboration object. - Added support for getting and setting the
tags
field on files and folders.
- Fixed an issue where all types of metadata values were being coerced to Strings. This change deprecates
Metadata#get()
in favor of type-specific methods likeMetadata#getFloat()
or a genericMetadata#getValue()
, which returns aJsonValue
object that represents any JSON type. See the file metadata or folder metadata documentation for more information.
- Fixed ability to notify users or groups regarding file collaboration or folder collaboration
- Added OAuth2 token creation event types
- Added support for inviting a user to another Box Enterprise
- Fixed an OutOfMemory error in large file upload by capping the maximum number of parts that are uploaded concurrently
- uploadLargeFile now returns a BoxFile object
- Fixed chunked upload for Box Files greater than 2GB
- Perform modified retry on JWT auth for when the local clock and the Box Server clock are not aligned as well as if the JWT ID has already been consumed
- BoxFolder.search has been deprecated in favor of BoxSearch.searchRange
- Add optional is_confirmed paramater for adding user email alias
- Added support for Metadata Template Delete
- Added option to pass file SHA-1 hash for upload integrity
- Added support for Terms of Service endpoint
- Fixed missing webhook triggers
- Fixed missing event types for events enum
- Added modified_at timestamp to BoxComment.Info
- Added support for Collaboration Whitelists endpoint
- Added ability to set connect and read timeout globally
- Added support for Representations endpoint
-
Added support for Batch
-
Added support for Unified Metadata
- Added support for Recent Items endpoint
- Added support Get All Groups By Name endpoint
- Added support for Token Exchange
- Support for multiput upload. New methods in BoxFolder and BoxFile support multiput upload for better performance and reliability for large files.
- Single file collaborations. The BoxFile class now supports sharing individual files.
- Automatic configuration for JWT auth. The Box Developer console now lets you download a JSON file of your JWT app configuration settings. You can import this file into the Java SDK to easily configure your app.
New API Endpoints:
Legal Holds Retention Policies Create Metadata Template Get All Metadata on File Get All Metadata on Folder Get Enterprise Metadata Templates Update Group Watermarking Webhooks V2 WebLinks Collections BoxGroupMembership with for Paging Enterprise Device Pins
New Features:
Transactional Authentication. Support for Box's new Transactional Auth APIs. Upload file versions with SHA1. A file's SHA1 can be passed in to BoxFile.uploadVersion(...) when uploading new versions. Get effective_access for shared links. The effective_access field is accessible through BoxSharedLink. getEffectiveAccess(). Added additional Event Types. The TASK_ASSIGNMENT_COMPLETE, TASK_ASSIGNMENT_UPDATE, TASK_CREATE, COMMENT_DELETE types are now included in the BoxEvent class.
This release includes improvements to token caching for App Users and support for additional API endpoints.
New Features:
- App Users token caching. A token cache can now be specified in BoxDeveloperEditionAPIConnection. This allows for improved performance when using App Users authentication.
- Support for retrieving download URLs. The BoxFile.getDownloadURL() method allows for retrieving a direct download URL to a file.
- File thumbnails. The BoxFile.getThumbnail() method allows for downloading the [Thumbnail](https://github.com/box/box-java-sdk/blob/master/doc/files.md#get-thumbnail) for a file.
Bug Fixes:
- Getting info for a file could crash when there's no preview. Previously, an exception would be thrown if BoxFile.getInfo (BoxFile.ALL_FIELDS) was called and the file didn't have a preview available.