yyqdbngt opened a new pull request, #2357: URL: https://github.com/apache/rocketmq-dashboard/pull/2357
## Summary - decode instance route segments without throwing on malformed percent encoding - treat an undecodable instance id as unknown so the existing instance-list fallback can recover the route - add a router-level regression test for a truncated encoded segment ## Root cause `useInstanceFilter` decoded the raw path segment during render with an unguarded `decodeURIComponent` call. Invalid input therefore raised a synchronous `URIError` before the hook could load instances and redirect to a valid selection. Closes #2346 ## Validation - `npm test -- --run src/hooks/useInstanceFilter.test.tsx` (2 tests passed) - `npx eslint src/hooks/useInstanceFilter.ts src/hooks/useInstanceFilter.test.tsx` - `npm run build` - `git diff --check` -- 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]
