Frun1na opened a new issue, #4644:
URL: https://github.com/apache/rocketmq-dashboard/issues/4644

   ### Environment
   
   */apache/rocketmq-dashboard master / rocketmq-studio (5b761df8)
   *Browser: any (web UI)
   
   ### Actual Behavior
   
   Restoring a query-history entry whose data source requires authentication 
(Basic Auth / Bearer Token) opens the credential dialog, but the data source 
selector and the stored credentials are switched/cleared *before* the user 
confirms. Cancelling the dialog leaves the metrics explorer stranded on the 
protected data source with no credentials and no data — the previous working 
source is silently abandoned even though the restore was never confirmed.
   
   ### Expected Behavior
   
   Cancelling the credential dialog should be side-effect free: the explorer 
should stay on the current data source with its credentials intact. The switch 
should only happen after the user submits credentials.
   
   ### Steps to Reproduce
   
   1. Run a query on the default data source.
   2. Open 查询历史 (query history) and restore an entry whose data source requires 
authentication.
   3. Cancel the credential dialog.
   
   The data source selector has already switched to the protected source and 
its credentials were cleared; no data is shown.
   
   ### Additional Context
   
   Fix proposed in #4643: the data source switch is deferred to the dialog's 
submit handler.
   


-- 
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]

Reply via email to