mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(rds): accept a ModifyDBSnapshot that names nothing to change (#8633)
ModifyDBSnapshot refused a request naming neither EngineVersion nor OptionGroupName with InvalidParameterCombination, "At least one snapshot attribute must be specified.", a message AWS does not use. The model requires only DBSnapshotIdentifier, and neither the API reference nor the User Guide's snapshot upgrade pages tie any error to a request with nothing to change, so such a request now returns the snapshot unchanged. A missing snapshot and one that is not available are still refused as before. The RDS docs record this as Floci's reading of an undocumented case. Closes #4083
This commit is contained in:
1 parent
a35fcfd9da
commit
16b0b516a0
4 files changed
+28
-10
No files matched your search
@@ -1392,11 +1392,6 @@ public class RdsService implements Resettable, ResourceProvider {
|
||||
throw new AwsException("InvalidDBSnapshotState",
|
||||
"DBSnapshot " + snapshotId + " is not in an available state.", 400);
|
||||
}
|
||||
if ((engineVersion == null || engineVersion.isBlank())
|
||||
&& (optionGroupName == null || optionGroupName.isBlank())) {
|
||||
throw new AwsException("InvalidParameterCombination",
|
||||
"At least one snapshot attribute must be specified.", 400);
|
||||
}
|
||||
if (engineVersion != null && !engineVersion.isBlank()) {
|
||||
snapshot.setEngineVersion(engineVersion);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user