alibaba / alibaba/jetcache

jetcache-starter-redis-lettuce 2.5.16 lettuce 管理连接时 不兼容含有“@”密码问题

Open
#447 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.6k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

1、版本
```

com.alicp.jetcache
jetcache-starter-redis-lettuce
2.5.16

```

2、现象描述
配置如下,
```
jetcache:
statIntervalMinutes: 15
areaInCacheName: false
hidePackages: com.alibaba
local:
default:
type: caffeine
limit: 100
keyConvertor: fastjson
expireAfterWriteInMillis: 100000
remote:
default:
type: redis.lettuce
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
host: ${spring.redis.host}
port: ${spring.redis.port}
uri:
- redis://${spring.redis.password}@47.100.231.15:6379/0 #redis://密码@IP:端口/库
```
当password值包含 ‘@' 特殊符号时,
如:
```
spring.redis.password = redis@dddpwd123
```

管理连接时 不兼容含有“@”密码问题

Contributor guide

No contributing guide indexed for this repository

Research direction

Start from the redis.lettuce URI configuration and the management-connection handling. Reproduce the problem with a password containing “@”, such as redis@dddpwd123, using the configuration shown in the issue. Done means the connection is managed successfully without misinterpreting the password.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, redis, spring
Domain
backend, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.