Skip to content

[BUG] 元信息设置密码后勾选应用到子文件夹不生效 #2223

@amrice

Description

@amrice

请确认以下事项

  • 我已确认阅读并同意 AGPL-3.0 第15条
    本程序不提供任何明示或暗示的担保,使用风险由您自行承担。

  • 我已确认阅读并同意 AGPL-3.0 第16条
    无论何种情况,版权持有人或其他分发者均不对使用本程序所造成的任何损失承担责任。

  • 我确认我的描述清晰,语法礼貌,能帮助开发者快速定位问题,并符合社区规则。

  • 我已确认阅读了OpenList文档

  • 我已确认没有重复的问题或讨论。

  • 我已确认是OpenList的问题,而不是其他原因(例如 网络依赖操作)。

  • 我认为此问题必须由OpenList处理,而非第三方。

  • 我已确认这个问题在最新版本中没有被修复。

  • 我没有阅读这个清单,只是闭眼选中了所有的复选框,请关闭这个 Issue 。

OpenList 版本(必填)

v4.1.10 (Commit: e3c664f) - Frontend: v4.1.10 - Build at: 2026-01-31 08:59:10 +0000

使用的存储驱动(必填)

对象存储

问题描述(必填)

元信息配置密码并开启应用到子文件夹。
在此设置下:访问https:///***.com/ObjectStorage需要密码

但是我输入密码后进入该目录下子文件夹后复制链接
https:///***.com/ObjectStorage/hi168
并在浏览器隐私模式下直接打开却可以直接访问该子目录下的内容。

日志(必填)

无错误日志,仅有运行日志:
2026/03/13 11:18:31 /home/runner/work/OpenList/OpenList/internal/db/storage.go:22 [0.121ms] [rows:1] UPDATE x_storagesSETmount_path="/ObjectStorage/hi168",order=0,driver="S3",cache_expiration=30,custom_cache_policies="",status="work",addition="{""root_folder_path"":""/"",""bucket"":""hi168-29356-2978mhge"",""endpoint"":""https://s3.hi168.com"",""region"":""openlist"",""access_key_id"":""B*********V"",""secret_access_key"":""Tv*************su"",""session_token"":"""",""custom_host"":""s3.hi168.com"",""enable_custom_host_presign"":false,""sign_url_expire"":4,""placeholder"":"""",""force_path_style"":true,""list_object_version"":""v1"",""remove_bucket"":false,""add_filename_to_disposition"":true,""enable_direct_upload"":false,""direct_upload_host"":""""}",remark="",modified="2026-03-13 09:28:57.866",disabled=false,disable_index=false,enable_sign=false,order_by="",order_direction="",extract_folder="",web_proxy=false,webdav_policy="302_redirect",proxy_range=false,down_proxy_url="",disable_proxy_sign=false WHERE id = 35 DEBU[2026-03-13 11:18:31]/home/runner/work/OpenList/OpenList/internal/op/storage.go:87 github.com/OpenListTeam/OpenList/v4/internal/op.LoadStorage() storage &{Storage:{ID:35 MountPath:/ObjectStorage/hi168 Order:0 Driver:S3 CacheExpiration:30 CustomCachePolicies: Status:work Addition:{"root_folder_path":"/","bucket":"hi168-********","endpoint":"https://s3.hi168.com","region":"openlist","access_key_id":"B**************V","secret_access_key":"T********************u","session_token":"","custom_host":"s3.hi168.com","enable_custom_host_presign":false,"sign_url_expire":4,"placeholder":"","force_path_style":true,"list_object_version":"v1","remove_bucket":false,"add_filename_to_disposition":true,"enable_direct_upload":false,"direct_upload_host":""} Remark: Modified:2026-03-13 09:28:57.866454622 +0000 UTC Disabled:false DisableIndex:false EnableSign:false Sort:{OrderBy: OrderDirection: ExtractFolder:} Proxy:{WebProxy:false WebdavPolicy:302_redirect ProxyRange:false DownProxyURL: DisableProxySign:false}} Addition:{RootPath:{RootFolderPath:/} Bucket:hi168-29356-2978mhge Endpoint:https://s3.hi168.com Region:openlist AccessKeyID:B***************V SecretAccessKey:T**********************u SessionToken: CustomHost:s3.hi168.com EnableCustomHostPresign:false SignURLExpire:4 Placeholder: ForcePathStyle:true ListObjectVersion:v1 RemoveBucket:false AddFilenameToDisposition:true EnableDirectUpload:false DirectUploadHost:} Session:0xc0005f8c08 client:0xc000accd78 linkClient:0xc000accd88 directUploadClient:0xc000accd98 config:{Name:S3 LocalSort:true OnlyProxy:false NoCache:false NoUpload:false NeedMs:false DefaultRoot:/ CheckStatus:true Alert: NoOverwriteUpload:false ProxyRangeOption:false NoLinkURL:false LinkCacheMode:0 OnlyIndices:false PreferProxy:false} cron:<nil>} is created INFO[2026-03-13 11:18:31]/home/runner/work/OpenList/OpenList/internal/bootstrap/storage.go:24 github.com/OpenListTeam/OpenList/v4/internal/bootstrap.LoadStorages.func1() success load storage: [/ObjectStorage/hi168], driver: [S3], order: [0]

配置文件内容(必填)

Image

复现链接(可选)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidInvalid Content/Cannot Reproduce

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions