The "landing" route on / is unreachable (shadowed by the API entrypoint)

オープン 初心者向け
#72 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
php, symfony
領域
api, backend

調査の方向性

src/Controller/SecurityController.php の29行目付近から始めてください。ここで / に対する landing ルートが定義されており、API Platform のエントリポイントが最初に / に応答していることを確認します。次に tests/Api/SiteRoutesTest.php、特に現在の動作を固定している testRootReturnsApiPlatformEntrypointNotTheLandingController を読んでください。デッドルートとアクションを削除または移動し、そのテストを一致するように更新すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Backend bug severity: low

Problem

SecurityController defines #[Route(path: '/', name: 'landing')], but API Platform's entrypoint route answers / first, so this action can never run. After the API Platform 4 upgrade, / serves JSON-LD/HTML only (plain JSON gets 406).

Expected

Remove the dead route and action, or move them to another path if they are still needed.

Where

src/Controller/SecurityController.php (around line 29).
Pinned in tests/Api/SiteRoutesTest.php (testRootReturnsApiPlatformEntrypointNotTheLandingController).


Found by the API test suite added for #57 (branch feature/57-symfony-7.4); the behaviour is the same before and after the Symfony 7.4 upgrade. The current behaviour is pinned in the test named above (marked NOTE: current behaviour), so update that test together with the fix.

主要言語
PHP
スター
1
フォーク
0
平均マージ
7時間 58分
マージ済み PR(30日)
3

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

RunningJoke/allipunkte のほかの issue

RunningJoke/allipunkte の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。