Commit Graph

2961 Commits

Author SHA1 Message Date
haoyann
2be09ae940 change tokenValidityInSeconds default value 2021-01-05 10:41:26 +08:00
haoyann
c979b9eefc remove JwtTokenUtils 2021-01-04 23:31:26 +08:00
wjm0729
4da3c82895
优化 FileTypeEnum 取值逻辑, 避免使用异常当作逻辑分支 (#4607)
* 优化 FileTypeEnum 取值逻辑, 避免使用异常当作逻辑分支
异常的代价是很大的, 非必要情况下. 应该尽量避免

* comment

* comment

* license
2020-12-31 15:50:07 +08:00
mai.jh
2af6784f55
for #4594,#4594 Fix IO close problem. (#4606) 2020-12-31 15:48:26 +08:00
wjm0729
dcd2fcec94
console-ui config排序优化 (#4599)
* ignore

* config 列表支持排序

* remove local cfg
2020-12-31 11:34:41 +08:00
杨翊 SionYang
00d4363ad0
Do not retry distro sync again if member has removed. (#4586) 2020-12-29 13:51:26 +08:00
paderlol
903ff0f546
Fix the configuration file loading issue #4556 #4541 (#4590) 2020-12-29 09:52:07 +08:00
haoyann
374e7e39d8
[ISSUE #3406] fix change self's password fail (#4536)
* fix change self's password fail

* refactor use util Objects
2020-12-28 09:53:40 +08:00
haoyann
dd854e3b49
fix cluster mode query config type is null (#4579) 2020-12-28 09:48:11 +08:00
xujingfeng
5236287fdb
[ISSUE #4583] Fix DOMAIN mode retry logic (#4584)
* fix namingProxy domain retry logic; add retry param namingRequestDomainMaxRetryCount

* add maxRetry param
2020-12-28 09:40:10 +08:00
mai.jh
a2ea808b7d
[ISSUE-#4567] Refactor nacos-client Load Logging Configuration code. (#4572)
* for #4567, refactor nacos-client logging load Configuration code.

* Modify exception handling.

* When customizing AbstractNacosLogging Load Configuration Fail, use the default Logging Load Configuration.

* NacosLogging has been modified to a single-column mode.
2020-12-26 13:18:30 +08:00
Gagharv
ce57b98332
[ISSUE-#3005] fix ClusterController 403 and some display wrong (#4512)
* fix 3005

* fix 3005
2020-12-23 19:48:03 +08:00
赵延
638d89b70a
[ISSUE-3917] Enhance service detail console web, add metadata filter (#4439)
* add metadata filter at back-end of nacos naming console

* code enhance

* 添加input,tag等组件,初步布局

* 实现页面交互,可添加,删除filter

* 更新filter向后端发起请求获取数据

* 实现更新更改过滤条件,刷新表格

* 添加国际化配置

* 输入完后按空格直接添加,没输入的input给出响应

* 提交单元测试,更新打包后的静态资源

* 修改配置 解决生产环境上sourcemap不生效的问题

* 用hook重构组件InstanceFilter

* 多个集群各自使用过滤

* 解决多集群时,元数据过滤无法单独使用的问题

* revert backend code

* revert metadata filter test

* 只从客户端已获取到的实例中过滤

* 变动更新到打包后的mian.js

Co-authored-by: jzhishu <john1994@foxmail.com>
2020-12-21 10:19:42 +08:00
赵延
30a04f98ba
check illegal heart beat param when before register (#4514) 2020-12-21 10:07:43 +08:00
haoyann
1bc350b99a
fix derbyOps interface security problem (#4517) 2020-12-21 09:55:49 +08:00
neighbor-uncleWang
2f50f53da6
Fixed issue where null values could not be converted to base parameters (#4527) 2020-12-21 09:43:16 +08:00
liaochuntao
5b2d76fb34
[ISSUE #4364] Fix Cluster member state isn't updated to 'DOWN' after the node becomes down (#4371)
* fix: fix issue #4364

* refactor: fixed node changes that could not trigger event publishing

* fix: fixed a problem with frequent releases of events
2020-12-16 18:30:41 +08:00
geek
97efd23b3e
refactor(console): add fuzzy tips (#4488)
* refactor(console): add fuzzy tips

add fuzzy tips ,add * in placeholder

Closes #4476

* refactor(console): add fuzzy tips for en-us

add fuzzy tips for  en-us ,add * in placeholder

Closes #4476

* refactor(console): add better fuzzy tips for zh-cn and en-us

add better fuzzy tips for zh-cn and en-us in placeholder

Closes #4476
2020-12-16 09:52:51 +08:00
赵延
2546f052e4
[ISSUE-#4467] Fix snowflake id problem (#4468)
* fix snowflake id problem

* revert code format
2020-12-15 12:56:05 +08:00
haoyann
ec99590500
fix service/list fromIndex > toIndex (#4486) 2020-12-15 12:55:46 +08:00
赵延
6bf46e9c4d
[ISSUE-#4436] Fix parse label expression error problem (#4465)
* fix parse label expression error problem

* ignore VariableDeclarationUsageDistance checkstyle

* fix check style
2020-12-14 10:23:29 +08:00
liaochuntao
19a04bf90f
Merge pull request #4469 from haoyann/fix-4415
[ISSUE #4415] fix NOW_WATCH_JOB_CNT record WatchDirJob count
2020-12-13 21:38:22 +08:00
haoyann
b25b23e5f5 fix NOW_WATCH_JOB_CNT record WatchDirJob count 2020-12-13 19:51:33 +08:00
wangxw
350be0669e
cacheDataMap (#4445) 2020-12-12 17:00:41 +08:00
赵延
16fc8c5876
fix memberAddressInfos not right problem when memberChange (#4451) 2020-12-11 23:54:13 +08:00
Brent
b8b57dc980
fix: 修复参数类型注释及单词拼写错误 (#4419) 2020-12-07 19:42:05 +08:00
luoos
24b99aa16b
Fix an order-dependent flaky test (#4384)
[Problem]
testSerializeExtend add an item to a static mapper,
and testDeserializeExtend read that item from that static mapper.
So if testDeserializeExtend runs before testSerializeExtend,
testDeserializeExtend will fail.

@Ignore testSerializeExtend can stably reproduce this issue.

[Solution]
Add that item to the static mapper in @BeforeClass method
(Even though using static variables in unit tests is a bad practice)
2020-12-04 09:18:55 +08:00
赵延
0a07c0e788
code refactor (#4394) 2020-12-04 09:15:21 +08:00
赵延
1e39f39a91
when deleteFile, just check the file is exists. (#4402) 2020-12-04 09:12:54 +08:00
赵延
95c61beb6a
reuse cliClientService (#4375) 2020-12-01 23:16:18 +08:00
赵延
6ac6a6c7ed
[ISSUE-#4346] Fix import code (#4347)
* remove import.*

* transfer first_pre to final static variable

* use NamingBase.Xxx to replace constant
2020-11-30 19:17:27 +08:00
iochenlei
149ba91966
fix styles at the button '新建命名空间' (#4362) 2020-11-30 09:58:25 +08:00
Gagharv
aa4737f4bc
[ISSUE-#4181] Normalize ContextPath value in client-side (#4326)
* [ISSUE-#4181] Just use ContextPathUtil normalize ContextPath value

* [ISSUE-#4181] add some test cases
2020-11-27 23:41:22 +08:00
mai.jh
f78bef9665
[ISSUE-#4333]Add MapRowMapper to RowMapperManager (#4334)
* for #4311,Fixed Derby data source related SQL LIMIT exception.

* Revert "for #4311,Fixed Derby data source related SQL LIMIT exception."

This reverts commit 49188f14

* fix #4333.

* Remove case conversion.
2020-11-27 10:10:11 +08:00
赵延
67a0ba3f8f
[ISSUE-#4342] Fix nacos.core.protocol.raft.data.read_index_type isn't effect (#4343)
* fix nacos.core.protocol.raft.data.read_index_type=ReadOnlyLeaseBased isn't effect and enhance log hint

* define ReadOnlyOption param name just by self
2020-11-26 23:56:42 +08:00
邪影oO
85bdc1e644
Upgrade jraft to 1.3.5 (#4339)
* 升级jraft到1.3.5以支持IPv6, 调整 NamingUtilsTest 代码格式以解决checkstyle问题

* 删除测试类的类注释
2020-11-26 18:33:18 +08:00
赵延
dc266b03bc
[ISSUE-#4258] Fix wrong path when -Dspring.config.location not set (#4259)
* fix spring.config.location is nullapplication.properties when -Dspring.config.location is not set in env

* fix wrong path when -Dspring.config.location not set

* modify default file resource method name

* fix "/" magic value

* change the way of get file

* not judge pathSplit by self, use Paths.get(a, b);

* when spring.config.location is not set, use {nacos.home}/conf/application.properties to cover it.

* refactor code

* code quality enhance

* just use two level to load conf. {spring.config.location}/application.properties -> classpath:/application.properties

* code clean
2020-11-25 17:02:21 +08:00
Mark4z
6ad8da4f68
fix service list can not search by groupName only (#4308)
* fix service list can not search by groupName only

* fix service list can not search by groupName only

* fix checkStyle

* add ut for NamingUtils
2020-11-25 15:01:18 +08:00
liaochuntao
70a26959e3
[ISSUE #4320] Fixing the Naming consistency module could not start in cluster mode (#4321)
* refactor: refactor issue #4291

* fix: fixing the Naming consistency module could not start in cluster mode
2020-11-25 11:10:09 +08:00
孙继峰
c8d46a6046
[ISSUE-#4310] Delete the main function only for testing (#4312) 2020-11-24 13:22:22 +08:00
mai.jh
3bf8844992
[ISSUE #4311] Fix Derby data source related SQL LIMIT exception (#4313)
* for #4311,Fixed Derby data source related SQL LIMIT exception.

* fix code style.

* code format.
2020-11-24 13:21:15 +08:00
赵延
7f2a3307d6
[ISSUE-#4256] Just inject environment in StartingSpringApplicationRunListener (#4257)
* just inject environment in StartingSpringApplicationRunListener

* make nacosStartingListener is decoupling with springApplicationRunListener.

* add api doc

* refactor. transfer nacos listeners to SpringApplicationRunListener.

* remove unuseful import

* add doc info
2020-11-24 11:17:13 +08:00
赵延
3d97e36785
when auth open, use resource parser cache, not use reflect newInstance every time. (#4287) 2020-11-23 13:51:13 +08:00
zhuhao
b7b7b1975f
refactor issue #4275 (#4299) 2020-11-23 13:50:14 +08:00
赵延
a3597de1bc
remove env operation code in ApplicationUtils (#4298) 2020-11-23 13:44:28 +08:00
liaochuntao
a43bf8fcfb
refactor: refactor issue #4291 (#4292) 2020-11-23 09:49:08 +08:00
赵延
8500279c79
[ISSUE-#4294] Use EnvUtils.setEnvironment to replace ApplicationUtils.injectEnvironment (#4295)
* use EnvUtils.setEnvironment to replace ApplicationUtils.injectEnvironment.

* remove unuseful import

* remove unuseful import
2020-11-21 19:03:51 +08:00
赵延
886715b2d7
[ISSUE-#4232] Use EnvUtil to replace ApplicationUtils about env operation (#4281)
* use EnvUtil to replace ApplicationUtils about env operation

* remove unuse import

* remove unuse import

* remove profile usage
2020-11-21 06:54:05 +08:00
赵延
ba9ed8e736
[ISSUE-#4262] Fix public namespace permission problem (#4273)
* fix public namespace permission problem

* move NamespaceUtilTest to common module
2020-11-20 20:00:57 +08:00
赵延
44641d9431
fix twice invoke and the value is not same. (#4271) 2020-11-20 09:16:19 +08:00