Comments (5)
Issue is not in English. It has been translated automatically.
Title: Object storage access has incorrect access to URLs containing Chinese characters.
During use, it was found that moememos may have incorrectly processed URL requests containing Chinese characters (or unicode) and double-encoded the '%' symbol:
Correct url: <OSS access point>/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%.png
Error URL sent by MoeMemos: <OSS access point>/%25E5%25B1%258F%25E5%25B9%2595%25E6%2588%25AA%25E5%259B%25BE%.png
It is suspected that ‘%’ is encoded again as %25
from moememos.
Please provide your Memos server version and examples of the externalLink
field in your /api/v1/resource
response.
Moe Memos does re-encode parts of externalLink
due to the lack of proper URL encoding in Memos API, which I can still reproduce with Memos 0.18.2 and object storage service.
The response of /api/v1/resource
in my Memos instance is:
[
{
...
"externalLink": "https://<oss access point>/2024/01/1705950677_测试.jpeg"
...
}
]
from moememos.
I am now using Memos 0.18.2
, and my externalLink would be:
"externalLink": "https://<oss access point>/uploads/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202024-01-19%20105653.png"
from moememos.
I am using Aliyun OSS, it seems that Aliyun OSS will convert the URLs automatically.
For example, if I upload a file named "测试.png" (even not using Memos), the returned access URL will be:
https://<oss access point>/%E6%B5%8B%E8%AF%95.jpg
from moememos.
Thank you for providing the information!
I've figured out that it relates to how Memos writes ExternalLink
differently based on whether "URL Prefix" is used in the storage settings or not.
I'll remove the additional URL encoding in Moe Memos and separately open an issue/pull request in the Memos repository to add percent-encoding for ExternalLink
when "URL Prefix" is used.
from moememos.
Related Issues (20)
- ios16用不了最新的moe memos了吗QAQ HOT 3
- Cannot create memo with image attachment in 1.6 / memos 22.2 HOT 16
- ios17.5.1还是无法登录memos0.22.2 HOT 2
- Tags are gone after iOS upgrade to 1.6 HOT 2
- Notes editing does not work on iOS 1.6 / memos v0.22.2 HOT 3
- 修改时间 HOT 1
- 低于IOS17的不能下载了吗 HOT 2
- 适配 0.22.3 版本 / Support 0.22.3 version HOT 8
- iOS app features suggestions
- 我们可以换个图标嘛! HOT 1
- Try default schemas for URL
- "Explore" is blank screen
- "Resources" is blank screen
- ios下,docker部署memos,无法通过代理域名(内网穿透)登录,显示Your Server version is not supported. HOT 3
- 建议增加离线撰写模式 HOT 1
- Feature request:shorter display Note
- Detect no internet connection HOT 1
- 建议增加标签管理 HOT 2
- iOS18 闪退 HOT 1
- 增加更多的快速录入入口 HOT 1
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 moememos.