Skip to content

[BUG] 对象存储(OSS/COS/S3...)定义挂载路径和根文件夹路径后删除文件夹失败 #338

Description

@liu731

Please make sure of the following things

  • I have read the documentation.
    我已经阅读了文档

  • I'm sure there are no duplicate issues or discussions.
    我确定没有重复的issue或讨论。

  • I'm sure it's due to OpenList and not something else(such as Network ,Dependencies or Operational).
    我确定是OpenList的问题,而不是其他原因(例如网络依赖操作)。

  • I'm sure this issue is not fixed in the latest version.
    我确定这个问题在最新版本中没有被修复。

OpenList Version / OpenList 版本

v4.0.1

Driver used / 使用的存储驱动

对象存储

Describe the bug / 问题描述

报错条件:
1.添加对象存储
2.自定义挂载路径和根文件夹路径(例如:/Data)
3.删除其下某个文件夹

报错信息:
{
"code": 500,
"message": "failed get dir: failed get parent list: failed get dir: failed get parent list: failed get dir: failed get parent list: failed get dir: failed get parent list: failed get dir: object not found",
"data": null
}

备注:
如果自定义挂载路径和根文件夹路径为 “/” 的话则为正常。

Same as AlistGo/alist#8380

感谢开源🙏

Reproduction / 复现链接

~

Config / 配置

~

Logs / 日志

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions