Skip to content

[Bug]: 多租户场景下,使用 root_api_key 访问 openviking-server,ov add-resource 显示成功但失效 #710

@ZaynJarvis

Description

@ZaynJarvis

Bug Description

如题
当 ovcli.conf api_key 配置为 server 的 root_api_key 时 (user 配置为 default)


ov add-resource https://raw.githubusercontent.com/volcengine/OpenViking/refs/heads/main/docs/en/about/02-changelog.md

status success
errors []
source_path 02-changelog.md
meta {"url":"https://raw.githubusercontent.com/volcengine/OpenViking/refs/heads/main/docs/en/about/02-changelog.md","detected_by":"extension","extension":".md","downloaded_from":"https://raw.githubusercontent.com/volcengine/OpenViking/refs/heads/main/docs/en...
root_uri viking://resources/02-changelog
temp_uri viking://temp/03172252_151de9/02-changelog

ov ls viking://resources
未显示 viking://resources/02-changelog 目录

查本地 data/viking/resources 目录 也不存在


正常配置 account & user 后,使用 user API key,add-resource & ls 表现正常

Steps to Reproduce

Image

Expected Behavior

要么 add-resource 报错,要么存储成功并可以通过 ls 搜索到

Actual Behavior

存储显示成功,但 ls 无法搜索到

Minimal Reproducible Example

Error Logs

OpenViking Version

0.2.6

Python Version

3.10.9

Operating System

macOS

Model Backend

None

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions