diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a80d72..35cf6b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [2.0.2] - 2024-06-18 +### Fixed +- Accept cards returning a failing status word when getting non-mandatory Traceability Information tag. +### Upgraded +- Keyple Service Library `3.2.1` -> `3.2.2` + ## [2.0.1] - 2024-05-14 ### Fixed - Hex/dec conversion issue in card check procedure. @@ -32,6 +38,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - CI/CD: Added a GitHub action that builds and tests the code on every push to the repository. -[unreleased]: https://github.com/calypsonet/calypso-card-analyzer/compare/2.0.1...HEAD +[unreleased]: https://github.com/calypsonet/calypso-card-analyzer/compare/2.0.2...HEAD +[2.0.2]: https://github.com/calypsonet/calypso-card-analyzer/compare/2.0.1...2.0.2 [2.0.1]: https://github.com/calypsonet/calypso-card-analyzer/compare/2.0.1...2.0.0 [2.0.0]: https://github.com/calypsonet/calypso-card-analyzer/releases/tag/2.0.0 \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index a8e4618..08a571f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -28,15 +28,15 @@ repositories { maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots") } dependencies { -// Begin Keyple configuration (generated by 'https://keyple.org/components/overview/configuration-wizard/') + // Begin Keyple configuration (generated by 'https://keyple.org/components/overview/configuration-wizard/') implementation("org.eclipse.keypop:keypop-reader-java-api:2.0.1") implementation("org.eclipse.keypop:keypop-calypso-card-java-api:2.1.0") implementation("org.eclipse.keyple:keyple-common-java-api:2.0.1") implementation("org.eclipse.keyple:keyple-util-java-lib:2.4.0") - implementation("org.eclipse.keyple:keyple-service-java-lib:3.2.1") + implementation("org.eclipse.keyple:keyple-service-java-lib:3.2.2") implementation("org.eclipse.keyple:keyple-card-calypso-java-lib:3.1.1") implementation("org.eclipse.keyple:keyple-plugin-pcsc-java-lib:2.2.1") -// End Keyple configuration + // End Keyple configuration implementation("org.slf4j:slf4j-simple:1.7.32") implementation("com.google.code.gson:gson:2.8.5") } diff --git a/gradle.properties b/gradle.properties index deb7d99..710e371 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ group = org.calypsonet.tool title = Calypso card analyzer description = Calypso card tools dedicated to file structures analysis. -version = 2.0.1 +version = 2.0.2 javaSourceLevel = 1.8 javaTargetLevel = 1.8 diff --git a/src/main/java/org/calypsonet/tool/calypso/card/Tool_AnalyzeCardFileStructure.java b/src/main/java/org/calypsonet/tool/calypso/card/Tool_AnalyzeCardFileStructure.java index 35da4d9..07ca9f6 100644 --- a/src/main/java/org/calypsonet/tool/calypso/card/Tool_AnalyzeCardFileStructure.java +++ b/src/main/java/org/calypsonet/tool/calypso/card/Tool_AnalyzeCardFileStructure.java @@ -199,9 +199,13 @@ public static byte[] getTraceabilityInfo(List aidList) { calypsoCardService .getCalypsoCardApiFactory() .createFreeTransactionManager(cardReader, calypsoCard); - cardTransactionManager - .prepareGetData(GetDataTag.TRACEABILITY_INFORMATION) - .processCommands(ChannelControl.KEEP_OPEN); + try { + cardTransactionManager + .prepareGetData(GetDataTag.TRACEABILITY_INFORMATION) + .processCommands(ChannelControl.KEEP_OPEN); + } catch (UnexpectedCommandStatusException e) { + logger.warn("Traceability information tag not available: {}", e.getMessage()); + } return calypsoCard.getTraceabilityInformation(); }