mattermost-community / focalboard

Focalboard is an open source, self-hosted alternative to Trello, Notion, and Asana.
https://www.focalboard.com
Other
21.9k stars 1.97k forks source link

Bug: Duplicating a card not created by you on the ONBOARDING board throws an error but does duplicate the card #3680

Closed lindy65 closed 2 years ago

lindy65 commented 2 years ago

Found by varghesejose2020 on https://boards-bugbash.test.mattermost.cloud/ server. Lindy can also reproduce.

Steps to reproduce the behavior

  1. Go to https://boards-bugbash.test.mattermost.cloud/ server > Onboarding board
  2. Hover over the "Create your own board" card below the "To Do" column, click on the 3-dots and select "Duplicate"
  3. Observed: Error reading "This card doesn't exist or is inaccessible" (see screenshot). Note that a duplicate card is created. (see 2nd screenshot for js.console error)
  4. Create a new card under the "To Do" column and close the card
  5. Hover over the card you just created, click on the 3-dots and select "Duplicate"
  6. Observed: the card is duplicated without any error

Expected behavior

Not sure as the cards were pre-existing on the "Welcome to Boards" board but I would expect to be able to duplicate the cards without any errors.

Screenshots (optional)

image

image

Edition and Platform

wuwinson commented 2 years ago

@lindy65 Can you repro this with any other boards? We think this might be related to bad data on @harshilsharma63's Welcome board. Does not occur on any other board - new or existing. cc @sbishel

harshilsharma63 commented 2 years ago

Works fine for me for new boards, even for a new user. @lindy65 can you share the URL of welcome board you're referring to? There are tons of welcome board in there and duplicate board is working for me in all those boards that I have access to.

lindy65 commented 2 years ago

Thanks @wuwinson and @harshilsharma63 - I could repro this only on the Welcome Board on the https://boards-bugbash.test.mattermost.cloud/ server

Try duplicating this card Harshil. I get the error every time.

lindy65 commented 2 years ago

Not sure whether this makes a difference @harshilsharma63 but you're an admin on the board

image

wuwinson commented 2 years ago

@lindy65 This is likely due to bad data on Harshil's board. If you can repro this on other boards, then please feel free to reopen. @harshilsharma63 Can you delete this board from the server so we don't get future bug reports on this? Thanks!

lindy65 commented 2 years ago

Thanks @wuwinson - I'm not able to repro on other boards at present but will keep an eye open and re-open if necessary.