Bug description

I get an error when copying a permalink to the clipboard

To reproduce the problem you need to: 1)on the dashboard add Tabs. 2)Remove tab 3)Save the dashboard and exit it. 4)The next time you log in to the dashboard, an error occurs when copying a link.

After removing Tabs from the dashboard completely - the error is reproduced.

In the logs everything is clean and there is no mention of errors

Screenshots/recordings

Image

Image

Superset version

4.1.1

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • [ ] I have searched Superset docs and Slack and didn't find a solution to my problem.
  • [ ] I have searched the GitHub issue tracker and didn't find a similar bug report.
  • [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Comment From: dosubot[bot]

The "BAD REQUEST" error with a 400 status code when copying a permalink to the clipboard after removing tabs from the dashboard in Superset version 4.1.1 is likely due to a ValidationError or DashboardPermalinkInvalidStateError. These exceptions are caught in the code and result in a 400 response, indicating that the state being processed when creating the permalink is invalid, possibly due to the changes made to the dashboard, such as removing tabs [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

Comment From: rusackas

I'm still unable to reproduce this (using Preset at the moment). I'll close it for now as non-reproducible, but if you're still facing this, say the word.