| Files | Last commit | Last update |
|---|---|---|
!556 merge fix/pr1-crash-bugs into develop fix: 修复三处输入边界导致的运行时崩溃 Created-by: linghb Commit-by: linghb Merged-by: shenwei21 Description: Paired: [GitHub #683](https://github.com/openJiuwen-ai/agent-core-java/pull/683) ↔ [GitCode !556](https://gitcode.com/openJiuwen/agent-core-java/merge_requests/556) ## 概述 修复 #328 报告的三处输入边界处理缺陷,均为最小钳制修复,不改变正常路径行为: | 位置 | 缺陷 | 修复 | |---|---|---| | memory/.../lite/MemoryIndexManager.java readFile | fromLine 超过文件总行数时 subList(start, end) 抛 IllegalArgumentException,且 catch 只捕 IOException,异常穿透为 CompletionException | start = Math.min(start, totalLines) 并保证 end >= start,越界返回空文本 | | memory/.../graph_memory/ParseLlmResponse.java resolveEntities | LLM 返回 {"id": 3.0}(Jackson 映射为 Double)时 Integer.parseInt("3.0") 抛 NumberFormatException;instanceof Number 分支却走字符串解析 | 数字 id 按 Number.intValue() 解析 | | core/.../agentevolving/evaluator/BaseEvaluator.java 与 core/.../dev_tools/tune/evaluator/BaseEvaluator.java(相同复制)batchEvaluate | 空用例列表时 numWorkers == 0,newFixedThreadPool(0) 构造 ThreadPoolExecutor(0, 0, ...) 直接抛 IllegalArgumentException | numWorkers = Math.max(1, Math.min(...)) | ## 验证 - mvn clean test -pl memory:1304 tests,0 failures - mvn test -pl core -Dtest="DefaultEvaluatorTest,DefaultEvaluatorPythonParityTest":28 tests,0 failures - 针对性复现验证:修复前 3 行文件 readFile(path, 20, 5) 抛 IllegalArgumentException、id=3.0 抛 NumberFormatException、空列表 batchEvaluate 抛 IllegalArgumentException;修复后均正常返回,正常切片(line2)/字符串 id 路径行为不变 - git diff --check 通过 Closes #328 <!-- bot4-pr-sync-meta schema_version: 1 source: gitcode gitcode_repo: openJiuwen/agent-core-java gitcode_mr: 556 github_repo: openJiuwen-ai/agent-core-java github_pr: 683 github_branch: sync/pr-556 --> <!-- related-issues --> Linked Closing Issues: - [#328](https://gitcode.com/openJiuwen/agent-core-java/issues/328) <!-- /related-issues --> See merge request: openJiuwen/agent-core-java!556 | 3 days ago | |
!535 merge fix/security-jsoup-guava-20261124 into develop fix(deps): patch jsoup and Guava security vulnerabilities Created-by: antonjli Commit-by: antonjli Merged-by: whylazy Description: Paired: [GitHub #651](https://github.com/openJiuwen-ai/agent-core-java/pull/651) ↔ [GitCode !535](https://gitcode.com/openJiuwen/agent-core-java/merge_requests/535) **What type of PR is this?** /kind bug **What does this PR do / why do we need it**: Core 和 Retrieval 仍解析到受 CVE 影响的 jsoup 和 Guava。将两个模块的 jsoup 升级到 1.23.2,将 Core 的 Guava 升级到 33.7.2-jre。 Guava 的配套依赖 failureaccess 同步到 1.0.3。Retrieval 直接声明该版本,确保只依赖 Retrieval 的 Maven 应用也解析到 1.0.3,避免 Milvus 的传递依赖选中 1.0.1。 **Which issue(s) this PR fixes**: Fixes #299 Fixes #300 Fixes #301 **Test Plan and Test result:What scenarios were tested, and what were the verification results(Function, performance, reliability, etc.)**: - JDK 17.0.19 下,Core、Retrieval 和 Memory 的 Maven clean install 成功。网页提取、HTML 和公众号解析、序列化和检查点等专项用例共 203 项,全部通过。 - 使用本次构建的 Core 0.1.18 和 Guava 33.7.2-jre 在测试仓 1ab1e90 执行完整 smoke。485 项中 442 通过、43 因缺少 Milvus、Embedding 或外部服务配置跳过,零失败、零错误。 - 分别验证只依赖 Core、Retrieval 或 Memory 的下游应用,以及 smoke JVM 的实际类路径。均解析到 jsoup 1.23.2、Guava 33.7.2-jre 和 failureaccess 1.0.3。 - git diff --check 通过。 **Self-checklist**: - [ ] **设计**:PR 方案完成 Maintainer 评审。 - [x] **测试**:已运行相关单元测试和测试仓 smoke。 - [x] **验证**:已记录实际依赖版本、测试结果和跳过原因。 - [ ] **接口**:涉及对外接口变更。 - [ ] **文档**:涉及官网文档修改。 <!-- bot4-pr-sync-meta schema_version: 1 source: gitcode gitcode_repo: openJiuwen/agent-core-java gitcode_mr: 535 github_repo: openJiuwen-ai/agent-core-java github_pr: 651 github_branch: sync/pr-535 --> See merge request: openJiuwen/agent-core-java!535 | 7 days ago |