e-mhui opened a new issue, #5670:
URL: https://github.com/apache/inlong/issues/5670
### What happened
Sensitive message in log can be masked, but in java stack trace,it cannot be
masked
### What you expected to happen
Mask sensitive message in a Java stack trace.
### How to reproduce
When request `/inlong/manager/api/source/update` failed, the sensitive
message may be shown in a java stack trace.
ps: sensitive message has been masked.
```
2022-08-24 07:44:10.600 -ERROR [http-nio-8083-exec-5]
w.c.ControllerExceptionHandler:130 - failed to handle request on path:
/inlong/manager/api/source/update by user: admin
org.apache.inlong.manager.common.exceptions.BusinessException:
source=StreamSourceEntity(id=2,
inlongGroupId=i6e4ce64c-f0a9-40ce-a98c-e9a1c3df6698,
inlongStreamId=b_gae186ce0-e21b-4ecc-b505-5d3d20411f47,
sourceType=MYSQL_BINLOG, sourceName=8355_2036, templateId=null, agentIp=null,
uuid=null, dataNodeName=null, inlongClusterName=null, serializationType=null,
snapshot=null, reportTime=null,
extParams={"user":"*****","password":"******","hostname":"*****","port":******,"serverId":null,"includeSchema":null,"databaseWhiteList":"******","tableWhiteList":"******","serverTimezone":"Asia/Shanghai","intervalMs":null,"snapshotMode":null,"offsetFilename":null,"historyFilename":null,"monitoredDdl":null,"timestampFormatStandard":"SQL","allMigration":false,"primaryKey":"id","specificOffsetFile":null,"specificOffsetPos":null,"properties":{"scan.startup.mode":"initial"}},
version=1, status=101, previousStatus=110, isDeleted=0, creator=admin,
modifier=admin, createTime=Sat Aug 13 08:04:45 UTC 2022,
modifyTime=Sat Aug 13 08:04:47 UTC 2022) is not allowed to update, please
wait until its changed to final status or stop / frozen / delete it firstly
at
org.apache.inlong.manager.service.source.AbstractSourceOperator.updateOpt(AbstractSourceOperator.java:114)
~[manager-service-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
at
org.apache.inlong.manager.service.source.AbstractSourceOperator$$FastClassBySpringCGLIB$$a1c74983.invoke(<generated>)
~[manager-service-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
at
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
~[spring-core-5.3.20.jar:5.3.20]
at
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783)
~[spring-aop-5.3.18.jar:5.3.18]
```
### Environment
_No response_
### InLong version
master
### InLong Component
InLong Manager
### Are you willing to submit PR?
- [X] Yes, I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]