Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

オブジェクトストレージのPrefixの文字列にバリデーションが存在しない #15454

Open
1 task done
1673beta opened this issue Feb 11, 2025 · 0 comments · May be fixed by #15455
Open
1 task done
Labels
⚠️bug? This might be a bug

Comments

@1673beta
Copy link
Contributor

1673beta commented Feb 11, 2025

💡 Summary

オブジェクトストレージのPrefixにURL-safeでない文字列が使えるため、\nなどの制御文字を入力するとファイルにアクセスする方法がなくなる
https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-guidelines

🥰 Expected Behavior

正しくファイルにアクセスできる

🤬 Actual Behavior

\nなどが入力できるため、ファイルにアクセスできなくなる場合がある

📝 Steps to Reproduce

  1. コントロールパネルからオブジェクトストレージの設定を開く
  2. Prefixに\nなどを入力する

💻 Frontend Environment

* Model and OS of the device(s):
* Browser:
* Server URL:
* Misskey:

🛰 Backend Environment (for server admin)

* Installation Method or Hosting Service: docker
* Misskey: 2025.2.0
* Node: 22.12.0
* PostgreSQL: 15
* Redis: 7
* OS and Architecture:

Do you want to address this bug yourself?

  • Yes, I will patch the bug myself and send a pull request
@1673beta 1673beta added the ⚠️bug? This might be a bug label Feb 11, 2025
@1673beta 1673beta changed the title オブジェクトストレージの文字列にバリデーションが存在しない オブジェクトストレージのPrefixの文字列にバリデーションが存在しない Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️bug? This might be a bug
Projects
1 participant