Comments (2)
PicHoro的版本
v2.2.3
系统信息
Xiaomi 13
问题重现 | Bug reproduce
通过Alist V3链接Onedrive for Business,上传图片后一段时间再次打开APP,发现Alist相册中图片全部呈现感叹号,如下图:
尝试复制URL到浏览器直接访问,sharepoint给出提示: The access token has expired. It's valid from '11/28/2023 3:03:23 PM' and to '11/28/2023 4:03:23 PM'.
猜测通过alist获取的onedrive真实文件访问链接是存在有效期的。所以此种链接不适合长期分享,只短期分享可用。
不知是否有意向优化,如有,能想到的优化建议: 1、对于alist获取到的onedrive链接,每次访问时调用alist接口刷新(没接触过alist的api,只是按逻辑推测) 2、增加刷新按钮(开销较高) 3、相册缓存时缓存alist的重新解析的链接
该问题可能不符合大多数pichoro的场景,所以也只是告知问题,是否修复请大佬们定夺Orz
相关日志 | Logs
No response
应该是sign的过期时间导致的 查考alist issue alist-org/alist#1688
from pichoro.
感谢回复~~~~
刚才详细测试了下,发现似乎app中相册缓存的url是此处的url
后台Onedrive储存设置如果使用302,则会返回此种onedrive的直链;看起来这种链接会过期;
如果更改为本地代理,返回 域名/d/文件 的链接;看起来这种链接是可以保持长效的?(是不是这种会使得alist每次访问时都会进行解析)
所以:如果app缓存的链接为调用raw_url的链接,确实就会导致此种问题;那只能依靠alist的后台设置进行处理了,那能想到的就是在alist再挂一个一模一样的存储,新的设定为“本机代理”了;估计ondrive侧的链接过期问题不好处理,不知道有没有策略可以控制。
按照上述逻辑,好像这不是bug,是我自己乌龙了 qaq
from pichoro.
Related Issues (20)
- [Feature]: 希望添加自定义api功能 HOT 1
- [Feature]: 希望新增Webdav自定义域名的功能 HOT 2
- 增加对于telegraph存储的支持[Feature]: HOT 4
- [Feature]: 可否增加支持极狐lab图床 HOT 3
- 打开软件跳出申请安装未知软件界面 HOT 2
- [Feature]: 上传相册图片使用类似相册应用程序页面 HOT 2
- [Bug]: AlistV3存储在特定情况下的链接复制错误 HOT 3
- [Feature]: 关于ios/mac下编译运行问题 HOT 2
- [Bug]: 兰空图床的albumId设置无效 HOT 1
- [Feature]: 相册界面的缩略图显示改进与上传界面的备选配置快速切换 HOT 1
- 图片可以预览,视频不能播放 HOT 2
- [Bug]: 私有的倉庫無法顯示 HOT 2
- [Bug]: S3兼容平台桶名称无法识别大写 HOT 2
- [Bug]: 每次启动应用自动请求“安装未知应用”权限 HOT 1
- [Bug]: github图床显示上传失败 HOT 2
- [Bug]: 上传路径不支持占位符 HOT 4
- [Bug]: 设定oss参数配置-网址后缀时会自动添加一个“ ?” HOT 1
- [Feature]: 上传列表点击单个文件复制链接容易实现吗? HOT 1
- 实际上传格式与文档提示格式不同 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pichoro.