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

Head commit for run:
97afea3c759874c9d999d371f17d8c6d8bdc105d / Apulupie 
<[email protected]>
fix(instance): reject the blank name and endpoint the mock create accepted

The mock create branch stored whatever it was given: name/endpoint fell back to 
'' and the raw
value went into the store (web/src/services/instanceService.ts:90-102). The 
endpoint answers 400
instead - InstanceService.createApacheInstance registers a manual instance 
through
requireInstanceName (blank after trimming -> "InstanceVO name is required", 
stores the trimmed
value) and requireValidEndpoint (blank -> "InstanceVO endpoint is required", 
stores the trimmed
value).

The registration dialog can produce both: the name input declares only required 
+ max 64 and the
endpoint input only required (web/src/pages/instance/index.tsx:958-965, 
:987-992), and the Ant
validator accepts whitespace-only text.

requireMockInstanceText mirrors the two checks for the manual (non-cloud) path; 
the cloud path
keeps its catalog-derived name/endpoint behaviour.

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

With regards,
GitHub Actions via GitBox

Reply via email to