-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
merge dev in uat #192
Merged
Merged
merge dev in uat #192
Changes from all commits
Commits
Show all changes
239 commits
Select commit
Hold shift + click to select a range
931a866
set max-size connection jdbc
adrrss 158443d
fix: 931a86616922160fe2bff349d0dfe8486ee1f8bc
actions-user 75b96df
pom.xml updated with new version 1.15.0-dev.2
actions-user 7809bca
Chart.yaml updated with new version v1.15.0-dev.2
actions-user 766e0b1
fix: docker-image: v1.15.0-dev.2, chart: v1.15.0-dev.2
actions-user 1f14b57
Merge branch 'uat' into dev
adrrss d473b72
Merge branch 'uat' into dev
SMANUM f325482
modifying error messages
LuciaM1 5ed9fe9
feat: f3254820fb01b5eca6105ea828609f300ebf153f
actions-user 9e683e9
pom.xml updated with new version 1.17.0-dev.1
actions-user 42248ec
Chart.yaml updated with new version v1.17.0-dev.1
actions-user 22acb09
feat: docker-image: v1.17.0-dev.1, chart: v1.17.0-dev.1
actions-user 40bc2b6
feat: f3254820fb01b5eca6105ea828609f300ebf153f
actions-user 4d85bcb
pom.xml updated with new version 1.17.0-dev.2
actions-user 219c64f
Chart.yaml updated with new version v1.17.0-dev.2
actions-user ca2653d
feat: 219c64f9da812254a68fe4dd78cd32a6d067ed47
actions-user 3e800a3
pom.xml updated with new version 1.17.0-dev.2
actions-user fbf2b9c
Chart.yaml updated with new version v1.17.0-dev.2
actions-user 170e9d0
feat: docker-image: v1.17.0-dev.2, chart: v1.17.0-dev.2
actions-user 13b8af2
Merge remote-tracking branch 'origin/uat' into dev
LuciaM1 62b2ef2
set max-size connection jdbc
adrrss 2a14d98
Merge branch 'uat' into dev
GiacomoBrancazi 5366470
feat: 2a14d9887bb99124afdaa897c7e18ebcb030f7be
actions-user 65f1b26
pom.xml updated with new version 1.18.0-dev.1
actions-user 0c233d6
Chart.yaml updated with new version v1.18.0-dev.1
actions-user 06e9cfc
feat: docker-image: v1.18.0-dev.1, chart: v1.18.0-dev.1
actions-user 751f1b0
feat: 06e9cfc07c9ac9dc5d936d79ed26bd18546c665d
actions-user 5c5a9c8
pom.xml updated with new version 1.18.0-dev.2
actions-user 5f0beb0
Chart.yaml updated with new version v1.18.0-dev.2
actions-user 1df9d07
feat: docker-image: v1.18.0-dev.2, chart: v1.18.0-dev.2
actions-user 3a56479
feat: 1df9d077d0a13fcda0decaa5eec81313e03be929
actions-user 3708a62
pom.xml updated with new version 1.18.0-dev.3
actions-user 85548d1
Chart.yaml updated with new version v1.18.0-dev.3
actions-user bed30cf
feat: docker-image: v1.18.0-dev.3, chart: v1.18.0-dev.3
actions-user f5461bf
feat: bed30cfdffe64e1c35a08f51c5e2e38f33b20527
actions-user 1dbf9c8
pom.xml updated with new version 1.18.0-dev.4
actions-user 565efe7
Chart.yaml updated with new version v1.18.0-dev.4
actions-user 907307d
feat: docker-image: v1.18.0-dev.4, chart: v1.18.0-dev.4
actions-user a885cda
changing autoscaling value
SMANUM 48a6198
adding new ECS jaeger url
LuciaM1 dd60572
feat: 48a6198a471231517957937b844a0479c0993a89
actions-user 93f2803
pom.xml updated with new version 1.18.0-dev.5
actions-user f2afa39
Chart.yaml updated with new version v1.18.0-dev.5
actions-user f7fdefc
feat: docker-image: v1.18.0-dev.5, chart: v1.18.0-dev.5
actions-user f08f2a4
Merge branch 'uat' into dev
LuciaM1 9088b5a
fixing error message
LuciaM1 86314c4
fixing error message
LuciaM1 4a2fd03
fixing error message
LuciaM1 accdacf
Fix/openapi (#172)
LuciaM1 abe651a
feat: accdacfbe15088217c8595635ecbf7d0baf1f97b
actions-user 41f43ce
pom.xml updated with new version 1.19.0-dev.1
actions-user 2755a78
Chart.yaml updated with new version v1.19.0-dev.1
actions-user 73b7f3a
feat: docker-image: v1.19.0-dev.1, chart: v1.19.0-dev.1
actions-user 3023ca8
fixing openapi
LuciaM1 2a17b07
added info-contact
ElisKina-dev 070688c
feat: 2a17b07ebdd4212ac1d8ce829dedfe68bdca12fa
actions-user 91c2937
pom.xml updated with new version 1.19.0-dev.2
actions-user 45d368b
Chart.yaml updated with new version v1.19.0-dev.2
actions-user 822f596
feat: docker-image: v1.19.0-dev.2, chart: v1.19.0-dev.2
actions-user 54fa31b
User profile replica (#173)
ElisKina-dev a113e63
fixing first access
LuciaM1 c5cf6eb
feat: a113e6306841f8b1c6138a3d0f8c0fbd0d8b45f0
actions-user e411a4e
pom.xml updated with new version 1.19.0-dev.3
actions-user 4bb9a06
Chart.yaml updated with new version v1.19.0-dev.3
actions-user ae96902
feat: docker-image: v1.19.0-dev.3, chart: v1.19.0-dev.3
actions-user e9717a1
fixing first access
LuciaM1 93ae332
feat: e9717a1524d4d37caba55db816cf7f75803e5611
actions-user 1dde7c8
pom.xml updated with new version 1.19.0-dev.4
actions-user 1c0694f
Chart.yaml updated with new version v1.19.0-dev.4
actions-user 2034e93
feat: docker-image: v1.19.0-dev.4, chart: v1.19.0-dev.4
actions-user 79bc569
feat: e9717a1524d4d37caba55db816cf7f75803e5611
actions-user 93e1906
pom.xml updated with new version 1.19.0-dev.5
actions-user 0936957
Chart.yaml updated with new version v1.19.0-dev.5
actions-user 61b96aa
feat: docker-image: v1.19.0-dev.5, chart: v1.19.0-dev.5
actions-user 9115929
adding update user with profiles (#174)
LuciaM1 0485811
feat: 9115929d7db1fb89e6eb02692d6349f9076c6ee6
actions-user 11886af
pom.xml updated with new version 1.19.0-dev.6
actions-user 92b06f7
Chart.yaml updated with new version v1.19.0-dev.6
actions-user c70b91b
feat: docker-image: v1.19.0-dev.6, chart: v1.19.0-dev.6
actions-user 6432900
fixing first access
LuciaM1 e2347fc
Add user getAll filtered
EmanueleValentini1 f92bb67
feat: e2347fca3126e292dfb952829f65ce3d9a8ebdc9
actions-user cfebd8e
pom.xml updated with new version 1.19.0-dev.7
actions-user d41fb29
Chart.yaml updated with new version v1.19.0-dev.7
actions-user 988e579
feat: docker-image: v1.19.0-dev.7, chart: v1.19.0-dev.7
actions-user 569e62e
Fix filters
EmanueleValentini1 fe639cc
feat: 569e62e9378465194cf7e3a26cad6ce5b4211768
actions-user c59bb3f
pom.xml updated with new version 1.19.0-dev.8
actions-user a5b535a
Chart.yaml updated with new version v1.19.0-dev.8
actions-user 755ab74
feat: docker-image: v1.19.0-dev.8, chart: v1.19.0-dev.8
actions-user 2f8c1a9
UserPool first impl
EmanueleValentini1 fa0e92d
fix pom
EmanueleValentini1 9dd051d
Restore changes
EmanueleValentini1 faac3de
Integrating multiple resource create (#175)
LuciaM1 8195962
feat: faac3dedff4f071f9e8b4bd494a8d9f0d81878c3
actions-user 0ac1205
pom.xml updated with new version 1.19.0-dev.9
actions-user 714cbba
Chart.yaml updated with new version v1.19.0-dev.9
actions-user 68fa703
feat: docker-image: v1.19.0-dev.9, chart: v1.19.0-dev.9
actions-user f1a9abf
Remove user and profiles
EmanueleValentini1 0275782
Fix
EmanueleValentini1 4cb415f
feat: 027578201af12e047cba27c35ae2e34b5db23781
actions-user 3ddb49f
pom.xml updated with new version 1.19.0-dev.10
actions-user 3447787
Chart.yaml updated with new version v1.19.0-dev.10
actions-user 8d77603
feat: docker-image: v1.19.0-dev.10, chart: v1.19.0-dev.10
actions-user 480464a
fixing error message
LuciaM1 16b5428
feat: 480464a11484579cf5fbbae26cbf740a16ae2868
actions-user f28aca2
pom.xml updated with new version 1.19.0-dev.11
actions-user 1c48342
Chart.yaml updated with new version v1.19.0-dev.11
actions-user 7554d92
feat: docker-image: v1.19.0-dev.11, chart: v1.19.0-dev.11
actions-user a9f65e5
Merge remote-tracking branch 'origin/uat' into dev
LuciaM1 2257883
fixing pom
LuciaM1 d1aa508
fixing pom
LuciaM1 0516925
feat: d1aa508d161a6ab63b33c60c54a040b63aa8ff10
actions-user 4c82017
pom.xml updated with new version 1.20.0-dev.1
actions-user 079e946
Chart.yaml updated with new version v1.20.0-dev.1
actions-user b7443a0
feat: d1aa508d161a6ab63b33c60c54a040b63aa8ff10
actions-user 851772c
pom.xml updated with new version 1.20.0-dev.1
actions-user f30cd09
Chart.yaml updated with new version v1.20.0-dev.1
actions-user d5ff9f6
feat: docker-image: v1.20.0-dev.1, chart: v1.20.0-dev.1
actions-user a4359e1
feat: d1aa508d161a6ab63b33c60c54a040b63aa8ff10
actions-user 0233372
pom.xml updated with new version 1.20.0-dev.2
actions-user b9a5c21
Chart.yaml updated with new version v1.20.0-dev.2
actions-user 54998f2
feat: docker-image: v1.20.0-dev.2, chart: v1.20.0-dev.2
actions-user ee820f2
fixing resource update
LuciaM1 0e59ccc
feat: ee820f26941ddd7e452c31ee611e776da99f3843
actions-user 2a9e704
pom.xml updated with new version 1.20.0-dev.3
actions-user e697146
Chart.yaml updated with new version v1.20.0-dev.3
actions-user a3dd479
feat: docker-image: v1.20.0-dev.3, chart: v1.20.0-dev.3
actions-user 0ee262c
feat: fe5eec4af8bacbd26dbc7e6ffed29a84a76c4514
actions-user aad08ca
feat: docker-image: v1.20.0, chart: v1.20.0
actions-user 9f9d6df
Merge remote-tracking branch 'origin/uat' into dev
LuciaM1 2af421c
changed the maxLength of filename
ElisKina-dev 734cc50
feat: 2af421cdf6f31a4efc8e6fac07cf917235dfae60
actions-user dcd7171
pom.xml updated with new version 1.21.0-dev.1
actions-user 96dcd79
Chart.yaml updated with new version v1.21.0-dev.1
actions-user 1dc3176
feat: docker-image: v1.21.0-dev.1, chart: v1.21.0-dev.1
actions-user 4894452
fixing multiple rollback
LuciaM1 18e0b4c
feat: 489445220673061306e1bf69cf46dd427d4abe3b
actions-user ff0f220
pom.xml updated with new version 1.21.0-dev.2
actions-user df0fbb7
Chart.yaml updated with new version v1.21.0-dev.2
actions-user f11c824
feat: docker-image: v1.21.0-dev.2, chart: v1.21.0-dev.2
actions-user 8dc2a4e
Merge remote-tracking branch 'origin/uat' into dev
EmanueleValentini1 4ea98d7
feat: 8dc2a4e8eab2027b125609eb3b24516482f18efc
actions-user 74cf02d
pom.xml updated with new version 1.24.0-dev.1
actions-user dc0f7b5
Chart.yaml updated with new version v1.24.0-dev.1
actions-user 067f756
feat: docker-image: v1.24.0-dev.1, chart: v1.24.0-dev.1
actions-user 4a34bdc
sonarcloud fixes
LuciaM1 eed3549
feat: 4a34bdcc5c7373d1ad1298d34d78615202bd4934
actions-user 15144c3
pom.xml updated with new version 1.24.0-dev.2
actions-user 881f03d
Chart.yaml updated with new version v1.24.0-dev.2
actions-user 3afb4dd
feat: docker-image: v1.24.0-dev.2, chart: v1.24.0-dev.2
actions-user 896c4d3
Merge remote-tracking branch 'origin/uat' into dev
LuciaM1 6410309
sonarcloud fixes
LuciaM1 ad859bf
sonarcloud fixes
LuciaM1 87b8d84
feat: ad859bfec680e63a67f589b0ef6aaabaef6eadda
actions-user a68fb7e
pom.xml updated with new version 1.25.0-dev.1
actions-user d0eb348
Chart.yaml updated with new version v1.25.0-dev.1
actions-user 652f75b
feat: docker-image: v1.25.0-dev.1, chart: v1.25.0-dev.1
actions-user e6e03da
rolling back FromStringToFile
LuciaM1 9ffee8f
feat: e6e03daac48b269ebc7547020885407f65be4a3c
actions-user 187d13b
pom.xml updated with new version 1.25.0-dev.2
actions-user 844a0c8
Chart.yaml updated with new version v1.25.0-dev.2
actions-user 24e1a00
feat: docker-image: v1.25.0-dev.2, chart: v1.25.0-dev.2
actions-user ea42077
feat: e6e03daac48b269ebc7547020885407f65be4a3c
actions-user dc3a8ba
pom.xml updated with new version 1.25.0-dev.3
actions-user 3d3950d
Chart.yaml updated with new version v1.25.0-dev.3
actions-user cc6e64d
feat: docker-image: v1.25.0-dev.3, chart: v1.25.0-dev.3
actions-user 3f2e5d9
fixing fromStringToFile
LuciaM1 e3c21ed
feat: 3f2e5d9e11eae9a273a2fc91b12420b3f80a252d
actions-user a41444c
pom.xml updated with new version 1.25.0-dev.4
actions-user 8608c25
Chart.yaml updated with new version v1.25.0-dev.4
actions-user 4120b06
feat: docker-image: v1.25.0-dev.4, chart: v1.25.0-dev.4
actions-user b12647e
Merge remote-tracking branch 'origin/uat' into dev
LuciaM1 440eae6
adding bucket rollback on multi-upload (#185)
LuciaM1 78222e3
feat: 440eae666ca13baebac6a4c183f856abf26d0681
actions-user ca1a2d3
pom.xml updated with new version 1.26.0-dev.1
actions-user c4bce9a
Chart.yaml updated with new version v1.26.0-dev.1
actions-user da24e7f
feat: docker-image: v1.26.0-dev.1, chart: v1.26.0-dev.1
actions-user 02523f9
feat: 440eae666ca13baebac6a4c183f856abf26d0681
actions-user 8a8238b
pom.xml updated with new version 1.26.0-dev.2
actions-user 491cde7
Chart.yaml updated with new version v1.26.0-dev.2
actions-user 090da02
feat: docker-image: v1.26.0-dev.2, chart: v1.26.0-dev.2
actions-user 44c3806
feat: 440eae666ca13baebac6a4c183f856abf26d0681
actions-user d2d487d
pom.xml updated with new version 1.26.0-dev.3
actions-user 456ae6f
Chart.yaml updated with new version v1.26.0-dev.3
actions-user 78042ff
feat: docker-image: v1.26.0-dev.3, chart: v1.26.0-dev.3
actions-user 3f69c17
Merge remote-tracking branch 'origin/uat' into dev
LuciaM1 77eecbc
Fix sonar FileUtilities issue
EmanueleValentini1 219f51b
rollback FileUtilities
EmanueleValentini1 b768661
Fix sonar FileUtilities permissions
EmanueleValentini1 d6c9e3e
feat: b7686611db841e88b2c57f4ad68cfbfc2726fd8b
actions-user 0e838ad
pom.xml updated with new version 1.27.0-dev.1
actions-user 93735ab
Chart.yaml updated with new version v1.27.0-dev.1
actions-user 2e0ca82
feat: docker-image: v1.27.0-dev.1, chart: v1.27.0-dev.1
actions-user 84670c9
rollback FileUtilities
EmanueleValentini1 1a77fd3
remove tracing
EmanueleValentini1 83d28b1
feat: 1a77fd3b070f19063217a57dfa78a39ab39aafa1
actions-user d076595
pom.xml updated with new version 1.27.0-dev.2
actions-user 7e3b5cd
Chart.yaml updated with new version v1.27.0-dev.2
actions-user fcada8f
feat: docker-image: v1.27.0-dev.2, chart: v1.27.0-dev.2
actions-user 2fcb95f
Fix FileUtilities sonar issue
EmanueleValentini1 cd5f767
feat: 2fcb95f185a981d00f3bf733460aefae87ca8d19
actions-user 79ce403
pom.xml updated with new version 1.27.0-dev.3
actions-user 9f521a4
Chart.yaml updated with new version v1.27.0-dev.3
actions-user faf7278
feat: docker-image: v1.27.0-dev.3, chart: v1.27.0-dev.3
actions-user dff7587
Merge remote-tracking branch 'refs/remotes/origin/uat' into dev
EmanueleValentini1 e7891af
Fix FileUtilities sonar issue
EmanueleValentini1 8e35a7f
feat: e7891aff4683abfe592818ce9f7a101644a0c271
actions-user eadd996
pom.xml updated with new version 1.28.0-dev.1
actions-user 4e9b89c
Chart.yaml updated with new version v1.28.0-dev.1
actions-user b5a3232
feat: docker-image: v1.28.0-dev.1, chart: v1.28.0-dev.1
actions-user 90f93e2
feat: e7891aff4683abfe592818ce9f7a101644a0c271
actions-user d6e698b
pom.xml updated with new version 1.28.0-dev.2
actions-user 0b9c36d
Chart.yaml updated with new version v1.28.0-dev.2
actions-user 438498d
feat: docker-image: v1.28.0-dev.2, chart: v1.28.0-dev.2
actions-user 22ccd50
feat: e7891aff4683abfe592818ce9f7a101644a0c271
actions-user 864f585
pom.xml updated with new version 1.28.0-dev.3
actions-user dcd5cdc
Chart.yaml updated with new version v1.28.0-dev.3
actions-user ddde5b5
feat: docker-image: v1.28.0-dev.3, chart: v1.28.0-dev.3
actions-user 34ba6f6
Merge remote-tracking branch 'origin/uat' into dev
EmanueleValentini1 346d82c
refactoring fromStringToFile
LuciaM1 843948d
feat: 346d82cfcd4df2db297e560852217a484ba83aff
actions-user 544ae41
pom.xml updated with new version 1.29.0-dev.1
actions-user a04ffa0
Chart.yaml updated with new version v1.29.0-dev.1
actions-user bff021b
refactoring fromStringToFile
LuciaM1 deb4310
refactoring fromStringToFile
LuciaM1 20503b6
feat: deb431016b60b9cec07cee398a725e042f5c6929
actions-user d3e54d0
pom.xml updated with new version 1.29.0-dev.1
actions-user bd4d95f
Chart.yaml updated with new version v1.29.0-dev.1
actions-user f80d6b3
feat: docker-image: v1.29.0-dev.1, chart: v1.29.0-dev.1
actions-user 5a45557
feat: deb431016b60b9cec07cee398a725e042f5c6929
actions-user 88c0eef
pom.xml updated with new version 1.29.0-dev.2
actions-user 8a41b80
Chart.yaml updated with new version v1.29.0-dev.2
actions-user 6a83452
feat: docker-image: v1.29.0-dev.2, chart: v1.29.0-dev.2
actions-user 834401f
feat: deb431016b60b9cec07cee398a725e042f5c6929
actions-user 6f40e59
pom.xml updated with new version 1.29.0-dev.3
actions-user e12c967
Chart.yaml updated with new version v1.29.0-dev.3
actions-user bcff413
feat: docker-image: v1.29.0-dev.3, chart: v1.29.0-dev.3
actions-user 899a44f
Merge remote-tracking branch 'origin/uat' into dev
ElisKina-dev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
50 changes: 50 additions & 0 deletions
50
src/main/java/it/gov/pagopa/atmlayer/service/model/configurations/DirManager.java
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,50 @@ | ||
package it.gov.pagopa.atmlayer.service.model.configurations; | ||
|
||
import io.quarkus.runtime.Shutdown; | ||
import io.quarkus.runtime.ShutdownEvent; | ||
import io.quarkus.runtime.Startup; | ||
import io.quarkus.runtime.StartupEvent; | ||
import jakarta.enterprise.context.ApplicationScoped; | ||
import jakarta.enterprise.event.Observes; | ||
import lombok.Getter; | ||
import org.apache.commons.io.FileUtils; | ||
import org.apache.commons.lang3.SystemUtils; | ||
|
||
import java.io.File; | ||
import java.io.IOException; | ||
import java.nio.file.attribute.PosixFilePermission; | ||
import java.util.EnumSet; | ||
import java.util.Set; | ||
|
||
@ApplicationScoped | ||
public class DirManager { | ||
|
||
@Getter | ||
public static File decodedFilesDirectory; | ||
|
||
@Startup | ||
static void init(@Observes StartupEvent ev) throws IOException { | ||
String secureDirPath = System.getProperty("java.io.tmpdir") + "/decodedFilesDirectory"; | ||
decodedFilesDirectory = new File(secureDirPath); | ||
if (!decodedFilesDirectory.exists() && !decodedFilesDirectory.mkdirs()) { | ||
throw new IOException("Impossibile creare una directory sicura per il salvataggio di file temporanei."); | ||
} | ||
if (SystemUtils.IS_OS_UNIX) { | ||
Set<PosixFilePermission> dirPermissions = EnumSet.of( | ||
PosixFilePermission.OWNER_READ, | ||
PosixFilePermission.OWNER_WRITE, | ||
PosixFilePermission.OWNER_EXECUTE | ||
); | ||
java.nio.file.Files.setPosixFilePermissions(decodedFilesDirectory.toPath(), dirPermissions); | ||
} | ||
} | ||
|
||
@Shutdown | ||
static void shutdown(@Observes ShutdownEvent ev) throws IOException { | ||
FileUtils.deleteDirectory(decodedFilesDirectory); | ||
} | ||
|
||
private DirManager() { | ||
throw new IllegalStateException("Utility class DirManager should not be instantiated"); | ||
} | ||
} |
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Local information disclosure in a temporary directory Medium
Copilot Autofix AI about 2 months ago
To fix the problem, we should use the
java.nio.file.Files.createTempDirectory
method, which allows us to create a temporary directory with secure permissions from the start. This method ensures that the directory is created with permissions that restrict access to the owner only, thus preventing local information disclosure.Steps to fix:
new File
andmkdirs()
withFiles.createTempDirectory
.decodedFilesDirectory
to use the path returned byFiles.createTempDirectory
.