You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@linkis.apache.org by binbincheng <74...@qq.com.INVALID> on 2023/02/22 10:17:34 UTC

[DISCUSS]About gatewayContext getResponse redirectTo redirect related issues in linkis

Wechat group "Apache Linkis community Development group " chat records are as follows:


she says:
@peacewong@WDS gatewayContext.getResponse.redirectTo Is there a good way to use this method to redirect and report 405 errors?


peacewong@WDS:
Send the detailed stack to see


she says:
Found the reason, the returned status code is 401, just change it to 301, otherwise, the current post mode will be used by default


peacewong@WDS:
Is it a code problem? You can submit a PR


she says:
It's not a code problem either. I didn't consider that the login will be redirected if I didn't consider it at the beginning.


peacewong@WDS:
First come to an issue to see


she says:
I don't know how to mention this, we need a question. itself does not have this problem


peacewong@WDS:
Is it a problem with sso integration?


she says:
Yes, we are a little special. is a backend redirect


peacewong@WDS:
Oh ok, see if you can make a compatible PR?


she says:
Well, I've perfected this and have a look


peacewong@WDS:
OK




-----------------




微信群“Apache Linkis社区开发群”聊天记录
如下面所述:



她说:
@peacewong@WDS&nbsp; gatewayContext.getResponse.redirectTo 大佬使用这个方式重定向报405 错误有好的方法吗?


peacewong@WDS:
详细堆栈发下看看


她说:
找到原因了,返回的状态码是401 改成301就行了,不然的话就会默认使用当前的post 模式


peacewong@WDS:
是代码的问题吗?可以提交PR下


她说:
也不是代码问题,刚开始就没考虑登陆成功也会重定向吧


peacewong@WDS:
先来个issue看看


她说:
这个不知道怎么提,我们需求问题。本身没有这个问题


peacewong@WDS:
是sso集成的问题不


她说:
是的,我们有点特殊。是后端重定向


peacewong@WDS:
哦哦 好的,看是不是可以做个兼容PR下?


她说:
恩那,这个我这完善了看看


peacewong@WDS:
好的。