Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix duplicate entries in share_server_backend_details
share_server_backend_details_set() add entries in db table without checking existing entries with given combinaton of share_server_id and key. This causes duplicate records. Fix it by validating presence of share server id and key. Closes-bug: #2024658 Change-Id: I58dcd9716cf95d0d696c13a4c831df787726bcda (cherry picked from commit 37278df) (cherry picked from commit 5fddd2d)
- Loading branch information
Showing
4 changed files
with
52 additions
and
10 deletions.
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
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
8 changes: 8 additions & 0 deletions
8
...s/bug-2024658-fix-duplicate-entries-of-share-server-backend-details-adf45b417d45b437.yaml
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,8 @@ | ||
--- | ||
fixes: | ||
- | | ||
Share server backend details set function adds db records without | ||
checking existing entries. This results in duplicate records for the | ||
combination of given share server id and key. Fixed it by updating records | ||
if already exist else creating new. See the `launchpad bug 2024658 | ||
<https://bugs.launchpad.net/manila/+bug/2024658>`_ for more details. |