MAJ terminée. Nous sommes passés en version 14.6.2 . Pour consulter les "releases notes" associées c'est ici :

https://about.gitlab.com/releases/2022/01/11/security-release-gitlab-14-6-2-released/
https://about.gitlab.com/releases/2022/01/04/gitlab-14-6-1-released/

Commit e9481397 authored by calocedre TAC's avatar calocedre TAC
Browse files

Do not log thrown error

parent 67ce0291
Pipeline #227406 passed with stage
in 1 minute and 50 seconds
...@@ -44,8 +44,6 @@ import org.bouncycastle.jce.spec.ECPublicKeySpec; ...@@ -44,8 +44,6 @@ import org.bouncycastle.jce.spec.ECPublicKeySpec;
import org.bouncycastle.math.ec.ECPoint; import org.bouncycastle.math.ec.ECPoint;
import org.bouncycastle.util.encoders.Hex; import org.bouncycastle.util.encoders.Hex;
import lombok.extern.slf4j.Slf4j;
/** /**
* Encryption/Decription respecting ECIES-KEM (Elliptic Curve Integrated * Encryption/Decription respecting ECIES-KEM (Elliptic Curve Integrated
* Encryption Scheme with Key encapsulation mechanisms ) * Encryption Scheme with Key encapsulation mechanisms )
...@@ -58,7 +56,6 @@ import lombok.extern.slf4j.Slf4j; ...@@ -58,7 +56,6 @@ import lombok.extern.slf4j.Slf4j;
* for Public-Key Encryption”, 2006</a> * for Public-Key Encryption”, 2006</a>
* *
*/ */
@Slf4j
public class CleaEciesEncoder { public class CleaEciesEncoder {
/* Type of the elliptic curve */ /* Type of the elliptic curve */
...@@ -329,7 +326,6 @@ public class CleaEciesEncoder { ...@@ -329,7 +326,6 @@ public class CleaEciesEncoder {
return locationTemporarySecretKey; return locationTemporarySecretKey;
} catch (IOException | NoSuchAlgorithmException e) { } catch (IOException | NoSuchAlgorithmException e) {
log.error("Error when computing location temporary secret key!", e);
throw new CleaEncryptionException(e); throw new CleaEncryptionException(e);
} }
} }
...@@ -359,7 +355,6 @@ public class CleaEciesEncoder { ...@@ -359,7 +355,6 @@ public class CleaEciesEncoder {
return locationTemporaryPublicID; return locationTemporaryPublicID;
} catch (InvalidKeyException | NoSuchAlgorithmException | IllegalStateException | UnsupportedEncodingException e) { } catch (InvalidKeyException | NoSuchAlgorithmException | IllegalStateException | UnsupportedEncodingException e) {
log.error("Error when computing location temporary secret key!", e);
throw new CleaEncryptionException(e); throw new CleaEncryptionException(e);
} }
} }
......
...@@ -33,7 +33,6 @@ public class LocationContactMessageEncoder { ...@@ -33,7 +33,6 @@ public class LocationContactMessageEncoder {
} catch (NoSuchAlgorithmException | InvalidKeySpecException | NoSuchProviderException } catch (NoSuchAlgorithmException | InvalidKeySpecException | NoSuchProviderException
| InvalidAlgorithmParameterException | IllegalStateException | InvalidCipherTextException | InvalidAlgorithmParameterException | IllegalStateException | InvalidCipherTextException
| IOException e) { | IOException e) {
log.error("Cannot encrypt Location Contact Message", e);
throw new CleaEncryptionException(e); throw new CleaEncryptionException(e);
} }
} }
...@@ -111,7 +110,6 @@ public class LocationContactMessageEncoder { ...@@ -111,7 +110,6 @@ public class LocationContactMessageEncoder {
return new LocationContact(locationPhone.toString(), locationPin.toString(), periodStartTime); return new LocationContact(locationPhone.toString(), locationPin.toString(), periodStartTime);
} catch (NoSuchAlgorithmException | InvalidKeySpecException | IllegalStateException | InvalidCipherTextException } catch (NoSuchAlgorithmException | InvalidKeySpecException | IllegalStateException | InvalidCipherTextException
| IOException e) { | IOException e) {
log.error("Cannot encrypt Location Contact Message", e);
throw new CleaEncryptionException(e); throw new CleaEncryptionException(e);
} }
} }
......
...@@ -100,7 +100,6 @@ public class LocationSpecificPartDecoder { ...@@ -100,7 +100,6 @@ public class LocationSpecificPartDecoder {
binaryLocationSpecificPart = this.cleaEciesEncoder.decrypt(encryptedLocationSpecificPart, this.serverAuthoritySecretKey, true); binaryLocationSpecificPart = this.cleaEciesEncoder.decrypt(encryptedLocationSpecificPart, this.serverAuthoritySecretKey, true);
} catch (NoSuchAlgorithmException | InvalidKeySpecException | IllegalStateException | InvalidCipherTextException } catch (NoSuchAlgorithmException | InvalidKeySpecException | IllegalStateException | InvalidCipherTextException
| IOException e) { | IOException e) {
log.error("Cannot decrypt Location Specific Part", e);
throw new CleaEncryptionException(e); throw new CleaEncryptionException(e);
} }
return this.decodeMessage(binaryLocationSpecificPart); return this.decodeMessage(binaryLocationSpecificPart);
......
...@@ -117,7 +117,6 @@ public class LocationSpecificPartEncoder { ...@@ -117,7 +117,6 @@ public class LocationSpecificPartEncoder {
log.debug("message length: {}, encrypted message length: {} ", message.length, encryptedMessage.length); log.debug("message length: {}, encrypted message length: {} ", message.length, encryptedMessage.length);
return encryptedMessage; return encryptedMessage;
} catch (Exception e) { } catch (Exception e) {
log.error("Cannot encrypt Location Specific Part", e);
throw new CleaEncryptionException(e); throw new CleaEncryptionException(e);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment