OpenListTeam / OpenListTeam/OpenList

[Feature]添加类似百度网盘的路径参数作为密码传参的GET接口

Open
#723 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
24.7k
Forks
2.3k
Avg merge
1d 20h
Merged PRs (30d)
36

Description

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

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

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

  • 我已确认阅读了OpenList文档

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

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

  • 我已确认此功能尚未被实现。

  • 我已确认此功能是合理的,且有普遍需求,并非我个人需要。

需求描述

百度网盘后面加入?pwd=xxx即可以访问对应资源。方便定向分析和后续三方下载器调用且长期有效
使用外部的应用调用网址GET即可以访问真实地址 比如各种三方下载器 而不需要构造POST参数
对文件设定密码 此时直接访问 对应的 路径 /xxxx.mp4?pwd=aaa 即可以访问对应资源

实现思路

在alist中 /public/preview 有使用POST构造参数获取url 目前Openlist并未实现 应该可以省去post构造直接get获取

附加信息

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing AList's /public/preview POST behavior with the corresponding OpenList resource-access or preview route. Trace how path-based passwords are currently handled and determine the authentication, expiration, and error cases for a GET parameter. Done means a protected file can be accessed through its path with ?pwd=..., while existing access behavior remains unchanged and the relevant API tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.