Tryton - Issues

 

Issue7943

Title Allow to redirect bus request
Priority feature Status resolved
Superseder Nosy List ced, reviewbot, roundup-bot
Type feature request Components tryton, trytond
Assigned To ced Keywords review
Reviews 48691003
View: 48691003

Created on 2018-12-23.01:48:25 by ced, last changed by roundup-bot.

Messages
New changeset 2461e4ecdc20 by Cédric Krier in branch 'default':
Allow to redirect bus request
https://hg.tryton.org/tryton-env/rev/2461e4ecdc20
New changeset 014c206382b8 by Cédric Krier in branch 'default':
Allow to redirect bus request
https://hg.tryton.org/trytond/rev/014c206382b8
New changeset ec6e6f31b244 by Cédric Krier in branch 'default':
Allow to redirect bus request
https://hg.tryton.org/tryton/rev/ec6e6f31b244
review48691003 updated at https://codereview.tryton.org/48691003/#ps40001
review48691003 updated at https://codereview.tryton.org/48691003/#ps20001
review48691003 updated at https://codereview.tryton.org/48691003/#ps1
msg45481 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2018-12-23.01:53:05
Here is review48691003
I had to change tryton to support redirection.
I put the required header to allow browser to cache the redirection but for some reason my Firefox continues to POST to the original URL and no reuse the cache. It is not a big deal as the process of such request is very fast and client will do such request every 5 minutes.
msg45480 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2018-12-23.01:48:25
In order to easy configuration of a second thread-less server [1], I think we could allow to configure an URL host to redirect bus request to.
But to get this redirect working on web client, the server needs to support CORS [2]. I think we could have a simple global support once an origin is configured, it is allowed all the method and headers. For those who want more controls, they  could to use an HTTP proxy.


[1] https://discuss.tryton.org/t/thread-less-long-polling/960
[2] https://en.wikipedia.org/wiki/Cross-origin_resource_sharing
History
Date User Action Args
2019-01-18 11:01:52roundup-botsetmessages: + msg46060
2019-01-18 11:01:46roundup-botsetmessages: + msg46059
2019-01-18 11:01:42roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg46058
2018-12-24 16:14:01reviewbotsetmessages: + msg45492
2018-12-23 15:43:28reviewbotsetmessages: + msg45485
2018-12-23 02:09:27reviewbotsetnosy: + reviewbot
messages: + msg45482
2018-12-23 01:53:06cedsetstatus: in-progress -> testing
reviews: 48691003
messages: + msg45481
keyword: + review
2018-12-23 01:48:25cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)