-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat: remove metadata #26
Conversation
oops. a wrong commit sneaked in. let me take care of that. |
resp.WriteHeader(401) | ||
resp.Write([]byte(fmt.Sprintf(`{"success": false, "reason": "Failed deleting filein path %s"}`, file.DownloadPath))) | ||
return | ||
log.Printf("[ERROR] FAILED to delete file %s from Google cloud storage. Removing frontend reference anyway. Err: %s", fileId, err) |
Check failure
Code scanning / CodeQL
Log entries created from user input High
user-provided value
return | ||
log.Printf("[ERROR] FAILED to delete file %s from Google cloud storage. Removing frontend reference anyway. Err: %s", fileId, err) | ||
} else { | ||
log.Printf("[DEBUG] Deleted file %s from Google cloud storage", fileId) |
Check failure
Code scanning / CodeQL
Log entries created from user input High
user-provided value
err = DeleteKey(ctx, "files", fileId) | ||
if err != nil { | ||
log.Printf("Failed deleting file with ID %s: %s", fileId, err) | ||
resp.WriteHeader(401) | ||
resp.Write([]byte(`{"success": false}`)) | ||
return | ||
} | ||
*/ | ||
log.Printf("[INFO] Deleted file %s from database", fileId) |
Check failure
Code scanning / CodeQL
Log entries created from user input High
user-provided value
thumbs up, please merge! |
This