Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

A server-side validation error removes the field's own validators (e.g. required)

オープン
#6,335 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

@kanasznagyzoltan がすでに取り組んでいます。

2026年10月7日 から。

  • #6337 @kanasznagyzoltan による — オープン

評価

この issue はまだ評価されていません。

説明

affects: 10.x affects: main bug component: submission error handling

Describe the bug

When the REST API reports a validation error for a form field, FormService.addErrorToField() keeps the error in place with setValidators(), which replaces all validators of the field. removeErrorFromField() then calls clearValidators(). From then on the field has lost its own validators, such as required, so the client no longer flags it.

Seen on DSpace10.0; the same code is on main.

To Reproduce

  1. Start a new submission and leave a required field (e.g. Title) empty.
  2. Click "Deposit": the server-side error is shown on the field.
  3. Enter a value: the error goes away.
  4. Clear the field again: no "required" error is shown on the client any more.

Expected behavior

After a server-side error has been removed, the field still has its own validators, and clearing a required field shows the "required" error again.

Related work

Link to any related tickets or PRs here.

主要言語
TypeScript
スター
180
フォーク
577
平均マージ
2日 12時間
マージ済み PR(30日)
111

環境構築

はじめの一歩

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

DSpace/dspace-angular のほかの issue

DSpace/dspace-angular の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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