agentscope-ai / agentscope-ai/agentscope-java

[Bug]:Error: Access denied: The file path '.' is outside the allowed base directory

未關閉
#770 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area/core/tool bug
主要語言
Java
星號
5.6k
分支
1.3k
平均合併
4 天 12 小時
30 天內合併 PR
77

描述

**AgentScope-Java is an open-source project. To involve a broader community, we recommend asking your questions in English.**

**Describe the bug**
WorkDir has been set for SkillBox, but for Operation without permission

**To Reproduce**
Steps to reproduce the behavior:

1. You code
2. How to execute
3. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Error messages**
{"id":"affcda0f05db4c58ae48d7885dc1707a","object":"chat.completion.chunk","created":1770690594,"model":"","choices":[{"index":0,"delta":{"role":"tool","content":"{\"type\":\"TOOL_RESULT\",\"message\":{\"id\":\"fd5f50c7-8894-47b6-8e12-682e615247b3\",\"name\":\"system\",\"role\":\"TOOL\",\"content\":[{\"type\":\"tool_result\",\"id\":\"call_299a382908bc4d5488eed6c0d074e0ff\",\"name\":\"list_directory\",\"output\":[{\"type\":\"text\",\"text\":\"Error: Access denied: The file path '.' is outside the allowed base directory 'I:\\\\data\\\\attachment\\\\drama\\\\ky-novel\\\\33444\\\\2012101170879859'.\"}],\"metadata\":{}}],\"metadata\":{},\"timestamp\":\"2026-02-10 10:29:54.941\"},\"last\":true,\"messageId\":\"fd5f50c7-8894-47b6-8e12-682e615247b3\"}","name":"call_planner_agent","tool_call_id":"call_9fe50c18c3ce4e9883946a2909f747bd"}}]}

**Environment (please complete the following information):**

- AgentScope-Java Version: 1.0.8
- Java Version: 21
- OS:windows10

**Additional context**
Add any other context about the problem here.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。