Commit ece9d85
committed
[yugabyte#9331] Platform: Allow editing "Configuration Name" for backup storage provider without security credentials
Summary:
Attempts to update backup configurations which have credentials, but without changing them, fail
on a step of the credentials check.
As example:
- S3 storage configuration with valid credentials (the credentials are verified on a stage of
the configuration creation);
- We are changing only the configuration name;
- Save changes -> "Tha AWS Access Key Id you provided does not exist in our records".
The fix is to reorder operations: credentials check should go after the passed credentials are unmasked (currently it goes before).
Test Plan:
Scenario:
1. Create valid S3 configuration, save it.
2. Go to another page and then return back to the S3 backup configuration page;
3. Change the configuration name only and press "Save".
Reviewers: amalyshev
Reviewed By: amalyshev
Subscribers: jenkins-bot, yugaware
Differential Revision: https://phabricator.dev.yugabyte.com/D123531 parent 3f15bfc commit ece9d85
File tree
2 files changed
+49
-13
lines changed- managed/src
- main/java/com/yugabyte/yw/controllers
- test/java/com/yugabyte/yw/controllers
2 files changed
+49
-13
lines changedLines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | 101 | | |
105 | 102 | | |
106 | | - | |
107 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
108 | 109 | | |
| 110 | + | |
109 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
110 | 119 | | |
111 | 120 | | |
112 | 121 | | |
| |||
Lines changed: 34 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
| 202 | + | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
273 | 299 | | |
274 | 300 | | |
275 | 301 | | |
276 | 302 | | |
277 | 303 | | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
284 | 311 | | |
285 | 312 | | |
286 | 313 | | |
| |||
0 commit comments