Re: Rest-API hanging on DELETE and OPTIONS not supported.

Thomas Arendsen Hein <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
* John P. Rouillard <[email protected]> [20190202 21:37]:
> Using the OPTIONS method returns 501 (note the swagger-ui actually
> hangs until I ^C'ed the roundup-server). I then used their demo curl
> command to see what was happening. This patch fixes that:
> 
> diff -r 5fc476d4e34c roundup/scripts/roundup_server.py
> --- a/roundup/scripts/roundup_server.py Wed Jan 30 18:11:02 2019 +0100
> +++ b/roundup/scripts/roundup_server.py Sat Feb 02 15:21:42 2019 -0500
> @@ -255,7 +255,7 @@
>                      print('EXCEPTION AT', ts)
> 		                          traceback.print_exc()
> 
> -    do_GET = do_POST = do_HEAD = do_PUT = do_DELETE = do_PATCH = run_cgi
> +    do_GET = do_POST = do_HEAD = do_PUT = do_DELETE = do_PATCH = do_OPTIONS = r

This was in the original REST patch series, but seems to have been
lost at some point. Ralf, I'm not blaming you, but may I blame git
on this? ;-)

Thanks for adding it back (and to Ralf for bringing Chau's work into
Roundup, this looks very valuable!)

Regards,
Thomas

-- 
Thomas Arendsen Hein <[email protected]> - OpenPGP key: 0x5BB3F5195816791A
https://blogs.intevation.de/thomas/         - https://intevation.de/~thomas/
Intevation GmbH, Neuer Graben 17, 49074 Osnabrueck - AG Osnabrueck, HR B 18998
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
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.