-
-
Notifications
You must be signed in to change notification settings - Fork 88
Restrict TestResourceLoader from search of non-classpath resources in subfolders #2421
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2421 +/- ##
=========================================
Coverage 96.40% 96.40%
Complexity 5439 5439
=========================================
Files 772 772
Lines 15641 15644 +3
Branches 1046 1046
=========================================
+ Hits 15078 15081 +3
Misses 439 439
Partials 124 124
Continue to review full report at Codecov.
|
else | ||
{ | ||
locationPattern = CLASSPATH_ALL_URL_PREFIX + normalizedResourceLocation; | ||
allResources = resourcePatternResolver.getResources(locationPattern + "**/" + resourcePattern); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@valfirst as I see in default behavior we add **/, but should not the user be responsible for adding this into resource pattern on his own?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tricky question, but "backward compatibility" is our goal
vividus-engine/src/main/java/org/vividus/resource/TestResourceLoader.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Valery Yatsynovich <valfirst@yandex.ru>
…tem (#2421) Co-authored-by: Dzmitry Targonsky <dzmitry_targonsky@epam.com> Co-authored-by: Valery Yatsynovich <valfirst@yandex.ru>
…tem (vividus-framework#2421) Co-authored-by: Dzmitry Targonsky <dzmitry_targonsky@epam.com> Co-authored-by: Valery Yatsynovich <valfirst@yandex.ru>
No description provided.