DEF-038 — Masters: Duplicate titles accepted with no validation error

Admin Panel
Medium severity
Data Integrity
New
Defect DEF-038 — Severity: Medium · Status: New
Published

2026-06-17

DEF-038 — Masters: Duplicate titles accepted with no validation error

Summary

The Masters create form allows submitting a record with a title that already exists in the same master list. No uniqueness constraint is enforced on the Title field and no error message is displayed when a duplicate is submitted. The duplicate record is silently saved to the database, resulting in two entries with identical titles in the list.

Environment

  • URL: https://project6.dxtserver.com/drivelink_new/public/masters/safety-hazard/create
  • Module: Admin Panel — Masters → Safety & Hazard (likely applies to all Masters sub-pages)
  • Date Reported: 2026-06-17
  • Browser: Chromium (Playwright)
  • Testing Phase: Admin Panel — Section 2: Masters (test case MST-02-4)

Steps to Reproduce

  1. Log in to the Admin Panel.
  2. Navigate to Masters → Safety and Hazard.
  3. Note an existing title (e.g., “Weather Warnings”).
  4. Click + Create New.
  5. Enter the same title (“Weather Warnings”) in the Title field.
  6. Click Submit.
  7. Observe the list.

Expected Behaviour

The system should reject the submission with a validation error such as: “A record with this title already exists.”

The duplicate should not be saved, and the admin should be informed of the conflict so they can choose a unique title.

Actual Behaviour

The duplicate record is saved silently. The list now shows two entries with the same title. No error or warning is displayed.

This was confirmed during testing: “QA Test Hazard” was submitted twice and both records appeared in the Safety & Hazard list (5 entries instead of the original 3), each with identical Title values.

Impact

  • Duplicate master data entries cause confusion for admins managing the list
  • Duplicate entries likely propagate to the mobile app dropdowns (e.g., users see two identical options when selecting a hazard type)
  • Data integrity is compromised — records cannot be uniquely identified by title
  • Likely affects all Masters sub-pages (Broadcasting, SOS, Obstacle, Weather, Sale Attributes, etc.) since they share the same CRUD pattern

Severity

Medium — Data integrity issue with downstream impact on mobile app dropdowns and admin usability.

Priority

Medium

Status

New

Reported By

QA / Testing Team