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

[OWASP ZAP] 商品管理>カテゴリ管理 CSVダウンロードを追加 #5337

Merged
merged 2 commits into from
Apr 21, 2022

Conversation

carkn
Copy link
Contributor

@carkn carkn commented Mar 28, 2022

概要(Overview・Refs Issue)

OWASP ZAP 商品管理>カテゴリ管理 CSVダウンロードを追加

方針(Policy)

実装に関する補足(Appendix)

テスト(Test)

手元の環境で実行できていることを確認しています。

相談(Discussion)

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

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

レビュワー確認項目

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

@codecov-commenter
Copy link

codecov-commenter commented Mar 28, 2022

Codecov Report

Merging #5337 (11cf8b2) into 4.1 (2d30ebb) will increase coverage by 0.03%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                4.1    #5337      +/-   ##
============================================
+ Coverage     68.55%   68.59%   +0.03%     
  Complexity     6159     6159              
============================================
  Files           463      463              
  Lines         25279    25279              
============================================
+ Hits          17331    17340       +9     
+ Misses         7948     7939       -9     
Flag Coverage Δ
E2E 57.95% <ø> (+0.17%) ⬆️
Unit 76.15% <ø> (+0.04%) ⬆️

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

Impacted Files Coverage Δ
...orage/Handler/SameSiteNoneCompatSessionHandler.php 88.05% <0.00%> (-2.99%) ⬇️
...c/Eccube/Controller/Admin/Order/EditController.php 65.97% <0.00%> (+0.89%) ⬆️
.../Service/PurchaseFlow/Processor/PointProcessor.php 95.91% <0.00%> (+2.04%) ⬆️
...rvice/PurchaseFlow/Processor/AddPointProcessor.php 96.77% <0.00%> (+3.22%) ⬆️
src/Eccube/Entity/MailHistory.php 82.85% <0.00%> (+17.14%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2d30ebb...11cf8b2. Read the comment docs.

expect(message.responseHeader).toContain('HTTP/1.1 200 OK');
});

const csvExportURL = `${PlaywrightConfig.use.baseURL}/${ECCUBE_ADMIN_ROUTE}/product/category/export`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CSV が全角のようですが、意図的でしょうか?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nanasess
ご指摘ありがとうございます。
修正しました。

test.describe('プロダクト用雛形テンプレートのダウンロード時のテストを実行します[GET] @attack', () => {
let scanId: number;
test('プロダクト用雛形テンプレートのダウンロード時のアクティブスキャンを実行します', async () => {
scanId = await zapClient.activeScanAsUser(csvExportURL, 2, 55, false, null, 'GET', message.requestBody);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GET の場合は requestBody 不要かと思います

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nanasess
ご指摘ありがとうございます。
削除させていただきました。

@chihiro-adachi chihiro-adachi added this to the 4.1.x milestone Apr 1, 2022
@chihiro-adachi chihiro-adachi modified the milestones: 4.1.x, 4.1.3 Apr 21, 2022
@chihiro-adachi chihiro-adachi merged commit a9a56fa into EC-CUBE:4.1 Apr 21, 2022
@chihiro-adachi
Copy link
Contributor

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

@Yangsin Yangsin modified the milestones: 4.1.3, 4.2.0 Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants