-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from OferMania/23
AUE-23: When key doesn't exist, prohibits reject rules specifying ver…
- Loading branch information
Showing
4 changed files
with
116 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Forced nonexistant key to ban reject-rules specifying versionLE or versionNE | ||
|
||
From: nobody <nobody@nowhere> | ||
|
||
|
||
--- | ||
src/ObjectManager.cc | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/ObjectManager.cc b/src/ObjectManager.cc | ||
index 9c2d3b0c..5f4a6e79 100644 | ||
--- a/src/ObjectManager.cc | ||
+++ b/src/ObjectManager.cc | ||
@@ -2893,7 +2893,7 @@ Status | ||
ObjectManager::rejectOperation(const RejectRules* rejectRules, uint64_t version) | ||
{ | ||
if (version == VERSION_NONEXISTENT) { | ||
- if (rejectRules->doesntExist) | ||
+ if (rejectRules->doesntExist || rejectRules->versionLeGiven || rejectRules->versionNeGiven) | ||
return STATUS_OBJECT_DOESNT_EXIST; | ||
return STATUS_OK; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters