Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MM-61043 Error deleting board if fileID is empty #23

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

Rajat-Dabade
Copy link
Contributor

@Rajat-Dabade Rajat-Dabade commented Oct 13, 2024

@Rajat-Dabade Rajat-Dabade self-assigned this Oct 13, 2024
@Rajat-Dabade Rajat-Dabade added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels Oct 13, 2024
@harshilsharma63
Copy link
Member

@Rajat-Dabade can you add the steps to reproduce this bug in the ticket?

Copy link
Member

@hmhealey hmhealey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with one caveat

fileInfoID := getFileInfoID(parts[0])

if (fileInfoID) == "" {
return nil, nil
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this case also return an error? I'd expect that this sort of method would always return either a FileInfo or an error, but this case returns nil for both of them

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, returning an error with message file not found.

@hmhealey
Copy link
Member

Also, excellent explanation of your investigation here. I'm surprised that we keep the file extension on the uploaded file and that we have to calculate the file ID from the filename, so it's good to know that the code works that way

@hmhealey hmhealey removed the 2: Dev Review Requires review by a core committer label Oct 17, 2024
@Rajat-Dabade Rajat-Dabade merged commit 12cf1b0 into main Oct 17, 2024
6 checks passed
@Rajat-Dabade Rajat-Dabade deleted the error-delete-board branch October 17, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3: QA Review Requires review by a QA tester
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants