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

fix(backend): オブジェクトストレージの設定でPrefixを設定していなかった場合、nullが文字列として展開・ドメインの1つ… #15432

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

1673beta
Copy link
Contributor

@1673beta 1673beta commented Feb 8, 2025

What

objectStoragePrefixがnullな際に、https://{domain}/null/{filename}またはhttps://{domain}//{filename}になるのを修正

Why

fix #13963
fix #7613

Additional info (optional)

参考:

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

@github-actions github-actions bot added the packages/backend Server side specific issue/PR label Feb 8, 2025
Copy link
Contributor

github-actions bot commented Feb 8, 2025

このPRによるapi.jsonの差分
差分はありません。
Get diff files from Workflow Page

Copy link

codecov bot commented Feb 8, 2025

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 38.64%. Comparing base (231c2c2) to head (8900599).
Report is 8 commits behind head on develop.

Files with missing lines Patch % Lines
packages/backend/src/core/DriveService.ts 0.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #15432      +/-   ##
===========================================
- Coverage    38.64%   38.64%   -0.01%     
===========================================
  Files         1607     1607              
  Lines       204774   204775       +1     
  Branches      4016     4018       +2     
===========================================
  Hits         79141    79141              
- Misses      124991   124992       +1     
  Partials       642      642              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fruitriin
Copy link
Contributor

めちゃ歓迎だけど、この影響を受けていた既存のサーバーは今までアップロードされてたやつおかしくなりそう〜〜〜

@1673beta
Copy link
Contributor Author

1673beta commented Feb 8, 2025

このPRをマージしても影響するのは新規にアップロードされるやつだけですね

@syuilo
Copy link
Member

syuilo commented Feb 11, 2025

Prefixを設定していない状態で保存できないようにする選択肢はないでしょうか?

@1673beta
Copy link
Contributor Author

admin/update-meta周りかフロントエンドを調整すればできるかもしれませんが、既存のサーバーはnullで登録できていたので、破壊的変更にならないかが懸念点です

@kakkokari-gtyih kakkokari-gtyih added this to the v2025.2.1 milestone Feb 11, 2025
@1673beta
Copy link
Contributor Author

APIの変更は#15454 も含めて別PRで修正しようと思います

@1673beta
Copy link
Contributor Author

また、オブジェクトストレージのprefixがnullであること自体はS3で許容されていることなので特段不都合がないなら今のPRの変更で問題がないんじゃないかと思います

@mi-gh-maintainer mi-gh-maintainer bot merged commit ebd06be into misskey-dev:develop Feb 11, 2025
32 checks passed
Copy link

Thank you 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages/backend Server side specific issue/PR
Projects
4 participants