Skip to content

fix(drivers/openlist): pass through frontend refresh flag#2307

Merged
sevxn007 merged 2 commits intoOpenListTeam:mainfrom
sevxn007:fix/openlist
Apr 3, 2026
Merged

fix(drivers/openlist): pass through frontend refresh flag#2307
sevxn007 merged 2 commits intoOpenListTeam:mainfrom
sevxn007:fix/openlist

Conversation

@sevxn007
Copy link
Copy Markdown
Member

@sevxn007 sevxn007 commented Apr 3, 2026

Description / 描述

修复openlist驱动 刷新列表参数未向上传递

Checklist / 检查清单

  • I have read the CONTRIBUTING document.
    我已阅读 CONTRIBUTING 文档。
  • I have formatted my code with go fmt or prettier.
    我已使用 go fmtprettier 格式化提交的代码。
  • I have added appropriate labels to this PR (or mentioned needed labels in the description if lacking permissions).
    我已为此 PR 添加了适当的标签(如无权限或需要的标签不存在,请在描述中说明,管理员将后续处理)。
  • I have requested review from relevant code authors using the "Request review" feature when applicable.
    我已在适当情况下使用"Request review"功能请求相关代码作者进行审查。
  • I have updated the repository accordingly (If it’s needed).
    我已相应更新了相关仓库(若适用)。

Why this change is needed:
The OpenList driver should pass through the frontend refresh parameter instead of overriding it with a fixed value.

What was changed:
- Updated the openlist driver list request payload
- Changed the /fs/list Refresh field from a fixed false value to args.Refresh

What problem this solves:
Frontend-triggered directory refresh requests now reach the OpenList backend correctly, avoiding stale list results caused by cached responses.
Copy link
Copy Markdown
Member

@xrgzs xrgzs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用户没刷新(写入)权限的情况下可能会炸,建议加个 PassRefreshFlagToUpsteam 之类的设置项

@xrgzs xrgzs changed the title fix(openlist): pass through frontend refresh flag fix(drivers/openlist): pass through frontend refresh flag Apr 3, 2026
@sevxn007
Copy link
Copy Markdown
Member Author

sevxn007 commented Apr 3, 2026

没刷新(写入)权

用户没刷新(写入)权限的情况下可能会炸,建议加个 PassRefreshFlagToUpsteam 之类的设置项

已添加

@sevxn007 sevxn007 merged commit 9e49adc into OpenListTeam:main Apr 3, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants