Commit bd882af
committed
fix(seaweedfs): return updated BucketVO from createBucket instead of stale input
createBucket persisted the new access key, secret key, and bucket URL on a
separately loaded BucketVO but returned the original input Bucket object.
BucketApiServiceImpl.createBucket then set only the state on that original
object and updated it again, overwriting the persisted credentials with the
stale values from the input. Return the updated BucketVO (as the Cloudian
driver does) so the caller persists the correct credentials.1 parent 88c8574 commit bd882af
1 file changed
Lines changed: 4 additions & 1 deletion
File tree
- plugins/storage/object/seaweedfs/src/main/java/org/apache/cloudstack/storage/datastore/driver
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
419 | 422 | | |
420 | 423 | | |
421 | 424 | | |
| |||
0 commit comments