Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
authzforce
core
Commits
802b390e
Commit
802b390e
authored
Aug 02, 2019
by
cdanger
Browse files
Support instanciation of CoreRefPolicyProvider with null
environmentProperties
parent
29dd4c57
Changes
1
Hide whitespace changes
Inline
Side-by-side
pdp-engine/src/main/java/org/ow2/authzforce/core/pdp/impl/policy/CoreRefPolicyProvider.java
View file @
802b390e
...
...
@@ -156,7 +156,8 @@ public class CoreRefPolicyProvider extends BaseStaticRefPolicyProvider
int
policyLocationIndex
=
0
;
for
(
final
String
policyLocationPatternBeforePlaceholderReplacement
:
conf
.
getPolicyLocations
())
{
final
String
policyLocationPattern
=
environmentProperties
.
replacePlaceholders
(
policyLocationPatternBeforePlaceholderReplacement
);
final
String
policyLocationPattern
=
environmentProperties
==
null
?
policyLocationPatternBeforePlaceholderReplacement
:
environmentProperties
.
replacePlaceholders
(
policyLocationPatternBeforePlaceholderReplacement
);
// Check whether the location is a file path pattern
if
(
policyLocationPattern
.
startsWith
(
ResourceUtils
.
FILE_URL_PREFIX
))
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment