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

upload_max_filesize の指定が PHP8 で効いていなかったのを修正 #5763

Merged
merged 1 commit into from
Sep 8, 2022

Conversation

nanasess
Copy link
Contributor

@nanasess nanasess commented Sep 2, 2022

概要(Overview・Refs Issue)

upload_max_filesize の指定が PHP8 で効いていなかったのを修正

方針(Policy)

実装に関する補足(Appendix)

テスト(Test)

phpinfo() にて post_max_size 及び upload_max_filesize が 10M になっているのを確認
image
image

相談(Discussion)

マイナーバージョン互換性保持のための制限事項チェックリスト

  • 既存機能の仕様変更はありません
  • フックポイントの呼び出しタイミングの変更はありません
  • フックポイントのパラメータの削除・データ型の変更はありません
  • twigファイルに渡しているパラメータの削除・データ型の変更はありません
  • Serviceクラスの公開関数の、引数の削除・データ型の変更はありません
  • 入出力ファイル(CSVなど)のフォーマット変更はありません

レビュワー確認項目

  • 動作確認
  • コードレビュー
  • E2E/Unit テスト確認(テストの追加・変更が必要かどうか)
  • 互換性が保持されているか
  • セキュリティ上の問題がないか
    • 権限を超えた操作が可能にならないか
    • 不要なファイルアップロードがないか
    • 外部へ公開されるファイルや機能の追加ではないか
    • テンプレートでのエスケープ漏れがないか

- `<IfModule mod_php.c>` を追加
- `post_max_size` は `upload_max_filesize` より大きな値にする必要がある
@chihiro-adachi chihiro-adachi added this to the 4.2.0 milestone Sep 2, 2022
@nanasess
Copy link
Contributor Author

nanasess commented Sep 2, 2022

#5706 も直ると思います

@codecov-commenter
Copy link

Codecov Report

Merging #5763 (d832784) into 4.2 (0c42641) will increase coverage by 0.01%.
The diff coverage is 70.00%.

@@             Coverage Diff              @@
##                4.2    #5763      +/-   ##
============================================
+ Coverage     78.84%   78.86%   +0.01%     
- Complexity     6273     6274       +1     
============================================
  Files           469      469              
  Lines         21058    21074      +16     
============================================
+ Hits          16604    16620      +16     
  Misses         4454     4454              
Flag Coverage Δ
E2E 64.85% <70.00%> (+0.01%) ⬆️
Unit 77.61% <77.77%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...r/Admin/Setting/System/TwoFactorAuthController.php 0.00% <0.00%> (ø)
src/Eccube/Form/Type/Admin/CustomerType.php 96.00% <ø> (+2.38%) ⬆️
src/Eccube/Form/Type/RepeatedPasswordType.php 85.00% <ø> (ø)
src/Eccube/Twig/Extension/IntlExtension.php 82.60% <0.00%> (ø)
src/Eccube/Form/Type/Admin/MemberType.php 91.37% <85.71%> (+0.81%) ⬆️
.../Controller/Admin/Setting/System/LogController.php 74.41% <100.00%> (ø)
...be/Service/PurchaseFlow/Processor/TaxProcessor.php 82.45% <0.00%> (-1.76%) ⬇️
...ontroller/Admin/Product/ProductClassController.php 90.28% <0.00%> (-0.58%) ⬇️
src/Eccube/Form/Type/Admin/LoginType.php 100.00% <0.00%> (ø)
src/Eccube/Form/Type/Admin/ProductClassType.php 100.00% <0.00%> (ø)
... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@chihiro-adachi chihiro-adachi merged commit b7d5ae1 into EC-CUBE:4.2 Sep 8, 2022
@chihiro-adachi
Copy link
Contributor

@nanasess
ありがとうございます。マージしました。

@nanasess nanasess deleted the add-upload-max-filesize-php8 branch October 3, 2022 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants