The GitHub Actions job "CI" on rocketmq-dashboard.git/fix/mock-acl-blank-fields 
has failed.
Run started by GitHub user lizhimins (triggered by lizhimins).

Head commit for run:
7e04a303dc7ff4ab8392a0b7162d67e390c17fca / Apulupie 
<[email protected]>
fix(acl): reject the blank ACL fields the mock store accepted

The demo ACL store wrote blank values into its inventory for fields the 
endpoint refuses:
AclService.createUser answers 400 "ACL username is required" for a username 
that is blank
after trimming (AclService.java:236-238), createRule the same for principal and 
resource
(:127, :130), and createAndUpdatePlainAccessConfig for accessKey (:313-315).

The console can produce these inputs: the user and rule dialogs' `required` 
rules do not
reject whitespace (web/src/pages/instance/acl.tsx:1695, :1628), and 
handlePlainSubmit trims
the access key before submitting (:665), so a whitespace-only access key 
arrives as an empty
string.

requireAclText mirrors StringUtils.hasText in the three mock write branches; a 
value that is
not blank is stored as sent.

Report URL: 
https://github.com/apache/rocketmq-dashboard/actions/runs/45941629604

With regards,
GitHub Actions via GitBox

Reply via email to