Page MenuHomePhabricator

Unhandled Exception ("InvalidArgumentException") when try to edit Herald rule.
Closed, ResolvedPublic

Description

When I'm trying to review rule description

H19 Prevent dangerous changes on selected branches
Affects: Commit Hook: Branches/Tags/Bookmarks

Im getting following error:

Unhandled Exception ("InvalidArgumentException")

Argument 2 passed to phutil_implode_html() must be of the type array, string given, called in /opt/phabricator/src/applications/diffusion/herald/DiffusionPreCommitRefChangeHeraldField.php on line 40 and defined

Version Info:

Phabricator Version 26faa8f1f6b4872be3cf889551cb4a480dbb2678
Arcanist Version 999eb93765688a788b77513334cc9a651726c94b
libphutil Version aa6cd8f7e5e5e637dcfcb8417fbc343b45820c93

Event Timeline

sicnervo raised the priority of this task from to Needs Triage.
sicnervo updated the task description. (Show Details)
sicnervo added a project: Herald.
sicnervo added a subscriber: sicnervo.

This is likely fixed by further changes connected to T8726, which are currently out for review. I'll keep an eye on it.

Additional information about the rule from MySQL;

idruleIDfieldNamefiledConditionvalue
33119diffusion.pre.ref.typeis"branch"
33219diffusion.pre.ref.nameregexp"RegEx"
33319diffusion.pre.ref.changebit"16"

RegEx looks like this:

@(^branch1$|^branch2$|^branch3$)@

epriestley claimed this task.

Pretty sure this is fixed now, let me know if you're still seeing it at HEAD.