Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Project and Workflow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
System
Project and Workflow
Commits
15ff26ef
Commit
15ff26ef
authored
4 months ago
by
Jiman Kim
Browse files
Options
Downloads
Patches
Plain Diff
format
parent
76b85317
Branches
log-fix
No related tags found
1 merge request
!115
Fix high priority validation that allowed for CR/LF Injection in Logs
Pipeline
#289239
failed
4 months ago
Stage: build
Stage: containerize
Stage: deploy
Stage: integration
Stage: publish
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pws-core/src/main/java/org/opengroup/osdu/pws/schema/SchemaValidatorService.java
+3
-3
3 additions, 3 deletions
...org/opengroup/osdu/pws/schema/SchemaValidatorService.java
with
3 additions
and
3 deletions
pws-core/src/main/java/org/opengroup/osdu/pws/schema/SchemaValidatorService.java
+
3
−
3
View file @
15ff26ef
...
...
@@ -66,7 +66,7 @@ public class SchemaValidatorService implements SchemaValidator {
}
private
void
createAndThrowException
(
Set
<
ValidationMessage
>
validationMessages
,
@NotNull
ObjectNode
schemaNode
)
{
@NotNull
ObjectNode
schemaNode
)
{
JsonNode
schemaSource
=
schemaNode
.
findValue
(
"x-osdu-schema-source"
);
String
schemaSourceName
=
schemaSource
!=
null
?
schemaSource
.
asText
()
:
"null"
;
schemaSourceName
=
StringEscapeUtils
.
escapeJava
(
schemaSourceName
);
...
...
@@ -80,7 +80,7 @@ public class SchemaValidatorService implements SchemaValidator {
private
String
[]
collectValidationMessages
(
Set
<
ValidationMessage
>
validationMessages
)
{
return
validationMessages
.
stream
()
.
map
(
ValidationMessage:
:
toString
)
.
toArray
(
String
[]::
new
);
.
map
(
ValidationMessage:
:
toString
)
.
toArray
(
String
[]::
new
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment