Page MenuHomePhabricator

Accepts negative change id numbers
Closed, ResolvedPublic

Description

The number chooser on https://deploy-commands.toolforge.org/bacc will let you enter negative numbers (press down arrow).

Hitting Get commands then results in a Internal Server Error

Event Timeline

Change 742772 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[labs/tools/deploy-commands@master] Turn change ID input from type=number into inputmode=numeric

https://gerrit.wikimedia.org/r/742772

Change 742772 merged by Ladsgroup:

[labs/tools/deploy-commands@master] Turn change ID input from type=number into inputmode=numeric

https://gerrit.wikimedia.org/r/742772

You have my sincere apologies, by being a member in phabricator, it doesn't send you an email for each ticket in the project (which I thought it would) so I didn't get any notification for any of these. I'm so sorry.

Ladsgroup assigned this task to Lucas_Werkmeister_WMDE.

Feel free to reopen if you think it's not fixed yet.

I can still type in -1 and hit Get commands and it gives an Internal Server Error.

Bah, the attribute is called pattern, not format 🤦

Change 745483 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[labs/tools/deploy-commands@master] Fix input attribute name

https://gerrit.wikimedia.org/r/745483

(This doesn’t fix the backend error, of course, but it should prevent you from reaching it unless you do naughty things. I think that’s generally acceptable for a Toolforge tool, as long as the internal server error doesn’t cause problems beyond the one request, which I wouldn’t expect here.)

(This doesn’t fix the backend error, of course, but it should prevent you from reaching it unless you do naughty things. I think that’s generally acceptable for a Toolforge tool, as long as the internal server error doesn’t cause problems beyond the one request, which I wouldn’t expect here.)

This is not a mission critical productions service, if people do naughty things, they will get naughty responses.

Change 745483 merged by Ladsgroup:

[labs/tools/deploy-commands@master] Fix input attribute name

https://gerrit.wikimedia.org/r/745483

Checked and it's fixed now. I will be grumpy if you reopen it