Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 71554a8

Browse files
open-schnickrenovate[bot]renovate-bot
authored
Update dependencies, fix log4j (#135)
* Typos and dependencies * Update cucumber.version to v6.11.0 (#129) Co-authored-by: Renovate Bot <[email protected]> * Update dependency org.projectlombok:lombok to v1.18.22 (#128) Co-authored-by: Renovate Bot <[email protected]> * Update dependency org.springdoc:springdoc-openapi-ui to v1.5.11 (#127) Co-authored-by: Renovate Bot <[email protected]> * Update dependency org.jetbrains:annotations to v21.0.1 (#120) Co-authored-by: Renovate Bot <[email protected]> * Update mockito monorepo to v3.12.4 (#132) Co-authored-by: Renovate Bot <[email protected]> * Update dependency org.sonarsource.scanner.maven:sonar-maven-plugin to v3.9.1.2184 (#131) Co-authored-by: Renovate Bot <[email protected]> * Update dependency org.springframework.security:spring-security-crypto to v5.6.0 (#126) Co-authored-by: Renovate Bot <[email protected]> * Bumped up version * Update dependency org.springdoc:springdoc-openapi-ui to v1.5.13 (#133) Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Open Schnick <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <[email protected]>
1 parent b8d111c commit 71554a8

File tree

5 files changed

+24
-20
lines changed

5 files changed

+24
-20
lines changed

pom.xml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
</parent>
1111
<groupId>de.filefighter</groupId>
1212
<artifactId>rest</artifactId>
13-
<version>0.1.2</version>
13+
<version>0.1.3</version>
1414
<name>RestApi</name>
1515
<description>RestApi for FileFighter</description>
1616

1717
<properties>
1818
<java.version>11</java.version>
19-
<cucumber.version>6.10.4</cucumber.version>
19+
<cucumber.version>6.11.0</cucumber.version>
2020
<sonar.coverage.exclusions>**/data/**/*.java,**/configuration/*.java,**/exceptions/*.java
2121
</sonar.coverage.exclusions>
2222
</properties>
@@ -48,20 +48,20 @@
4848
<dependency>
4949
<groupId>org.springframework.security</groupId>
5050
<artifactId>spring-security-crypto</artifactId>
51-
<version>5.4.6</version>
51+
<version>5.6.0</version>
5252
</dependency>
5353

5454
<dependency>
5555
<groupId>org.projectlombok</groupId>
5656
<artifactId>lombok</artifactId>
57-
<version>1.18.20</version>
57+
<version>1.18.22</version>
5858
</dependency>
5959

6060
<!-- For Docs -->
6161
<dependency>
6262
<groupId>org.springdoc</groupId>
6363
<artifactId>springdoc-openapi-ui</artifactId>
64-
<version>1.5.9</version>
64+
<version>1.5.13</version>
6565
</dependency>
6666

6767
<!-- running script plugin -->
@@ -71,6 +71,14 @@
7171
<version>3.0.0</version>
7272
</dependency>
7373

74+
<!-- Logging -->
75+
<dependency>
76+
<groupId>org.apache.logging.log4j</groupId>
77+
<artifactId>log4j</artifactId>
78+
<version>2.15.0</version>
79+
<type>pom</type>
80+
</dependency>
81+
7482
<!-- Needed for integration test. -->
7583
<dependency>
7684
<groupId>org.apache.httpcomponents</groupId>
@@ -86,17 +94,17 @@
8694
<dependency>
8795
<groupId>org.mockito</groupId>
8896
<artifactId>mockito-core</artifactId>
89-
<version>3.10.0</version>
97+
<version>3.12.4</version>
9098
</dependency>
9199
<dependency>
92100
<groupId>org.mockito</groupId>
93101
<artifactId>mockito-inline</artifactId>
94-
<version>3.10.0</version>
102+
<version>3.12.4</version>
95103
</dependency>
96104
<dependency>
97105
<groupId>org.jetbrains</groupId>
98106
<artifactId>annotations</artifactId>
99-
<version>21.0.0</version>
107+
<version>21.0.1</version>
100108
</dependency>
101109
<dependency>
102110
<groupId>org.springframework.boot</groupId>
@@ -134,11 +142,8 @@
134142
</exclusion>
135143
</exclusions>
136144
</dependency>
137-
<!-- TESTING -->
138-
139145
</dependencies>
140146

141-
142147
<build>
143148
<plugins>
144149
<plugin>
@@ -175,7 +180,7 @@
175180
<plugin>
176181
<groupId>org.sonarsource.scanner.maven</groupId>
177182
<artifactId>sonar-maven-plugin</artifactId>
178-
<version>3.9.0.2155</version>
183+
<version>3.9.1.2184</version>
179184
</plugin>
180185
<plugin>
181186
<groupId>org.jacoco</groupId>

src/main/java/de/filefighter/rest/domain/common/InputSanitizerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static boolean stringIsValid(String s) {
2121
/**
2222
* Sanitizes a String, so it can be used.
2323
*
24-
* @param string String that needs to be sanitized.
24+
* @param string String that needs to cbe sanitized.
2525
* @return string without whitespaces and without illegal characters.
2626
* @throws RequestDidntMeetFormalRequirementsException when string was empty.
2727
*/

src/main/java/de/filefighter/rest/domain/filesystem/business/FileSystemBusinessService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ public List<FileSystemItem> deleteFileSystemItemById(long fsItemId, User authent
156156
log.info("User is {}.", authenticatedUser);
157157

158158
ArrayList<FileSystemItem> returnList = new ArrayList<>();
159-
recursivlyDeleteFileSystemEntity(parentEntity, authenticatedUser, returnList);
159+
recursivelyDeleteFileSystemEntity(parentEntity, authenticatedUser, returnList);
160160
return returnList;
161161
}
162162

163-
private Pair<Boolean, Boolean> recursivlyDeleteFileSystemEntity(FileSystemEntity parentEntity, User authenticatedUser, ArrayList<FileSystemItem> returnList) {
163+
private Pair<Boolean, Boolean> recursivelyDeleteFileSystemEntity(FileSystemEntity parentEntity, User authenticatedUser, ArrayList<FileSystemItem> returnList) {
164164
boolean foundNonDeletable = false;
165165
boolean foundInvisible = false;
166166

@@ -175,7 +175,7 @@ private Pair<Boolean, Boolean> recursivlyDeleteFileSystemEntity(FileSystemEntity
175175
for (FileSystemEntity item : items) {
176176
if (fileSystemHelperService.userIsAllowedToInteractWithFileSystemEntity(item, authenticatedUser, InteractionType.READ)) {
177177
if (fileSystemHelperService.userIsAllowedToInteractWithFileSystemEntity(item, authenticatedUser, InteractionType.DELETE)) {
178-
Pair<Boolean, Boolean> recursiveReturn = recursivlyDeleteFileSystemEntity(item, authenticatedUser, returnList);
178+
Pair<Boolean, Boolean> recursiveReturn = recursivelyDeleteFileSystemEntity(item, authenticatedUser, returnList);
179179
foundInvisible = recursiveReturn.getFirst() || foundInvisible;
180180
foundNonDeletable = recursiveReturn.getSecond() || foundNonDeletable;
181181
} else {
@@ -201,7 +201,7 @@ private Pair<Boolean, Boolean> recursivlyDeleteFileSystemEntity(FileSystemEntity
201201
returnList.add(fileSystemHelperService.createDTO(parentEntity, authenticatedUser, null));
202202
} else {
203203
// else some files are left. invisible or not. but the entity cannot be deleted.
204-
log.info("Some visible entites could not be deleted but are visible.");
204+
log.info("Some visible entities could not be deleted but are visible.");
205205
}
206206
} else {
207207
fileSystemHelperService.deleteAndUnbindFileSystemEntity(parentEntity);

src/main/java/de/filefighter/rest/domain/filesystem/business/FileSystemHelperService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ public List<FileSystemEntity> getFolderContentsOfEntityAndPermissions(FileSystem
128128
return fileSystemEntities;
129129
}
130130

131-
@SuppressWarnings("java:S3776")
132131
public boolean userIsAllowedToInteractWithFileSystemEntity(FileSystemEntity fileSystemEntity, User authenticatedUser, InteractionType interaction) {
133132
// file was created by runtime user.
134133
if ((interaction == InteractionType.DELETE)

src/main/resources/application.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ spring.data.mongodb.host=localhost
1616
spring.data.mongodb.port=20000
1717
spring.data.mongodb.auto-index-creation=true
1818
#------------------- Custom -----------------------
19-
filefighter.version=0.1.2
20-
filefighter.date=27.05.2021
19+
filefighter.version=0.1.3
20+
filefighter.date=23.12.2021
2121
filefighter.disable-password-check=false

0 commit comments

Comments
 (0)