Roundup Tracker - Issues

Message6762

Author schlatterbeck
Recipients rouilj, schlatterbeck
Date 2019-10-23.10:00:48
Message-id <20191023100043.oggnixniixs5wlgr@runtux.com>
In-reply-to <1571801505.56.0.0779379795448.issue2551047@roundup.psfhosted.org>
On Wed, Oct 23, 2019 at 03:31:45AM +0000, John Rouillard wrote:
> 
> I have a working wsgi setup. I am testing with uwsgi.
> I also have gnuicorn working without chunked encoding issues.
> 
> In testing, it looks like GET works.
> 
> I think I have fixed crash issues with OPTIONS and DELETE.
> 
> POST, PUT and PATCH work if I use: application/x-www-form-urlencoded
> If I use application/json I get crashes as the form passed into
> the rest code isn't constructed right and the call to self.handle_csrf()
> attempts to run:
> 
>   "@csrf" in self.form
> 
> and crashes as self.form.list is None which gives type error not indexable.
> 
> I think some of the logic that parses the input data and allows json
> to pass through needs to be duplicated in the wsgi handler to pass the
> json.
> 
> I'm checking it the changes to the wsgi handler now. Can you update and see
> what else is still broken.

Hmm, I'm using json with post and put all the time.
Works for me.
I'll now do an update and test if one of my scripts using both, post and
put, still works.

Ralf
-- 
Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
Open Source Consulting                  www:   http://www.runtux.com
Reichergasse 131, A-3411 Weidling       email: office@runtux.com
History
Date User Action Args
2019-10-23 10:00:49schlatterbecksetrecipients: + schlatterbeck, rouilj
2019-10-23 10:00:49schlatterbecklinkissue2551047 messages
2019-10-23 10:00:48schlatterbeckcreate