Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nacos更换1.4.1版本并配置identity key value 后出现页面404 #4738

Closed
qinmou opened this issue Jan 19, 2021 · 2 comments
Closed

Nacos更换1.4.1版本并配置identity key value 后出现页面404 #4738

qinmou opened this issue Jan 19, 2021 · 2 comments
Labels
status/duplicate This issue or pull request already exists

Comments

@qinmou
Copy link

qinmou commented Jan 19, 2021

问题如下
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Tue Jan 19 09:21:02 CST 2021
There was an unexpected error (type=Not Found, status=404).
Not found mehtod for path GET /nacos/

问题原因:看了下源码,1.4.1版本解决#4701issue后将下图中的method == null 判断处改为了直接返回,而不是1.3版本中判断为空后放行,进而导致nacos控制台页面直接被拦截而出现404问题
// 1.4.1版本
if (method == null) {
// For #4701, Only support register API.
resp.sendError(HttpServletResponse.SC_NOT_FOUND,
"Not found mehtod for path " + req.getMethod() + " " + req.getRequestURI());
return;
}
// 1.3.0版本
if (method == null) {
chain.doFilter(request, response);
return;
}

还有,客户端整合nacos所发送的所有请求也会经过该过滤器,配置了identity key value 后就必须得所有请求都自带所配置key value的请求头吗,

@lzp0412 lzp0412 added the kind/bug Category issues or prs related to bug. label Jan 19, 2021
@KomachiSion
Copy link
Collaborator

Fixed by #4708. 请重新下载最新的1.4.1版本进行更新。

@KomachiSion KomachiSion added status/duplicate This issue or pull request already exists and removed kind/bug Category issues or prs related to bug. labels Jan 19, 2021
@KomachiSion
Copy link
Collaborator

还有,客户端整合nacos所发送的所有请求也会经过该过滤器,配置了identity key value 后就必须得所有请求都自带所配置key value的请求头吗

客户端不会带,客户端需要走正式的鉴权。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants