-
Notifications
You must be signed in to change notification settings - Fork 0
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
[QA - Sentry] Les fichiers de format ne sont pas pris en charge #3612
[QA - Sentry] Les fichiers de format ne sont pas pris en charge #3612
Conversation
$acceptedExtensions = UploadHandlerService::getAcceptedExtensions('photo'); | ||
$message = <<<ERROR | ||
$fileInfo = ' ( Fichier : '.$file->__toString().' MimeType : '.$file->getMimeType().' )'; | ||
$this->logger->error($message.$fileInfo); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J'enlèverais bien aussi les logs sur sentry pour des formats non supportés... non ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je suis ok, mais y'avait peut-être une raison derrière ça ?
if (\in_array($file->getMimeType(), File::IMAGE_MIME_TYPES)) { | ||
$this->imageManipulationHandler->setUseTmpDir(false)->resize($filename)->thumbnail($filename); | ||
$fileInfo = ' ( Fichier : '.$file->__toString().' MimeType : '.$file->getMimeType().' )'; | ||
$this->logger->error($message.$fileInfo); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idem
c8b5dcb
to
6c34f91
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lecture et tests ok
Quality Gate passedIssues Measures |
Ticket
#3336
Description
J'ai fait le tour des erreurs sentry de ce type des 30 derniers jours.
Il y avait 2 cas possibles :
Changements apportés
Pré-requis
Désacctiver la vérification js
Tests