agentscope-ai / agentscope-ai/agentscope-java

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

Offen
#770 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area/core/tool bug
Vorherrschende Sprache
Java
Sterne
5.6k
Forks
1.3k
Ø Merge
4 T. 12 Std.
Gemergte PRs (30 T.)
77

Beschreibung

**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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.