background
At around three or four o'clock in the afternoon of 2021/08/30
, the test students in the group found that there was a problem with the main process of the Bosch project in Penglai environment (grayscale environment). No." does not jump to the specified page, but jumps to the inquiry home page
Analysis process
First, configure the local domain name resolution configuration of the Penglai environment, so that the local access to the domain name of the Kunlun environment (formal environment) is the Penglai environment
- Open
powerShell
with administrator privileges, go tohosts
directorycd C:\Windows\System32\Drivers\etc
- Enter
notepad hosts
, open hosts, add124.71.23.127 os3.rbtssws.com.cn
Then, I visited the Bosch project in Penglai Environment, reproduced the problem and found that a redirection occurred when I clicked on "Inquiry for stocking" or "Order No."
The redirected link is to request authorization, so why does such a redirect occur? The jump page should not have expired at once, session
, and then request headers
the cookies
field in 06216614cf3c41 and found that session
was not carried, while the Kunlun environment carried session
Could it be that there is no storage in the browser cookie
? However, the investigation is not the problem, so is it because the redirected domain name is inconsistent with cookie
in domain
?
Click on the link to jump to "Inquiry for stocking":
Click the link to jump to the "Single Number":
I did find that there is a problem with the redirected domain name. There is an extra number 2, which is very speechless! ! !
After further investigation, it is found that the domain name of the page jump path is the read configuration, which is injected when the project is deployed.
Summarize
The online problem is because there is a problem with the domain name of the redirected path, so that the redirection request does not carry cookie
, and the gateway intercepts it and redirects to request authorization, and the domain name requested for authorization is correct and carries cookie
, and the gateway judges that it is passed. Jump to the home page by default
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。