2.3.1
Release Notes - Version 2.3.1
Overview
Version 2.3.1 is a maintenance release that addresses critical bugs in Spring integration and DTO serialization, improving stability and reliability of the framework.
Bug Fixes
1. File Byte Handling in Spring Integration (PR #327)
- Fixed file byte processing issues in Spring HTTP client implementations.
- Enhanced
ResponseConverterwith improved byte array handling and content type detection. - Updated
RestClientExecutorandWebClientExecutorfor better binary data processing. - Improved
DifyRestLoggingInterceptorto properly handle file content in logging. - Affected components:
ResponseConverter- Enhanced binary response handlingRestClientExecutor- Fixed file upload/download byte processingWebClientExecutor- Improved reactive stream byte handlingDifyRestLoggingInterceptor- Better logging for binary content
2. DTO toString Method Issues (PR #324)
- Fixed
toString()method implementations across multiple DTO classes to prevent serialization errors. - Removed problematic implementation in
MultiValueMap. - Added proper
toString()implementations for:ChatMessageSendCompletionResponseParallelBranchFinishedData(both chat and workflow packages)ChatMessagePipelineModelSegmentUpdateParamAppsResponseResultLoginResultResponse
Improvements
- Enhanced test coverage for Spring HTTP client components.
- Added comprehensive test cases for
ResponseConverterandDifyRestLoggingInterceptor. - Improved error handling and logging for file operations.
Tests
- Added unit tests for file byte handling in
ResponseConverterTest. - Enhanced test coverage in
WebClientExecutorTest. - Added new test cases in
DifyRestLoggingInterceptorTestfor binary content logging.