Commit Graph

545 Commits

Author SHA1 Message Date
KomachiSion
aba0facf90 Move user to nacos-plugin-default-impl module. 2022-01-26 10:05:39 +08:00
KomachiSion
6a4ecc1323 Move default auth impl from console to nacos-plugin-default-impl module. 2022-01-24 17:47:54 +08:00
KomachiSion
32d7ce3b66 Repackage some class 2022-01-24 15:35:45 +08:00
KomachiSion
89cc6caade Add plugin and auth-plugin module, and move class into module. 2022-01-21 15:06:09 +08:00
KomachiSion
be9516d037 Remove AuthManager.java 2022-01-21 13:49:30 +08:00
KomachiSion
e606dd7333 Grpc request use new plugin. 2022-01-20 20:49:49 +08:00
KomachiSion
80a6821bb7 Http request use new plugin. 2022-01-20 17:59:05 +08:00
KomachiSion
88818d0816 Http request use new plugin. 2022-01-20 16:04:20 +08:00
KomachiSion
d2e11a3de7 Add new ProtocolAuthService to replace AuthManager. 2022-01-20 14:22:43 +08:00
KomachiSion
dc1c05d2dc Repackage some auth classes. 2022-01-17 16:32:23 +08:00
KomachiSion
956df153d6 Add resource parser 2022-01-14 16:52:21 +08:00
onewe
0921a17336 [ISSUE #7607] Clean test's files after run the FileKvStorageTest
Close #7607
2022-01-10 16:04:48 +08:00
李晓双 Li Xiao Shuang
25464ff7e8
Merge pull request #7578 from MiracleDx/develop
#7577 fix missing return keyword of request body validated
2022-01-07 16:31:14 +08:00
李晓双 Li Xiao Shuang
bc439a4593
Merge pull request #7559 from MajorHe1/fix_authFilter
[ISSUE #7558] add serverIdentity empty-judgement to avoid useless log…
2022-01-07 16:24:10 +08:00
李晓双 Li Xiao Shuang
5ddb35a129
Merge pull request #7564 from horizonzy/catch-exception-when-register-self
catch exception when register self to cluster.
2022-01-07 16:19:09 +08:00
dongx
0318d46c23 fix missing return keyword of request body validated 2022-01-07 15:44:53 +08:00
horizonzy
d203421a8d modify log level when expcetion occur. 2022-01-07 15:40:19 +08:00
horizonzy
74345bb9c9 catch exception when register self to cluster. 2022-01-06 13:55:47 +08:00
MajorHe1
cab18a206f [ISSUE #7558] add serverIdentity empty-judgement to avoid useless log output 2022-01-05 20:48:18 +08:00
程露
cd469ca1b0
Merge pull request #7507 from li-xiao-shuang/feature_fix_1
Unnecessary 'toString()' call
2021-12-27 16:52:26 +08:00
lixiaoshuang
168b0b4416 Strengthen the code 2021-12-27 14:36:56 +08:00
lixiaoshuang
8bf430ac70 Unnecessary 'toString()' call 2021-12-27 13:05:37 +08:00
YunWZ
f30e69e9d5 Remove meaningless parentheses #7474 2021-12-21 23:53:38 +08:00
onewe
408c77ed68
Typo in word 'accetor' (#7273)
Close #7249
2021-11-24 11:06:26 +08:00
soulerror
921b0072d7
fix a wrong code annotation in com.alibaba.nacos.core.remote.ConnectionMeta (#7223) 2021-11-16 11:16:05 +08:00
onewe
e1487164ff
Ignore the WebServerInitializedEvent if the name space of the spring context is management (#7236)
Close#7230
2021-11-16 11:13:11 +08:00
吴治国
87ddbeff90
[ISSUE #6970] Add rest api v2 in core module (#7085)
* Add rest api v2 in core module

* merge cluster listNodes methods

* ut

* add beta annotation
2021-11-10 14:11:40 +08:00
赵延
1778a84964
Fix PushAckRequest mismatch problem. (#7179)
* fix PushAckRequest mismatch problem.

* add doc.

* add doc.
2021-11-08 10:23:14 +08:00
杨翊 SionYang
76aeb180d2
Refactor Server ability init login with SPI. (#7174)
* Move ability classes.

* Add ServerAbilityInitializer and RemoteAbilityInitializer

* Add NamingAbilityInitializer.

* Use ServerAbilityInitializer replace old init ability.

* For pmd.
2021-11-04 10:10:11 +08:00
赵延
0677323d59
remove useless grpc code. (#7163) 2021-11-03 10:23:38 +08:00
赵延
4efd0e7a7b
Fix response success (#6987)
* fix Response.success is false logic problem.

* fix Response.success is false logic problem.
2021-09-26 21:17:38 +08:00
brotherlu-xcq
9658d23b07
[ISSUE #6767] optimize the push data logic. (#6773)
* [ISSUE #6767] optimize the push logic.

* [ISSUE #6767] move the service to PushDataWrapper.

* [ISSUE #6767] optimize the ServiceMetadata.

* [ISSUE #6767] format the javadoc.

* [ISSUE #6767] format the javadoc.

* [ISSUE #6767] fix ci issue.

* [ISSUE #6767] fix ci issue.

* [ISSUE #6767] fix ci issue.
2021-09-02 14:54:17 +08:00
赵延
dfb926867a
when read-index read timeout, go to leader to read. (#6575) 2021-08-06 11:08:38 +08:00
ZZQ的
1119d0336f
Replace "ThreadFactoryBuilder" API with jdk API and add unit test (#6532) 2021-08-04 13:56:26 +08:00
ZZQ的
995cd7a3a4
Replace "google.common.reflect.* TypeToken" API with jdk API (#6527)
* Replace "google.common.reflect.* TypeToken" API with jdk API

* update unit test
2021-08-04 13:52:40 +08:00
ZZQ的
449480f68b
Refactor the cache to replace guava (#6520)
* Refactor the cache to replace guava

* Refactor CacheBuilder

* add unit test

* Format code
2021-08-03 09:30:26 +08:00
ZZQ的
c6c5cd45f1
Replace "google.common.base.Joiner" API with jdk API (#6501) 2021-08-02 10:07:08 +08:00
brotherlu-xcq
8f6bf616d7
[ISSUE #5093] Add unit tests for module nacos-consistency in nacos 2.0. (#6490)
* [ISSUE #5093] add unit test in nacos-consistency.

* fix unit test which cannot pass ci.

* remove the unused import.
2021-07-29 10:48:12 +08:00
杨翊 SionYang
fab5ae5bf8
Upgrade to 2.0.3 (#6488)
* Upgrade to 2.0.3

* Fix Unit test problem.

* Ignore illegal unit test
2021-07-28 19:20:44 +08:00
ZZQ的
47c6706a63
[Reduce dependence]>[Lists] Replace "google.common.collect.*" API wit… (#6404)
* [Reduce dependence]>[Lists] Replace "google.common.collect.*" API with jdk API

* use elements.size to init the array length

* Replace IllegalArgumentException with NullPointerException

* Refactor CollectionUtilsTest#list()

* Add exception message

* update annotation

* update unit test method name
2021-07-27 13:47:41 +08:00
wuwen
ab1f543b9f
improvement currentTimeMillis calc, using System.nanoTime() to measure elapsed time. (#6366) 2021-07-26 09:38:33 +08:00
杨翊 SionYang
a5cc7178fc
[ISSUE#6403] the expired time of naming client can be configured. (#6422)
* add AbstractDynamicConfig

* Add ClientConfig

* use ClientConfig to remove expired client.

* For checkstyle

* Update application.properties
2021-07-23 14:03:46 +08:00
wuwen
4d7ccd56b6
improvement performance (#6407) 2021-07-22 10:11:46 +08:00
ZZQ的
12a9bfb3c8
[ISSUE #6314] Remove common-lang3 from pom.xml (#6334) 2021-07-13 09:32:15 +08:00
hunjipo
cdc276e829
To slightly improve performance, this commit switches to StringBuilder.append(char) instead of StringBuilder.append(String) whenever we append a single character to a StringBuilder. (#6300) 2021-07-12 13:51:14 +08:00
brotherlu-xcq
6f826e9a55
[FOR 5094 cluster] add unit tests in nacos-core. (#6316)
* [ISSUE #5904] add ClusterRpcClientProxyTest.

* [nacos-core] [unit test] add unit test for FileConfigMemberLookupTest.
2021-07-12 09:29:31 +08:00
brotherlu-xcq
81e2f43e4b
[FOR 5094 controller] add unit tests in nacos-core. (#6307)
* [nacos-core] [unit test] add unit test for CoreOpsControllerTest, NacosClusterControllerTest.

* [ISSUE #5904] add ServerLoaderControllerTest.
2021-07-08 15:19:52 +08:00
ZZQ的
b9e388bff9
[core module] replace *commons.lang3*.*Utils to com.alibaba.nacos.com… (#6288)
* [core module] replace *commons.lang3*.*Utils to com.alibaba.nacos.common.utils.*Utils

* Use StringUtils replace jdk String method.

* Fix error logic.
2021-07-08 15:13:34 +08:00
brotherlu-xcq
71f170a7a5
[FOR 5094 auth] add unit tests in nacos-core. (#6290)
* [ISSUE #5904] add ParamRequestConditionTest.

* [ISSUE #5904] add AuthConfigTest and AuthFilterTest.

* [ISSUE #5904] add RemoteRequestAuthFilterTest.

* [ISSUE #5904] fix ci problem.

* [ISSUE #5904] add PathRequestConditionTest.
2021-07-07 10:20:14 +08:00
brotherlu-xcq
e2fc2e44a0
[FOR 5094 remote] add unit tests in nacos-core. (#6262)
* [ISSUE #5904] add unit tests for ClientConnectionEventListenerRegistryTest and ConnectionManagerTest.

* [ISSUE #5904] add unit tests for left class.

* [nacos-core] [unit test] change the uuid.

* [ISSUE #5904] fix the wrong assert.
2021-07-06 10:06:55 +08:00