Commit Graph

4483 Commits

Author SHA1 Message Date
Karson
cfa3a0fd59
Unfiy Map's get and put methods by computeIfAbsent In AuthConfig (#8390)
* Unfiy Map's get and put methods by computeIfAbsent In AuthConfig

reformat code style

reformat code style

* reformat code style

* reformat issue
2022-05-23 15:19:22 +08:00
onewe
d6f27409a6
[ISSUES #8417] throw a HttpSessionRequiredException when sessions expired (#8419)
* [ISSUE #8417] throw a HttpSessionRequiredException when sessions expired

* [ISSUE #8417] add unit test

* [ISSUE #8417] repackage

Close #8417

* [ISSUE #8417] retry ci

* [ISSUE #8417] retry ci
2022-05-23 15:17:51 +08:00
Karson
89a0f89a8b
optimize IoUtils and Add some unit test (#8398)
* optimize IoUtils and Add some unit test

reformat codes

fix Too many unapproved license issue

fix Too many unapproved license issue

fix Too many unapproved license issue

fix Too many unapproved license issue

fix Too many unapproved license issue

* fix test case issue

* fix test case issue
2022-05-23 15:16:33 +08:00
Oliver
750e4f787c
Remove whitespace (#8409) 2022-05-23 15:15:32 +08:00
liqipeng
84644e07f3
remove commonOkHttp dependency to solve okHttp3 compatibility after upgrade spring-boot to 2.6.6 (#8422) 2022-05-23 15:03:40 +08:00
杨翊 SionYang
58968f98e2
[ISSUE#8405] Fix istio module cycle dependency problem. (#8440)
* Get ResourceManager when runtime to resolve cycle dependence temp.

* Fix Ut problem.

* Rollback changes for ClusterControllerTest

* Fix UT problem.
2022-05-23 11:07:02 +08:00
chenhao26
74c3355b71
fix spring cycle dependence JwtTokenManager (#8418)
* fix spring cycle dependence  JwtTokenManager

* remove unuse code

* check code style

* update test metrhod

* remove unuse code

* remove NacosAuthConfig logic from jwttoken

* fix testUpgradeCheckSucc test
2022-05-23 09:53:08 +08:00
Oliver
dbc1be8d8d
[ISSUE #8153]Fix AutoExpireCache NPE (#8162)
* Fix AutoExpireCache NPE

* add synchronized

* restore test

* add Null verification

* restore variable definition

* Fix NPE

* Add UT

* checkstyle
2022-05-20 14:52:26 +08:00
drgnchan
50d7b204ff
change logging order by logging after invoking getSnapshot (#8094) 2022-05-18 11:20:41 +08:00
bangbang2333
0a74419c50
[TMFB-4547]nacos没有对clusterName进行校验。出现实例成功注册,但实例查不出来的情况 (#8371) 2022-05-18 10:57:06 +08:00
杨翊 SionYang
39015341af
Upgrade jackson version to 2.12.6.1 (#8383) 2022-05-18 10:53:16 +08:00
Oliver
dbcdbb725d
[ISSUE #8372] Fix https connection (#8380)
* Fix #8372

* add unit test and remove set serverAddrsStr null

* restore judgement and UT

* add UT

* split UT
2022-05-18 10:52:21 +08:00
david6969xin
3a37290a01
[ISSUE#8358] make this anonymous inner class a lambda (sys module) (#8385) 2022-05-18 10:51:14 +08:00
david6969xin
47b0150dc1
[ISSUE#8358] make this anonymous inner class a lambda (example module) (#8386) 2022-05-18 10:50:30 +08:00
david6969xin
ceb7fa078a
[ISSUE#8358] make this anonymous inner class a lambda (core module) (#8387) 2022-05-18 10:25:55 +08:00
david6969xin
f8d307521c
[ISSUE#8358] make this anonymous inner class a lambda (config module) (#8388) 2022-05-18 10:23:51 +08:00
lpaz010
f21b332f98
reduce magic value (#8395) 2022-05-18 10:16:33 +08:00
Endwas
b928568ce8
[ISSUE #7315] Unfiy Map's get and put methods by computeIfAbsent In ThreadPoolManager (#7304)
* Unfiy Map's get and put methods by computeIfAbsent In ThreadPoolManager

What is the purpose of the change
Optimization and tidy codes.

Brief changelog
Unfiy get/put by computeIfAbsent.

Verifying this change
eclipse-pmd was used to verify the changes

* Unfiy Map's get and put methods by computeIfAbsent In ThreadPoolManager

What is the purpose of the change
Optimization and tidy codes.

Brief changelog
Unfiy get/put by computeIfAbsent.

Verifying this change
eclipse-pmd was used to verify the changes
2022-05-16 10:36:04 +08:00
david6969xin
5938b7f50f
[ISSUE#8358] make this anonymous inner class a lambda (client module) (#8367) 2022-05-16 10:18:57 +08:00
david6969xin
e17ea65954
[ISSUE#8358] make this anonymous inner class a lambda (common module) (#8368) 2022-05-16 10:18:01 +08:00
杨翊 SionYang
646ea61cab
Remove mina dependency. (#8369) 2022-05-16 10:14:58 +08:00
李晓双 Li Xiao Shuang
2bef9b6020
显式类型可替换为 <> (#8378) 2022-05-16 10:12:44 +08:00
onewe
6de92e40c5
Fix some failing unit tests in nacos config module (#8379)
* [ISSUE #8348] fix mockito's mockStatic method error

* [ISSUE #8348] fix all the unit test's error

Close #8348
2022-05-16 10:12:04 +08:00
david6969xin
eb57028ba6
[ISSUE#8358] make this anonymous inner class a lambda (#8365) 2022-05-13 11:32:21 +08:00
yanhom
d89076b3e6
Support for ibm J9 (#8325)
* support for ibm J9

* format code, add newline at end of file

* format code

* use nacos code style format codes
2022-05-13 11:03:01 +08:00
onewe
eff327d623
[ISSUE #8318] fix findAllConfigInfoForDumpAll sql args error (#8319)
* [ISSUE #8318] fix findAllConfigInfoForDumpAll sql args error

Close #8318

* [ISSUE #8318] remove the unnecessary arg

Close #8318
2022-05-13 09:53:52 +08:00
hutt
c68956b179
Add comments about config client failover (#8327) (#8343) 2022-05-12 19:28:27 +08:00
rui.zhang
4d8a7626aa
Hotfix issue 8350 (#8351)
* optimization: in this case, renamed the variable definition

* optimization: in this case, renamed the variable definition

* optimization: revert the VipServer to Vipserver

* optimization: reverse vipServer changes

* optimization: recover renamed vipServer
2022-05-12 18:16:12 +08:00
杨翊 SionYang
399802603a
Enhance Unit test stability. (#8346)
* Enhance Unit test stability.

* print detail stacktrace when unit test error.
2022-05-11 18:00:27 +08:00
杨翊 SionYang
ed999d9522
Add codeCov report after CI finish (#8344)
* Try add codecov

* Try add codecov

* Try scan all jacoco.xml

* Try to add all jacoco.xml

* Add codecov.yml

* Fix copyright check for codecov.yml

* Fix copyright check for codecov.yml
2022-05-11 16:20:28 +08:00
Oliver
409d393f13
fix: update comment (#8340) 2022-05-11 11:19:56 +08:00
杨翊 SionYang
a1c7715e16
[ISSUE#4982] Fix naming module unit test and generate jacoco coverage report (#8282)
* 更新jacoco版本

* Fix naming module unit test and generate jacoco coverage.

* Fix log too long problem.

* Fix MetricsMonitorTest
2022-05-09 16:08:59 +08:00
onewe
234e6f2a11
[ISSUE #8295] fix can't login when use embedded storage in cluster model (#8304)
Close #8295
2022-05-09 13:09:38 +08:00
bangbang2333
341bc298a2
## @Desc: (#8063)
[ISSUE #8038] Fix config_tags_relation Table can Repeat Insert bug
## @Issue Link:
https://github.com/alibaba/nacos/issues/8038
2022-05-06 11:50:40 +08:00
訾明华
dc33cf2c8f
增加对状态码为404的判断 (#7984)
由于目前调用GET: /nacos/v1/cs/configs,当配置不存在时,会返回状态码为404。此处无法识别错误,导致日志看不出来
2022-05-06 11:48:11 +08:00
drgnchan
7dc1c82166
use getEncryptDataKeySnapshot instead of getEncryptDataKeyFailover (#8096) 2022-05-06 11:47:22 +08:00
Cherish 蔡
2233c2de1c
feat(#6506): Can change betaIps multiple times in beta(or gray). (#8234)
1. And fix SQL `encrypted_data_key=?WHERE`.
2022-05-06 11:46:12 +08:00
Roger3581321
fac7a1c6a1
Deleting redundant toString() method (#8291) 2022-05-05 22:04:21 +08:00
Roger3581321
bda6ecad66
[Optimize] Replace keySet() to entrySet() (#8286)
Optimized translateParameterMap() by replacing keySet() to entrySet()
2022-04-30 21:24:30 +08:00
Oliver
f39add7900
Replace keySet() to entrySet() (#8281) 2022-04-29 23:02:32 +08:00
onewe
5926c67062
[ISSUE #8150] Add the namespace description item to the namespace list page (#8155)
* [ISSUE #8150] Add the namespace description item to the namespace list page

Close #8150

* [ISSUE #8150] resolve conflict

Close #8150

* [ISSUE #8150] Rebuild console-ui
2022-04-29 11:36:07 +08:00
杨翊 SionYang
2e0eca4093
Upgrade to 2.1.0 (#8268) 2022-04-27 15:50:38 +08:00
onewe
8980a960aa
[ISSUE #7487] Add generics for the CacheBuilder. (#7490) 2022-04-27 13:52:49 +08:00
NailCui
92a0eb0988
[ISSUE#7780] Fix a-b-a problem (#7783) 2022-04-27 13:51:24 +08:00
ChunHuiQiu
896bddd043
[ISSUE #8193] Remove redundant code (#8200)
* remove redundant code

* fix constructor
2022-04-27 13:50:48 +08:00
胡俊
98d1221b9e
[ISSUE#6999] Solve the problem that Nacos client does not support logback overload log configuration (#8229)
* Revert "[ISSUE#6999]Logback overrides the automatic refresh of application logback . issu… (#7596)"

This reverts commit 7bb6cf2d13.

* bak

* suport logback update

* 。

* 。

* Revert "。"

This reverts commit b5f7a698c149b8a95328aa72f5b30b84d19fa0e2.

* suport logback update

* suport logback update

* 修改style

* 添加注释
2022-04-27 13:50:10 +08:00
Cherish 蔡
a170a696f3
feat(#7498): Some machines are case sensitive, so rename instanceFilter.js to InstanceFilter.js (#8236) 2022-04-26 09:46:08 +08:00
onewe
767238ef59
[ISSUE #8214] Add ldap auth plugin (#8216)
* [ISSUE #8214] Add ldap auth plugin

- move the config of ldap from NacosAuthConfig to LdapAuthConfig

Close #8214

* [ISSUE #8214] Resolve CI error

* [ISSUE #8214] The constants of Ldap move to the plugin-impl module
2022-04-25 18:02:13 +08:00
nov.lzf
2e9c09d367
fix different client worker share same localsnapshot bug ,add properties to control whether load snaoshot content on startup in CacheData (#8202) 2022-04-24 13:33:28 +08:00
chenhao26
028075138c
optimize method calls (#8219)
* add log Loggers.REMOTE_PUSH.warn format word and optimize method calls

* update log warn
2022-04-22 16:49:52 +08:00