apache / apache/dubbo-admin

[BUG] Page string types are coerced to be treated as numbers 测试页面字符串类型被强制按照数字处理

Open
#1,054 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
4.1k
Forks
2.2k
Avg merge
10d 12h
Merged PRs (30d)
4

Description

- [x] I have searched the [issues](https://github.com/apache/dubbo-admin/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [REAMDE](https://github.com/apache/dubbo-admin/blob/develop/README.md) of this repository and believe that this is not a duplicate.

### Environment

* Dubbo Admin version: 0.5.0
* Registry center detail (type and version): zookeeper 3.5.8
* Operating System version: centos7
* Java version: 1.8

### Steps to reproduce this issue
page bug
页面bug
1. The second parameter of the method is of String type. Input a pure numeric string and automatically discard the 0 in front of me.
方法的第二个参数是String类型,输入纯数字字符串,自动把我前面的0给丢弃了
2. 类似的bug还有把我long类型数字(已经是字符串接收了)精度丢失了
![image](https://user-images.githubusercontent.com/25093017/227128016-9a8baca7-e5c8-47de-9b32-fe3024cd0b01.png)
![image](https://user-images.githubusercontent.com/25093017/227128139-e0a529ae-4b59-458a-b700-4b6812b6d98d.png)

Pls. provide [GitHub address] to reproduce this issue.

### Expected Result

What do you expected from the above steps?

### Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

```
Just put your stack trace here!
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the page issue with a String parameter containing leading zeroes and a long numeric value, then trace the page's parameter handling entry point. No source file or test is identified; done means preserving the String value, including leading zeroes and full numeric precision.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.