Page MenuHomePhorge

Improve error message when passing task IDs as URL parameter in invalid format
Closed, ResolvedPublic

Description

Upstreaming from https://phabricator.wikimedia.org/T266079

Steps to reproduce:

  1. Phorge at 67c0efdffb79d63ffcc15e07a0798f415a4e0845 , PHP 8.3.7.
  2. Create a task list by manually attaching task IDs as integers: http://phorge.localhost/maniphest/?ids=1,2,3,4
  3. See that it works - Phorge lists the tasks.
  4. Create a task list by manually attaching task IDs as monograms: http://phorge.localhost/maniphest/?ids=T1,T2,T3,T4

Actual outcome:
A cryptic error message "Expected a numeric scalar or null for %Ld conversion"

Screenshot from 2024-05-21 18-31-46.png (597×961 px, 72 KB)

plus log spam that I am not interested in.

Expected outcome:
A helpful error message

Screenshot from 2024-05-21 18-31-31.png (597×961 px, 59 KB)

without log spam.