Commit Graph

4647 Commits

Author SHA1 Message Date
Joey777210
1f5dbf0e79
nacos ui doc update to v2 (#10730)
* nacos ui doc update to v2

* nacos ui doc update to v2

* fix conflict
2023-07-10 15:31:30 +08:00
maoling
8bb957df6f
fix for react unique key warning (#10742) 2023-07-10 15:31:00 +08:00
Sunrisea
cae21e2dcd
[ISSUE #10734] Implement grpc server interceptor and grpc param extractors (#10745)
* For #10734,Implement grpc server interceptor and grpc param extractors

* For #10734,add unit test for grpc server interceptor and grpc param extractors

* For #10734,alter the test case

* For #10734,delete the ConnectionSetupRequestParamExtractor
2023-07-10 14:43:51 +08:00
maoling
e7fbbc1301
improvements for leave node api and UI (#10748) 2023-07-10 13:39:22 +08:00
wuyfee
6252a88e92
Delete client version (#10754)
* add nacos ci

* delete client version of nacos ci
2023-07-10 13:39:05 +08:00
Sunrisea
ba8e0e2dff
[ISSUE #10734] Implemented the parameter validation utility class (#10737)
* For #10734,Refactor the AbstractConfigRequest ,move common properties from its subclasses to the parent class,to reduce the number of corresponding parameter extractors by .

* For #10734,add ParamCheckRules,ParamCheckUtils, add  ParamExtractor interface and the abstract classes HttpParamExtractor and RpcParamExtractor, implement the corresponding Manager.

* For #10734,fix codestyle

* For #10734,fix codestyle , move extractor and extractorManager to core directory

* For #10734,fix codestyle

* For #10734,fix dependency of common module

* For #10734,fix codestyle and copyright

* For #10734,fix pom codestyle and copyright

* For #10734,fix pom codestyle and copyright

* For #10734,fix  copyright

* For #10734,fix  copyright

* For #10734,fix bug caused by refactor of AbstractConfigRequest ,add ut test of ParamExtractorManager

* For #10734,fix bug caused by refactor of AbstractConfigRequest

---------

Co-authored-by: zhuoguang <sunrisea@B-Q6UQMD6R-0222.local>
2023-07-07 11:06:00 +08:00
Darren Luo
a70483563c
换为js-yaml后调用了错误的方法,修复该变更导致所有yaml文件的校验都报错的问题 (#10724) 2023-07-05 18:57:35 +08:00
chenyiqin
653d16da67
report value change event to update SwitchDomain after load snapshot (#10694) 2023-07-03 14:18:28 +08:00
ZhangShenao
043510b2f8
Fix Word Spelling (#10714) 2023-07-03 14:16:31 +08:00
DiligenceLai
6ff9b556e8
[ISSUE #10571]Add SQL COMMENT (#10716) 2023-07-03 14:15:57 +08:00
blake.qiu
9116aee82f
fix(#10717): com.alibaba.nacos.common.http.client.request.JdkHttpClientRequest.execute, when the body instanceof String, no longer call com.alibaba.nacos.common.utils.JacksonUtils.toJson to parse body. (#10718) 2023-07-02 00:02:57 +08:00
ZhangShenao
b0b16e3919
Fix Word Spelling (#10711) 2023-06-30 10:22:03 +08:00
Darren Luo
4e64f7f4d6
ExceptionHandler 中 Exception 部分返回 body 参数增加 html 转义 (#10643)
* ExceptionHandler 中 Exception 部分返回 body 参数增加 html 转义

* 根据 nacos code style 重新格式化该文件
2023-06-30 10:20:53 +08:00
chenyiqin
eec0585d55
Report deregister event if read snapshot file (#10468)
* Report deregister event if read snapshot file

* fix checkstyle

* refactor the logic of refreshing clients in memory

* Format the log print

* replace list by set, and use Client#putServiceInstance replace Client#addServiceInstance
2023-06-26 09:41:09 +08:00
chenyiqin
d82687c493
Fix npe when hessian deserialize (#10659)
* fix npe

* fix npe when result is null

* remove redundant code
2023-06-26 09:39:24 +08:00
Wuyunfan-BUPT
ecd8ed815a
add nacos ci (#10666) 2023-06-21 10:11:16 +08:00
nov.lzf
0ba772658d
replace nacos cache with guava cache (#10674)
* replace nacos cache with
guava cache tt fix memory leak

* checkstyle
2023-06-20 13:34:20 +08:00
Darren Luo
f40e5937ec
提交 native-image 的 Reachability Metadata (#10634) 2023-06-19 10:45:09 +08:00
Darren Luo
4095d172d0
替换 yamljs 为 js-yaml 进行 yaml 格式校验,处理 yaml 同 key 不报错的问题 (#10647)
* 替换 yamljs 为 js-yaml 进行 yaml 格式校验,处理 yaml 同 key 不报错的问题

* 听说要build一下
2023-06-19 10:44:32 +08:00
TomlongTK
1311df0663
Subscribe list add service name (#10650) 2023-06-19 10:42:53 +08:00
ZhangShenao
44115d8a89
[bot pr#10648] Optimize Guava Dependency (#10651) 2023-06-19 10:41:48 +08:00
Yikun Chen
798f1c41e3
Fix: update application.properties.example (#10453)
* Fix: make application.properties.example the same as application.properties

* Fix: make application.properties.example the same as application.properties

* Fix: update application.properties.example

* Fix: update application.properties.example

* Fix: update application.properties.example
2023-06-15 10:47:46 +08:00
无处不在
8f9e6d35bc
[ISSUE #10521]代码支持数据源构造后进行连接检测,解决启动出错时提示No DataSourceSet现象 (#10524)
* [impr]增加代码支持数据源构造后进行连接检测,解决出错时提示真实数据库错误信息

* [impr]增加代码支持数据源构造后进行连接检测,解决出错时提示真实数据库错误信息

* [impr]add unit test and test connection util
2023-06-15 10:46:59 +08:00
Mike
7960c1efaa
Remove disable "UseParNewGC" option when use CMS (#10631)
* Specify the GC as the CMS when jdk version less 9.

* Remove disable "UseParNewGC" when use CMS.
2023-06-15 10:45:35 +08:00
Darren Luo
069c6f920c
[ISSUE #10593]修改 nacos-contrl-plugin 的数据落地位置 (#10638)
* 修改nacos-contrl-plugin插件中落地数据的 defaultBaseDir() 方法,使其不产生特殊的文件夹而落到运行目录的data文件夹下

* remove unused import
2023-06-15 10:29:20 +08:00
1em0n9527
4de440d3f7
[ISSUE #10598] Fix nacos-client get the wrong index of the nacos server list when use nacos-address endpoint (#10599)
* fix nacos clent get the random index of nacos server list bug

* Update ServerListManager.java
2023-06-14 10:56:24 +08:00
Karson
780e2f570a
add ldap config (#10608) 2023-06-07 13:28:47 +08:00
nov.lzf
a8a43af837
fix naming memory leak (#10606)
* fix  naming memory leak

* fix test case

* fix test case
2023-06-07 13:28:08 +08:00
zhanghong
38f461eb12
[ISSUE #10583]修复权限 (#10587)
* 修复权限

* 修改为console

* 修改为console
2023-06-05 17:21:05 +08:00
杨翊 SionYang
9d70b40e1e
For #10566, Use ClientReleaseEvent replace ClientDisconnectEvent. (#10557) 2023-05-26 17:40:58 +08:00
nov.lzf
83ee4c8e2c
1. notify thread change to one thread to avoid potential ClassLoader switch exception (#10555)
2. optimize current notify ,add receiveNotifyChanged flag
3. add notify block log for over 60s
4. add notify error & block stack trace
5. fix shutdown client worker memory leak  of server list change subscriber
6. use multi thread for different  task id  for sync with server to speed up config sync.
7. fix exception when request with 0 or negative timeouts.
8. simply local snapshot path  when env name over 50 chars
9. add a random sleep in health check for avoid health check syntony.
2023-05-26 17:01:06 +08:00
杨翊 SionYang
dced8805f2
For #10056, set Revision of client for distro sync. (#10553) 2023-05-26 15:52:58 +08:00
ZhangShenao
4c57517786
Use Generic Type in NacosConfigConfiguration (#10549) 2023-05-26 15:17:15 +08:00
nov.lzf
505c90b96d
uniform config lastmodified ts & refactor config disk storage. (#10533)
* uniform cache timestamp

* uniform cache timestamp

* uniform cache timestamp

* uniform cache timestamp

* checkstyle & pmd

* revert application properties

* remove duplicate code

* checkstyle and pmd

* bug fix
2023-05-26 09:53:25 +08:00
杨翊 SionYang
cf59d62260
HessianSerializer add whitelist. (#10542) (#10546)
* HessianSerializer add whitelist. (#10542)

* HessianSerializer add whitelist.

* Handle exception in onApply and onRequest to save the stateMachine.

* Add new ut for HessianSerializer

* Fix unit test.

* For checkstyle.
2023-05-26 09:31:55 +08:00
chenyiqin
8cd5a5ea0b
Add the validation for namespace name (#10520)
* add the validation for namespace name

* move the validation action to controller

* fix checkstyle

* add the check for namespaceId when creating

* fix checkstyle

* add UT for namespace controller

* remove unnecessary mock

* fix checkstyle

* fix checkstyle
2023-05-23 10:23:08 +08:00
nov.lzf
51903edd82
add out date connection active detection,expel it when client no response. (#10509)
* add out date connection active detection,expel it when client no response.

* add out date connection active detection,expel it when client no response.
2023-05-19 10:20:37 +08:00
The-Gamer-01
9e7ba8cf4b
[ISSUE #10388] Fix third-party component bugs (#10504) 2023-05-17 17:10:12 +08:00
suncong
ee30e354d1
Update MapperProxy.java (#10487)
* Update MapperProxy.java

fix:代理类打印日志错误

* Update MapperProxy.java

fix:代理类打印日志错误

* 规范格式

* Update MapperProxy.java

reformat code

* Update MapperProxy.java

reformat code
2023-05-17 16:57:56 +08:00
Montos
70b96495bd
Fix -在开启认证的情况下增加token解析认证处理方式 (#10425)
* Fix -在开启认证的情况下增加token解析认证处理方式

Fix -在开启认证的情况下增加token解析认证处理方式

* Update UserController.java

* Update UserController.java

* fix codestyle
2023-05-16 17:35:38 +08:00
chenyiqin
62a106bc1c
remove dependence of package sun.security.action for ResponseUtilTest.java (#10478) 2023-05-16 10:21:06 +08:00
杨翊 SionYang
6cde13be92
Merge pull request #10475 from alibaba/asoc2022_issue#8460-2
[ISSUE#8460] Add config change hook plugin.
2023-05-12 10:47:50 +08:00
chenyiqin
7c3518e7ca
Fix npe when concurrent operations for client (#10467) 2023-05-12 10:15:51 +08:00
KomachiSion
dc79f05838 For pmd 2023-05-12 10:14:21 +08:00
Wilson Wu
b535293bc2
Fix some missed i18n for ui (#10472) 2023-05-12 09:44:42 +08:00
Wilson Wu
9824743655
Fix broken logos (#10473) 2023-05-12 09:43:34 +08:00
KomachiSion
5897a61e8e Fix start error. 2023-05-11 20:09:33 +08:00
KomachiSion
f0336b86e8 Remove useless method and field. 2023-05-11 17:19:27 +08:00
KomachiSion
23780d9b15 ConfigChangeAspect 去除对插件实现的感知。 2023-05-11 16:44:29 +08:00
KomachiSion
131dc643b3 Merge remote-tracking branch 'upstream/develop' into asoc2022_issue#8460-2
# Conflicts:
#	persistence/src/test/java/com/alibaba/nacos/persistence/configuration/condition/ConfigChangeConfigsTest.java
2023-05-11 15:41:17 +08:00