Logged-in article view still crashes on an empty discussions container or a title with markup (rest of #406)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
2つのクラッシュが特定されている peer_reviewed_article.php の338~341行目と2015~2018行目を読んでください。まず、XMLノードの検索とタイトルテキストがどのように処理されているかを確認し、次に tests/bekend/test_paginas.py で指定された2つの回帰テストを実行してください。ディスカッションに public 子要素がない場合と、タイトルにマークアップが含まれる場合の両方で、ログイン済みのメンバーに対して2つのテストが通れば完了です。
索引モデルが issue の本文から書いたものです。
説明
Problem
#406 is closed by PR #519, merged into main on 2026-10-28 (41482e9). Three of the five crashes of #406 are solved on main:
- an article without
featured_image; - a page of a datatype that no longer exists;
- the comment moderation view.
Two still give a 500 for a logged-in member on main:
- An empty
<discussions/>container.peer_reviewed_article.php:338-341:findOneXPath('discussions/public')returns null, and$discussions->findXPath(...)then fails withCall to a member function findXPath() on null. This affects older articles whose discussions container has nopublicchild. - A title with markup, for example
<title><p>…</p></title>, which older articles have.getTitle()(peer_reviewed_article.php:2015-2018) callsgetText(), and that throwsTypeError: getText called on node with non-text children.
To reproduce
The known-bug tests in the branch of #520 (tests/bekend/test_paginas.py) cover both:
an_older_article_without_public_discussions_opens_for_membersan_older_article_with_markup_in_its_title_opens_for_members
Both still answer 500 on main 41482e9 (PHP 8.2).
Suggested fix
The same as in the patch of #406:
- treat a missing
publiccontainer as no comments; - read the title with
textContentinstead ofgetText().
🤖 Generated with Claude Code
- 主要言語
- JavaScript
- スター
- 5
- フォーク
- 9
- 平均マージ
- 18時間 7分
- マージ済み PR(30日)
- 11
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PlanBCode/hypha のほかの issue
-
Impact: Low Level: Easy Pagetype: Festival Type: Bug Value: Coders
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
Impact: Medium Level: Easy Pagetype: Mailinglist Type: Bug Value: Users
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
Impact: Low Level: Easy Type: Bug Value: Coders
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
PlanBCode/hypha#586 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Impact: Medium Level: Easy Type: Bug Usecase: De Stadsbron Value: Visitors
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
PlanBCode/hypha#522 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Impact: Low Level: Easy Type: Enhancement Value: Coders Value: Security
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
PlanBCode/hypha の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
swc-project/swc-next#1165 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nhsuk/nhsuk-prototype-kit-package#439 ·
メンテナーはふだん 1 日以内に返信
-
Add: &TV Logoオープンcheck:passed logos:add
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
-
BUG: Appointment time renders blank and PM appointment slots miscalculate vertical position in CalendarScreen対応中かも @aryanpatil-07 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
AOSSIE-Org/BabyNest#297 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Onboarding form: instructor radio never pre-selected "Yes" (permission vs permissions typo)対応中かも @ThakuraAnki が今日担当しました。 オープンbug
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
WikiEducationFoundation/WikiEduDashboard#7235 ·
メンテナーはふだん 1 日以内に返信