Skip to content

2.3.1

Choose a tag to compare

@guoshiqiufeng guoshiqiufeng released this 08 May 03:24
· 9 commits to main since this release
85f4acf

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 ResponseConverter with improved byte array handling and content type detection.
  • Updated RestClientExecutor and WebClientExecutor for better binary data processing.
  • Improved DifyRestLoggingInterceptor to properly handle file content in logging.
  • Affected components:
    • ResponseConverter - Enhanced binary response handling
    • RestClientExecutor - Fixed file upload/download byte processing
    • WebClientExecutor - Improved reactive stream byte handling
    • DifyRestLoggingInterceptor - 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:
    • ChatMessageSendCompletionResponse
    • ParallelBranchFinishedData (both chat and workflow packages)
    • ChatMessagePipelineModel
    • SegmentUpdateParam
    • AppsResponseResult
    • LoginResultResponse

Improvements

  • Enhanced test coverage for Spring HTTP client components.
  • Added comprehensive test cases for ResponseConverter and DifyRestLoggingInterceptor.
  • 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 DifyRestLoggingInterceptorTest for binary content logging.