-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Uncontrolled data used in path expression
- Loading branch information
Showing
5 changed files
with
36 additions
and
20 deletions.
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
15 changes: 14 additions & 1 deletion
15
...ayground-quarkus/src/main/java/org/fugerit/java/doc/playground/init/ProjectInitInput.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 |
---|---|---|
@@ -1,17 +1,30 @@ | ||
package org.fugerit.java.doc.playground.init; | ||
|
||
import jakarta.validation.constraints.Max; | ||
import jakarta.validation.constraints.Min; | ||
import jakarta.validation.constraints.Pattern; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.util.List; | ||
|
||
public class ProjectInitInput { | ||
|
||
@Pattern( regexp = "[A-Za-z0-9-\\.]+", flags = Pattern.Flag.DOTALL ) | ||
@Getter @Setter private String groupId; | ||
|
||
@Pattern( regexp = "[A-Za-z0-9-]+", flags = Pattern.Flag.DOTALL ) | ||
@Getter @Setter private String artifactId; | ||
|
||
@Pattern( regexp = "[A-Za-z0-9-\\.]+", flags = Pattern.Flag.DOTALL ) | ||
@Getter @Setter private String projectVersion; | ||
@Getter @Setter private String javaVersion; | ||
|
||
@Min( 8 ) @Max( 21 ) | ||
@Getter @Setter private Long javaVersion; | ||
|
||
@Pattern( regexp = "[A-Za-z0-9-\\.]+", flags = Pattern.Flag.DOTALL ) | ||
@Getter @Setter private String venusVersion; | ||
|
||
@Getter @Setter private List<String> extensionList; | ||
|
||
} |
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
1 change: 1 addition & 0 deletions
1
fj-doc-playground-quarkus/src/test/resources/request/payload/init/init_ko_3.json
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 @@ | ||
{"groupId":"../org.fugerit.java.demo","artifactId":"fugerit-doc-demo","projectVersion":"1.0.0-SNAPSHOT","javaVersion":"21","venusVersion":"8.7.4"} |