Re: Rest interface: how to match empty fields

Ralf Schlatterbeck <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
On Mon, Oct 07, 2019 at 08:49:49AM -0400, John P. Rouillard wrote:
> >You can put "-1" for the ID.
> 
> Sorry I should have said I tried that and it didn't work (but I agree
> it should). This is the result with the version I installed from the
> tip yesterday.

Ah. I'm checking the incoming thing with isdigit(). This returns False
for '-1'. Hmpf.

> It does work in the html interface. Is -1 is special cased in the html
> interface? Are we filtering too much in the rest interface and just
> need to pass the parameter value down to the lower level rather than
> validating at the rest level.
See above, we need to match negative numbers, too.

I've just pushed a fix.

Ralf
-- 
Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
Open Source Consulting                  www:   http://www.runtux.com
Reichergasse 131, A-3411 Weidling       email: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.