Commit Graph

3908 Commits

Author SHA1 Message Date
onewe
d0b2c69d5e
fix: AuthConfigs illegal base64 character: '$' (#7209)
- Add catch block, return getBytes result if base64 decode failed
- Add JwtTokenManager unit test

Closes #7203
2021-11-12 11:02:45 +08:00
李晓双 Li Xiao Shuang
c6adbcaa20
replace with lambda (#7218) 2021-11-12 10:56:54 +08:00
MajorHe1
9e1b094985
[ISSUE #5092] add unit tests for ConfigOpsController in nacos-config (#7198) 2021-11-12 10:55:38 +08:00
MajorHe1
4fdba5f902
[ISSUE #5092] add unit tests for HistoryController in nacos-config (#7199) 2021-11-12 10:55:24 +08:00
MajorHe1
8016eb7003
[ISSUE #5092] add unit tests for ListenerController in nacos-config (#7200) 2021-11-12 10:55:09 +08:00
李晓双 Li Xiao Shuang
774fcf74ce
[ISSUE ##7214] replace with lambda (#7215)
* can be replaced with lambda

* can be replaced with <>

* replace with lambda

* delete unused import
2021-11-12 10:28:25 +08:00
李晓双 Li Xiao Shuang
80874749bf
[ISSUE #7220] replace with lambda (#7222)
* replace with lambda

* replace with lambda
2021-11-12 10:20:54 +08:00
杨翊 SionYang
0719200c38
[ISSUE#7210] Add service rest api for v2. (#7211)
* Add service rest api for v2.

* For PMD.
2021-11-11 10:14:14 +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
MajorHe1
cc568a6ee9
[ISSUE #5092] add unit tests for ConfigController in nacos-config (#7186) 2021-11-08 09:52:52 +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
brotherlu-xcq
f51985e0b1
[ISSUE #7504] fix the typos in TemplateUtils.java. (#7162) 2021-11-04 09:58:34 +08:00
赵延
290316d2ac
not publish server list change event when the servers is not change. (#7165) 2021-11-04 09:58:09 +08:00
onewe
ef5bb0a83d
[ISSUE #7114] Enhance the constants for auth module. (#7170)
- Create a Constants.java
- Move all the string literal to the Constants.java
- Delete the PropertiesConstant.java
2021-11-04 09:57:17 +08:00
赵延
0677323d59
remove useless grpc code. (#7163) 2021-11-03 10:23:38 +08:00
MajorHe1
d6b18120d2
[ISSUE #5092] add unit tests for CapacityController in nacos-config (#7140) 2021-11-03 10:21:58 +08:00
MajorHe1
e6ebad22d9
[ISSUE #5092] add unit tests for ClientMetricsController in nacos-config (#7143) 2021-11-03 10:21:27 +08:00
MajorHe1
093534c492
[ISSUE #5092] add unit tests for CommunicationController in nacos-config (#7144) 2021-11-03 10:21:09 +08:00
李晓双 Li Xiao Shuang
6121bc7e05
can be replaced with <> (#7137) 2021-10-28 10:14:27 +08:00
李晓双 Li Xiao Shuang
72bbd24c88
[ISSUE ##7131] replaced with lambda (#7136)
* can be replaced with lambda

* can be replaced with <>
2021-10-28 10:14:08 +08:00
MajorHe1
70f7c5674e
[ISSUE #5092] add unit tests for configuration in nacos-config (#7135) 2021-10-28 10:13:31 +08:00
MajorHe1
ca1dfa0c94
[ISSUE #5092] add unit tests for constant in nacos-config (#7133)
* [ISSUE #5092] add unit tests for constant in nacos-config

* [ISSUE #5092] add license for CounterModeTest.java
2021-10-28 10:13:09 +08:00
李晓双 Li Xiao Shuang
cc213884ff
fix type (#7132) 2021-10-28 10:12:27 +08:00
Roger3581321
0aeab6229f
Updated the copyright time (#7119) 2021-10-28 10:12:05 +08:00
Roger3581321
ea2a106160
Changed the "initialCapacity" of HashMap (#7074) 2021-10-21 11:39:42 +08:00
Geertjan Wielenga
41950966d8
Switch to fixed JDK versions (#7025) 2021-10-21 11:37:55 +08:00
brotherlu-xcq
9cf5dcb8f4
[ISSUE #7001] keep the count value in Nacos 2.x same with value Nacos 1.x . (#7064) 2021-10-18 11:17:30 +08:00
孙继峰
91706cf137
[ISSUE #6978] move unit test case that exist in integration test class (#7042)
* delete unit test case that already exist in HttpUtilsTest

* move unit test case to QueryTest

* move unit test case to ResponseHandlerTest

* delete empty test class
2021-10-11 09:50:31 +08:00
KomachiSion
6317a3fc89 Fix ram type plugin not login for config module. 2021-10-09 15:13:23 +08:00
KomachiSion
dd600537b0 For PMD and copyright. 2021-10-09 14:20:39 +08:00
KomachiSion
986b125a81 For PMD. 2021-10-09 14:08:04 +08:00
杨翊 SionYang
77afc50350
[ISSUE#5696] Move and repackage some ram class to ram package. (#7040)
* move client.identity package to auth.ram.identity.

* move SignUtil to ram.utils.

* Add shutdown for auth plugin.

* Move SpasAdapter to new package.
2021-10-09 11:38:43 +08:00
杨翊 SionYang
7ccd0773f1
[ISSUE#5695] Replace the usage of Ram in naming and config module. (#7038)
* Change SecurityProxy usage

* Replace ram usage in naming module

* Replace ram usage in naming module

* Replace ram usage in config module

* Remove unused field and fix unit test.
2021-10-09 10:32:45 +08:00
杨翊 SionYang
1cfbd45fda
[ISSUE#5696] Add Ram client auth service impl. (#7036)
* Add Resource abstract.

* Add Ram client auth service impl.
2021-10-08 16:59:08 +08:00
杨翊 SionYang
cbf80cd297
[ISSUE#5696] repackage client (#7029)
* Rename and move classes make them more readable.

* Rename and move test classes.
2021-10-08 10:03:36 +08:00
brotherlu-xcq
3960beb869
[ISSUE #7006] remove the unnecessary popup when delete namespace. (#7007) 2021-10-08 09:27:17 +08:00
Wuyunfan-BUPT
e3b7f0e79f
[ISSUE#5696] Fix auth server type (#7004)
* Add MySQL DataBase

* Add Derby Database

* Replace Auth Server

* Revise: change to AuthSystemType
2021-09-28 19:30:20 +08:00
Wuyunfan-BUPT
fea9d7271b
add derby database (#6996) 2021-09-27 13:41:44 +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
Wuyunfan-BUPT
3c0508d2da
Add MySQL DataBase (#6968) 2021-09-23 20:13:47 +08:00
吴治国
a74eb55270
[ISSUE #5095] Add some testcases for common cache (#6950)
* add testcase for common cache

* license
2021-09-23 10:29:58 +08:00
吴治国
cdd2a8f5b8
[ISSUE #5095] Add testcase for common base64 (#6952)
* add testcase for common base64

* testcase

* license
2021-09-23 10:29:15 +08:00
吴治国
cf2b4a541a
[ISSUE #5095] Add some testcases for common executor (#6959)
* add some testcases for common executor

* style
2021-09-23 10:28:17 +08:00
孙继峰
c61440f32c
fix unit test fail (#6958) 2021-09-23 09:58:38 +08:00
Roger3581321
6b568119c2
add final to modify the utility class (#6951) 2021-09-22 09:42:47 +08:00
brotherlu-xcq
dd388e4d05
[ISSUE #6894] add the unit test of com.alibaba.nacos.naming.remote.rpc.handler. (#6916) 2021-09-22 09:40:01 +08:00
realJackSun
e1978d33f3
Add Nacos-on-cloud information (#6909)
* Add Nacos-on-cloud information

* Update README.md
2021-09-18 20:01:43 +08:00
Wuyunfan-BUPT
76ac84344c
[ISSUE #5696] Add auth server implement (#6901)
* Add auth server implement.

* Modify auth server: class name
2021-09-18 09:50:58 +08:00
Wuyunfan-BUPT
c771c5d2b9
[ISSUE # 5696] Replace original auth client (#6885)
* Replace auth client

* Replace auth client original implement

* Replace original auth client

* Revise client: combine function and modify name
2021-09-18 09:43:30 +08:00