Skip to content

Commit

Permalink
CDE-381-cas-de-fichier-avec-header-incorrect-non-bloque :
Browse files Browse the repository at this point in the history
     - adaptation des TU
  • Loading branch information
EryneKL committed Mar 1, 2024
1 parent 8ee24f5 commit 8de1afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/fr/abes/kbart2kafka/utils/CheckFiles.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static void detectHeaderPresence(String header, File file, Boolean isBypa
if(isBypassOptionPresent && line.contains("best_ppn")) {
log.error("Message envoyé : {}", "L'en tete du fichier est incorrecte.");
throw new IllegalFileFormatException("L'en tete du fichier est incorrecte. L'option _BYPASS n'est pas compatible avec la présence d'une colonne best_pnn.");
} else if (headerKbart.length <24 || headerKbart.length > 26) {
} else if (headerKbart.length <25 || headerKbart.length > 26) {
log.error("Message envoyé : {}", "L'en tete du fichier est incorrecte.");
throw new IllegalFileFormatException("L'en tete du fichier est incorrecte.");
} else if(headerKbart.length <= 25 && !line.contains(header)) {
Expand Down

0 comments on commit 8de1afe

Please sign in to comment.