[PR #31444] fix(http-request): prevent UUID truncation in JSON body #33240

Closed
opened 2026-02-21 20:52:55 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/31444

State: closed
Merged: Yes


Summary

  • Upgrade json-repair from >=0.41.1 to >=0.55.1
  • Add regression tests for UUID handling in JSON body

Root Cause

The json_repair library truncated certain UUID patterns (e.g., 57eeeeb1-450b-...) when they appeared as unquoted values, likely due to misinterpreting them as scientific notation.

Solution

The upstream maintainer fixed this issue in version 0.55.1 (released within minutes of the bug report). This PR simply upgrades the dependency.

Related upstream issue: https://github.com/mangiucugna/json_repair/issues/174

Test plan

  • Added regression tests for unquoted UUID variables
  • Added tests for UUIDs with newlines in JSON
  • Verified existing tests still pass

Fixes #31436

**Original Pull Request:** https://github.com/langgenius/dify/pull/31444 **State:** closed **Merged:** Yes --- ## Summary - Upgrade `json-repair` from `>=0.41.1` to `>=0.55.1` - Add regression tests for UUID handling in JSON body ## Root Cause The `json_repair` library truncated certain UUID patterns (e.g., `57eeeeb1-450b-...`) when they appeared as unquoted values, likely due to misinterpreting them as scientific notation. ## Solution The upstream maintainer fixed this issue in version 0.55.1 (released within minutes of the bug report). This PR simply upgrades the dependency. Related upstream issue: https://github.com/mangiucugna/json_repair/issues/174 ## Test plan - [x] Added regression tests for unquoted UUID variables - [x] Added tests for UUIDs with newlines in JSON - [x] Verified existing tests still pass Fixes #31436
yindo added the pull-request label 2026-02-21 20:52:55 -05:00
yindo closed this issue 2026-02-21 20:52:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#33240