Commit 74cb43f
feat: Replace JClouds with AWS SDK + File NIO [DHIS2-20648] (#23918)
* feat: Replace JClouds with AWS SDK and NIO [DHIS2-20648]
* feat: Align impl contracts for consistency. Add comments [DHIS2-20648]
* feat: Remove remaining JClouds refs [DHIS2-20648]
* feat: Harden security and add more tests [DHIS2-20648]
* feat: Clean logs [DHIS2-20648]
* Revert get content length
* feat: Enable dir create/exists to keep existing behaviour
* clean up tests
* feat: Use static of
* feat: Craete bucket first without HEAD call
* feat: Address PR comments
* remove redundant tests
* feat: Remove AppStorageSource, no longer required
* feat: Ensure streams are resetable when passing to s3 [DHIS2-20648]
* resolve conflicts
* remove test util method
---------
Co-authored-by: Stian Sandvold <stian@dhis2.org>1 parent e1e67ac commit 74cb43f
37 files changed
Lines changed: 1860 additions & 764 deletions
File tree
- dhis-2
- dhis-api/src
- main/java/org/hisp/dhis
- appmanager
- fileresource
- storage
- test/java/org/hisp/dhis/storage
- dhis-services/dhis-service-core
- src
- main/java/org/hisp/dhis
- appmanager
- fileresource
- jclouds
- storage
- test/java/org/hisp/dhis
- appmanager
- jclouds
- storage
- dhis-test-integration
- src/test/java/org/hisp/dhis/storage
- dhis-test-web-api/src/test/java/org/hisp/dhis/webapi/controller
Lines changed: 0 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | 85 | | |
88 | 86 | | |
89 | 87 | | |
| |||
414 | 412 | | |
415 | 413 | | |
416 | 414 | | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | 415 | | |
424 | 416 | | |
425 | 417 | | |
426 | 418 | | |
427 | 419 | | |
428 | 420 | | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | 421 | | |
434 | 422 | | |
435 | 423 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
62 | 72 | | |
63 | 73 | | |
64 | 74 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
69 | 91 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
| 254 | + | |
260 | 255 | | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
| 256 | + | |
270 | 257 | | |
271 | 258 | | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | 259 | | |
281 | 260 | | |
282 | 261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
| |||
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
| |||
234 | 233 | | |
235 | 234 | | |
236 | 235 | | |
237 | | - | |
238 | 236 | | |
239 | 237 | | |
240 | 238 | | |
| |||
294 | 292 | | |
295 | 293 | | |
296 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
297 | 301 | | |
298 | 302 | | |
299 | | - | |
| 303 | + | |
300 | 304 | | |
301 | 305 | | |
302 | 306 | | |
| |||
338 | 342 | | |
339 | 343 | | |
340 | 344 | | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
| 345 | + | |
354 | 346 | | |
355 | 347 | | |
356 | 348 | | |
357 | 349 | | |
358 | 350 | | |
359 | 351 | | |
360 | 352 | | |
361 | | - | |
| 353 | + | |
362 | 354 | | |
363 | | - | |
364 | | - | |
| 355 | + | |
365 | 356 | | |
366 | 357 | | |
367 | 358 | | |
| |||
374 | 365 | | |
375 | 366 | | |
376 | 367 | | |
377 | | - | |
| 368 | + | |
378 | 369 | | |
379 | 370 | | |
380 | 371 | | |
381 | 372 | | |
382 | 373 | | |
383 | 374 | | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
| 375 | + | |
389 | 376 | | |
390 | 377 | | |
391 | 378 | | |
392 | | - | |
393 | | - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
394 | 382 | | |
395 | 383 | | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
396 | 390 | | |
397 | 391 | | |
398 | 392 | | |
| |||
429 | 423 | | |
430 | 424 | | |
431 | 425 | | |
432 | | - | |
| 426 | + | |
433 | 427 | | |
434 | 428 | | |
435 | 429 | | |
436 | | - | |
437 | | - | |
| 430 | + | |
438 | 431 | | |
439 | 432 | | |
440 | 433 | | |
0 commit comments