Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

safe_path_join does not properly join paths #2278

Closed
1 of 2 tasks
k-boikov opened this issue Apr 18, 2023 · 2 comments
Closed
1 of 2 tasks

safe_path_join does not properly join paths #2278

k-boikov opened this issue Apr 18, 2023 · 2 comments

Comments

@k-boikov
Copy link
Contributor

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

GPT-3 or GPT-4

  • I am using Auto-GPT with GPT-3 (GPT-3.5)

Steps to reproduce 🕹

Ask AutoGPT to search for some files in the "/workspace" directory

Current behavior 😯

Throws error Error: Attempted to access path 'C:\workspace' outside of working directory 'C:\Users\Kris\PycharmProjects\Auto-GPT\auto_gpt_workspace'.
image

Expected behavior 🤔

path_in_workspace should always return a path in the workspace

Your prompt 📝

ai_goals:
- try to search files that have the word test in their names
ai_name: search files
ai_role: try to search files that have the word test in their name
@k-boikov
Copy link
Contributor Author

Maybe same as #2101

@Pwuts Pwuts added bug Something isn't working and removed bug Something isn't working labels Apr 18, 2023
@Pwuts
Copy link
Member

Pwuts commented Apr 18, 2023

Steps to reproduce 🕹

Ask AutoGPT to search for some files in the "/workspace" directory

It's behaving as intended. If you want to be able to access files outside the workspace, keep an eye on #1875.

@Pwuts Pwuts closed this as completed Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants