Cannot save webhook when URL contains Twig tags
まだ誰も着手していません。
評価
調査の方向性
Start in the Control Panel at Webhooks > New Webhook and reproduce the save failure with the Twig-templated URL shown in the issue. Trace the URL validation used by the webhook form and add or update regression coverage for templated URLs; done means creating and editing the webhook succeeds without an “Invalid URL” error.
索引モデルが issue の本文から書いたものです。
説明
Description
When creating or editing a webhook in the Control Panel with a Twig-templated URL, saving the form fails with the validation error "Invalid URL".
Steps to reproduce
- In the Craft Control Panel, go to Webhooks > New Webhook (or edit an existing one).
- Set
Sender Classtocraft\elements\EntryandEvent NametoafterSave. - Set the URL to:
{{ siteUrl }}purge/{{ event.sender.uri }} - Click Save.
Expected Result
The webhook is saved successfully.
Actual Result
Form saving fails with the error:
Invalid URL.
Additional info
- Craft version: 5.x
- PHP version: 8.2+
- Database driver & version: MySQL 8.0.46
- Plugins & versions: 3.3.0
- 主要言語
- PHP
- スター
- 84
- フォーク
- 12
- 平均マージ
- 1日 1時間
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
craftcms/webhooks のほかの issue
-
bug repo:webhooks
難易度 3/5 1〜2日 初心者へのやさしさ 56/100
-
bug repo:webhooks
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
bug repo:webhooks
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
bug repo:webhooks
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
-
bug repo:webhooks
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
craftcms/webhooks の issue をすべて見る
似ている issue
-
Document lexicon.default.userconfig and lexicon.default.userconfig.enforced in config.sample.phpオープンenhancement feature: settings good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
nextcloud/integration_openai#480 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
a11y
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
omeka/plugin-Contribution#84 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
recca0120/vscode-phpunit#620 ·
メンテナーはふだん 1 日以内に返信