Encrypting the entire table is impossible
- Langage dominant
- Java
- Étoiles
- 3.1k
- Forks
- 1.6k
- Merge moyen
- 3 j 12 h
- PR mergées (30 j)
- 33
Description
```java
public InternalColumnEncryptionSetup getColumnSetup(ColumnPath columnPath,
boolean createIfNull, int ordinal) {
InternalColumnEncryptionSetup internalColumnProperties = columnMap.get(columnPath);
if (null != internalColumnProperties) {
if (ordinal != internalColumnProperties.getOrdinal()) {
throw new ParquetCryptoRuntimeException("Column ordinal doesnt match " + columnPath +
": " + ordinal + ", "+internalColumnProperties.getOrdinal());
}
return internalColumnProperties;
}
------ here is always true, then throw Exception
if (!createIfNull) {
throw new ParquetCryptoRuntimeException("No encryption setup found for column " + columnPath);
}
if (fileCryptoMetaDataCreated) {
throw new ParquetCryptoRuntimeException("Re-use: No encryption setup for column " + columnPath);
}
```
**Environment**: Linux
**Reporter**: [ren shangtao](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=renshangtao)
**Note**: *This issue was originally created as [PARQUET-2174](https://issues.apache.org/jira/browse/PARQUET-2174). Please see the [migration documentation](https://issues.apache.org/jira/browse/PARQUET-2502) for further details.*
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez par suivre getColumnSetup(ColumnPath, boolean, int) et la recherche dans columnMap présentée dans l’issue. Reproduisez le chemin signalé où la vérification de createIfNull entraîne une exception, puis vérifiez que le chiffrement de la table entière n’échoue plus dans ce cas.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- security
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 20/100