varg1714
b22e211044
feat(fs): Add skipExisting option to move and copy, merge option to copy ( #1556 )
...
* fix(fs): Add skipExisting option to move and copy.
* feat(fs): Add merge option to copy.
* feat(fs): Code smell.
* feat(fs): Code smell.
2025-11-24 14:20:24 +08:00
KirCute
72e2ae1f14
feat(fs): support manually trigger objs update hook ( #1620 )
...
* feat(fs): support manually trigger objs update hook
* fix: support driver internal copy & move case
* fix
* fix: apply suggestions of Copilot
2025-11-21 12:18:20 +08:00
Copilot
9de7561154
feat(upload): add optional system file filtering for uploads ( #1634 )
2025-11-14 14:45:39 +08:00
KirCute
055696f576
feat(s3): support frontend direct upload ( #1631 )
...
* feat(s3): support frontend direct upload
* feat(s3): support custom direct upload host
* fix: apply suggestions of Copilot
2025-11-13 13:22:17 +08:00
ASLant
39dcf9bd19
feat(onedrive): support frontend direct upload ( #1532 )
...
* OneDrive添加直连上传
* refactor
* fix: duplicate root path join
---------
Co-authored-by: KirCute <951206789@qq.com >
2025-11-06 23:22:02 +08:00
KirCute
b9f058fcc9
fix(backup-restore): add shares ( #1500 )
2025-11-05 12:11:20 +08:00
ILoveScratch
febbcd6027
feat(cache): improve cache management ( #1339 )
...
* feat(cache): improve cache management
* feat(disk-usage): add cache
* feat(disk-usage): add refresh
* fix(disk-usage): cache with ttl
* feat(cache): implement KeyedCache and TypedCache for improved caching mechanism
* fix(copy): update object retrieval to use Get instead of GetUnwrap
* refactor(cache): simplify DirectoryCache structure and improve object management
* fix(cache): correct cache entry initialization and key deletion logic in TypedCache
* refactor(driver): remove GetObjInfo interface and simplify Link function logic
https://github.com/OpenListTeam/OpenList/pull/888/files#r2430925783
* fix(link): optimize link retrieval and caching logic
* refactor(cache): consolidate cache management and improve directory cache handling
* fix(cache): add cache control based on storage configuration in List function
* .
* refactor: replace fmt.Sprintf with strconv for integer conversions
* refactor(cache): enhance cache entry management with Expirable interface
* fix(cache): improve link reference acquisition logic to handle expiration
* refactor: replace OnlyLinkMFile with NoLinkSF in driver configurations and logic
* refactor(link): enhance link caching logic with dynamic type keys based on IP and User-Agent
* feat(drivers): add LinkCacheType to driver configurations for enhanced caching
* refactor(cache): streamline directory object management in cache operations
* refactor(cache): remove unnecessary 'dirty' field from CacheEntry structure
* refactor(cache): replace 'dirty' field with bitwise flags
* refactor(io): 调高SyncClosers.AcquireReference的优先级
* refactor(link): 优化链接获取逻辑,增加重
* refactor(link): 添加RequireReference字段以增强链接管理
* refactor(link): 移除MFile字段,改用RangeReader
* refactor: 移除不必要的NoLinkSF字段
* refactor(cache): 修改目录缓存的脏标志定义和更新逻辑
* feat(cache): add expiration gc
---------
Co-authored-by: KirCute <951206789@qq.com >
Co-authored-by: KirCute <kircute@foxmail.com >
Co-authored-by: j2rong4cn <j2rong@qq.com >
2025-10-18 21:47:18 +08:00
jenfonro
549e60136b
fix(fs):fix retry task after restart ( #1467 )
...
* fix retry task after restart
* fix: initialize SrcStorage and DstStorage in tasks to prevent nil pointer dereference
* feat: implement storage load signal mechanism for improved synchronization
* fix: update StoragesLoaded logic
* refactor: reorganize storage loading logic and improve synchronization handling
---------
Co-authored-by: j2rong4cn <j2rong@qq.com >
2025-10-18 20:52:02 +08:00
KirCute
2bfbad2874
feat(offline_download): add 123 open ( #1427 )
2025-10-07 01:13:25 +08:00
KirCute
4ba7696032
feat(pikpak): support disk usage ( #1426 )
...
* feat(pikpak): support disk usage
* fix(alias): cannot list with details
* refactor: rename `NewDiskUsageFromUsedAndTotal`
* fix(disk-usage): get details of storages that is not initialized
2025-10-06 16:37:00 +08:00
KirCute
a2fc38be8d
perf(disk-usage): concurrently get details ( #1326 )
2025-09-29 23:26:56 +08:00
KirCute
b486af0031
feat(sftp-server): support disable password login ( #1357 )
2025-09-29 21:46:55 +08:00
KirCute
d465da43e3
fix(ftp-server): cannot get obj in uploading state inconsistency window ( #1293 )
...
* fix(ftp-server): cannot get obj in uploading state inconsistency window
* fix
* fix: duplicate obj when upload completed but client access does not
* fix
* feat: support stat remove and move
2025-09-23 01:00:18 +08:00
KirCute
3936e736e6
feat(drivers): add a driver that divides large files into multiple chunks ( #1153 )
2025-09-19 19:27:35 +08:00
KirCute
cc16cb35bf
feat(style): add driver icons and disk usage ( #1274 )
...
* feat(style): add driver icons and disk usage
* feat(driver): add disk usage for 115_open, 123_open, aliyundrive_open and baidu_netdisk
* feat(driver): add disk usage for crypt, sftp and smb
* chore: clean unused variable
* feat(driver): add disk usage for cloudreve_v4
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top >
* fix(local): disk label check when getting disk usage
* feat(style): return details when accessing the manage page
---------
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top >
Co-authored-by: MadDogOwner <xiaoran@xrgzs.top >
2025-09-19 11:59:11 +08:00
TwoOnefour
cbbb5ad231
fix(stream): http chucked upload issue ( #1152 )
...
* fix(stream): http chucked upload issue
* fix(stream): use MmapThreshold
* fix(stream): improve caching mechanism and handle size=0 case
* fix bug
* fix(buffer): optimize ReadAt method for improved performance
* fix(upload): handle Content-Length and File-Size headers for better size management
* fix(189pc): 移除重复限速
* fix(upload): handle negative file size during streaming uploads
* fix(upload): update header key from File-Size to X-File-Size for size retrieval
---------
Co-authored-by: j2rong4cn <j2rong@qq.com >
2025-09-15 19:36:16 +08:00
KirCute
bbb7c06504
feat(alias): support pass through provider ( #1269 )
2025-09-14 21:36:38 +08:00
KirCute
14bf4ecb4c
fix(share): support custom proxy url ( #1130 )
...
* feat(share): support custom proxy url
* fix(share): count access
* fix: maybe a path traversal vulnerability?
2025-08-28 22:11:19 +08:00
hshpy
04a5e58781
fix(server): can't edit .md source files ( #1159 )
...
* fix(server): can't edit .md source files
* chore
* add ignore direct link args
2025-08-28 16:19:57 +08:00
KirCute
048ee9c2e5
feat(server): adapting #1099 to #991 ( #1102 )
2025-08-19 15:48:59 +08:00
MadDogOwner
b04677b806
feat(server): add error page and status code ( #1099 )
2025-08-19 15:18:12 +08:00
KirCute
e4c902dd93
feat(share): support more secure file sharing ( #991 )
...
提供一种类似大多数网盘的文件分享操作,这种分享方式可以通过强制 Web 代理隐藏文件源路径,可以设置分享码、最大访问数和过期时间,并且不需要启用 guest 用户。
在全局设置中可以调整:
- 是否强制 Web 代理
- 是否允许预览
- 是否允许预览压缩文件
- 分享文件后,点击“复制链接”按钮复制的内容
前端部分:OpenListTeam/OpenList-Frontend#156
文档部分:OpenListTeam/OpenList-Docs#130
Close #183
Close #526
Close #860
Close #892
Close #1079
* feat(share): support more secure file sharing
* feat(share): add archive preview
* fix(share): fix some bugs
* feat(openlist_share): add openlist share driver
* fix(share): lack unwrap when get virtual path
* fix: use unwrapPath instead of path for virtual file name comparison
* fix(share): change request method of /api/share/list from GET to Any
* fix(share): path traversal vulnerability in sharing path check
* 修复分享alias驱动的文件 没开代理时无法获取URL
* fix(sharing): update error message for sharing root link extraction
---------
Co-authored-by: Suyunmeng <69945917+Suyunmeng@users.noreply.github.com >
Co-authored-by: j2rong4cn <j2rong@qq.com >
2025-08-19 15:10:02 +08:00
MadDogOwner
8c244a984d
refactor(assets): migrate to resource domain ( #975 )
...
* refactor(assets): migrate to resource domain
* feat(bootstrap): add migration value for logo and favicon settings
2025-08-10 09:57:33 +08:00
Suyunjing
aa0ced47b0
fix(webdav): Handle HEAD requests for directories with appropriate headers ( #1015 )
...
Implement handling of HEAD requests for directories by setting the correct Content-Type and Content-Length headers.
2025-08-09 13:57:09 +08:00
Suyunjing
ab747d9052
feat(config): Add PWA manifest.json endpoint for web app installation ( #990 )
...
* feat(config): Add PWA manifest.json endpoint for web app installation
* fix: Update comment to English in manifest handler
* fix: fix EOL
* fix: Remove unused fmt import from manifest handler
* feat: use site settings for manifest name and icon
* fix(manifest): Move manifest.json route to static handler for proper CDN handling
* feat: move manifest.json handler to static package and improve path handling
* feat: Add custom static file handler to prevent manifest.json conflicts
* fix: Integrate manifest.json handling into static file serving routes
* fix: Simplify PWA manifest scope handling and static file serving
- Remove CDN-specific logic for PWA manifest scope and start_url
- Always use base path for PWA scope regardless of CDN configuration
- Replace manual file serving logic with http.FileServer for static assets
* fix: Ensure consistent base path handling in site configuration and manifest path construction
* fix: Refactor trailing slash handling in site configuration
* feat(static): update manifest path handling and add route for manifest.json
2025-08-08 20:07:51 +08:00
Suyunjing
a703b736c9
feat(offline_download): filter empty URLs in offline download requests ( #948 )
2025-08-01 16:12:21 +08:00
hshpy
11cf561307
fix(security): potential XSS vulnerabilities ( #880 )
...
* fix(security): potential XSS vulnerabilities
* chore: replace alist identifier to openlist identifier
Co-authored-by: MadDogOwner <xiaoran@xrgzs.top >
Signed-off-by: ILoveScratch <ilovescratch@foxmail.com >
---------
Signed-off-by: ILoveScratch <ilovescratch@foxmail.com >
Co-authored-by: ILoveScratch <ilovescratch@foxmail.com >
Co-authored-by: MadDogOwner <xiaoran@xrgzs.top >
2025-07-29 20:17:11 +08:00
MadDogOwner
7da06655cb
feat(setting): add site version information ( #859 )
...
* feat(setting): add site version information
* feat(conf): update conf.WebVersion to rolling
* fix(static): update condition to check conf.Version instead of conf.WebVersion
* fix(build.sh): use rolling release for web frontend in dev and beta builds
* chore(build.sh): update GitAuthor to The OpenList Projects Contributors
* fix(static): update condition to check conf.WebVersion
2025-07-29 09:49:33 +08:00
花月喵梦
e0b3a611ba
feat(thunderx,pikpak): add offline download support for ThunderX; add ctx to specific PikPak functions ( #879 )
...
* feat(thunderx,pikpak): add offline download support for ThunderX; add ctx to specific PikPak functions
* Update internal/offline_download/tool/download.go
Co-authored-by: MadDogOwner <xiaoran@xrgzs.top >
Signed-off-by: 花月喵梦 <152958106+nekohy@users.noreply.github.com >
---------
Signed-off-by: 花月喵梦 <152958106+nekohy@users.noreply.github.com >
Co-authored-by: MadDogOwner <xiaoran@xrgzs.top >
2025-07-29 09:46:28 +08:00
MadDogOwner
da8d6607cf
fix(static): support logo replacement ( #834 Close #754 )
2025-07-25 17:12:51 +08:00
hshpy
6134574dac
fix(fs): rename bug ( #832 )
...
* fix(fs): rename bug
* chore
* fix bug
* .
---------
Co-authored-by: j2rong4cn <j2rong@qq.com >
2025-07-25 13:42:39 +08:00
Ljcbaby
358e4d851e
refactor(log): filter ( #816 )
2025-07-25 11:33:27 +08:00
MadDogOwner
4106e2a996
fix(static): correct CDN fetch condition for index.html ( #814 )
2025-07-24 22:28:58 +08:00
Seven
e93ab76036
feat(task-group): introduce TaskGroupCoordinator for coordinated task execution ( #721 )
...
* feat(task): add task hook,batch task
refactor(move): move use CopyTask
* Update internal/task/batch_task/refresh.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Signed-off-by: Seven <53081179+Seven66677731@users.noreply.github.com >
* fix: upload task allFinish judge
* Update internal/task/batch_task/refresh.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Signed-off-by: Seven <53081179+Seven66677731@users.noreply.github.com >
* feat: enhance concurrency safety
* 优化代码
* 解压缩
* 修复死锁
* refactor(move): move as task
* 重构,优化
* .
* 优化,修复bug
* .
* 修复bug
* feat: add task retry judge
* 代理Task.SetState函数来判断Task的生命周期
* chore: use OnSucceeded、OnFailed、OnBeforeRetry functions
* 优化
* 优化,去除重复代码
* .
* 优化
* .
* webdav
* Revert "fix(fs):After the file is copied or moved, flush the cache of the directory that was copied or moved to."
This reverts commit 5f03edd683 .
---------
Signed-off-by: Seven <53081179+Seven66677731@users.noreply.github.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: j2rong4cn <j2rong@qq.com >
2025-07-24 16:15:24 +08:00
Suyunjing
a9f02ecdac
refactor(log):Refactor log filtering to use centralized configuration and add server-specific filtering ( #798 )
...
* feat(log):Add configurable log filtering middleware for HTTP requests
Implement a comprehensive log filtering system that allows selective suppression of HTTP request logs based on paths, methods, and prefixes. The system includes environment variable configuration support and filters health checks, WebDAV requests, and HEAD requests by default to reduce log noise.
* fix(log):Replace gin.DefaultLogFormatter with custom implementation
* Remove filtered logger test file
* fix(log):Refactor log filtering to use centralized configuration and add server-specific filtering
* fix(log):Add documentation comments for log filtering configuration
2025-07-24 16:10:47 +08:00
Suyunjing
d9debb81ad
feat(log):Add configurable log filtering middleware for HTTP requests ( #782 )
...
* feat(log):Add configurable log filtering middleware for HTTP requests
Implement a comprehensive log filtering system that allows selective suppression of HTTP request logs based on paths, methods, and prefixes. The system includes environment variable configuration support and filters health checks, WebDAV requests, and HEAD requests by default to reduce log noise.
2025-07-24 00:00:26 +08:00
MadDogOwner
7d0de17daf
feat(static): fetch index.html from cdn for beta ( #372 )
...
* refactor(static): simplify folder iteration in Static function
* feat(static): disable local static when `cdn` is set
* feat(static): fetch index.html from cdn for beta
* refactor(static): use RestyClient for better retrying
* fix(static): add Accept header when fetching index.html from CDN
* refactor(static): optimize HTML replacement
* chore(static): add logging to static file system initialization
* feat(static): ensure static file redirected to CDN
2025-07-22 22:14:07 +08:00
hshpy
bba4fb2203
fix(security): directory traversal ( #744 )
...
* fix(security): Directory traversal
* chore: .
* 优化
---------
Co-authored-by: j2rong4cn <j2rong@qq.com >
2025-07-22 14:45:01 +08:00
SenkjM
5a0d8ee1b8
feat(proxy): add disable proxy sign ( #764 )
...
* feat(proxy): add disable proxy sign
* Update driver.go
* GenerateDownProxyUrl
* .
* Update internal/op/driver.go
Signed-off-by: j2rong4cn <36783515+j2rong4cn@users.noreply.github.com >
* .
---------
Signed-off-by: j2rong4cn <36783515+j2rong4cn@users.noreply.github.com >
Co-authored-by: j2rong4cn <j2rong@qq.com >
Co-authored-by: j2rong4cn <36783515+j2rong4cn@users.noreply.github.com >
2025-07-21 17:03:08 +08:00
pnparadise
86324d2d6b
fix(net): ensure accurate content-length in response ( #749 )
...
* fix(fs): ensure accurate content-length in http2 requests
Chrome browsers were unable to preview thumbnails, reporting an
'ERR_HTTP_2_PROTOCOL_ERROR'. This was caused by an incorrect
content-length header in the server's response for thumbnail images.
This commit corrects the content-length calculation, allowing
Chrome and other compliant clients to render thumbnails correctly.
* fix(net): ensure accurate content-length in response
* 补缺
* .
---------
Co-authored-by: zhiqiang.huang <zhiqiang.tech@gmail.com >
Co-authored-by: j2rong4cn <j2rong@qq.com >
2025-07-19 20:36:27 +08:00
j2rong4cn
0c461991f9
chore: standardize context keys with custom ContextKey type ( #697 )
...
* chore: standardize context keys with custom ContextKey type
* fix bug
* 使用Request.Context
2025-07-14 23:55:17 +08:00
j2rong4cn
2a4c546a8b
feat: default settings api ( #716 )
...
* feat: default settings api
* fix logic bug
* chore
2025-07-14 23:41:34 +08:00
j2rong4cn
cc01b410a4
perf(link): optimize concurrent response ( #641 )
...
* fix(crypt): bug caused by link cache
* perf(crypt,mega,halalcloud,quark,uc): optimize concurrent response link
* chore: 删除无用代码
* ftp
* 修复bug;资源释放
* 添加SyncClosers
* local,sftp,smb
* 重构,优化,增强
* Update internal/stream/util.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Signed-off-by: j2rong4cn <36783515+j2rong4cn@users.noreply.github.com >
* chore
* chore
* 优化,修复bug
* .
---------
Signed-off-by: j2rong4cn <36783515+j2rong4cn@users.noreply.github.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-12 17:57:54 +08:00
itsHenry
e5fbe72581
fix(security): add login count validation for webdav ( #693 )
2025-07-12 17:03:41 +08:00
Seven
19c6b6f930
feat(115_open): add offline download ( #683 )
2025-07-11 20:17:54 +08:00
j2rong4cn
ffb6c2a180
refactor: optimize stream, link, and resource management ( #486 )
...
* refactor: optimize stream, link, and resource management
* Link.MFile改为io.ReadSeeker类型
* fix (crypt): read on closed response body
* chore
* chore
* chore
2025-07-03 10:39:34 +08:00
MadDogOwner
874dc292ae
fix(gomod): go modules with tagged versions ( #499 )
...
fix: go modules with tagged versions
2025-07-01 09:54:50 +08:00
Suyunjing
52c93f2046
build:Update old dependencies to new hosting ( #495 )
...
* build:Update old dependencies to new hosting
2025-06-30 21:26:42 +08:00
j2rong4cn
103abc942e
refactor: pass api_url through context ( #457 )
...
* refactor: pass `api_url` through context
* 移除 LinkArgs.HttpReq
* pref(alias): 减少不必要下载代理
* 修复bug
* net: 支持1并发 分片下载
2025-06-30 15:48:05 +08:00
Suyunjing
4590795cba
fixed(fs):fixed overwrite functions ( #469 )
...
* fixed(fs):fixed overwrite functions
2025-06-29 12:17:23 +08:00