-
Notifications
You must be signed in to change notification settings - Fork 354
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
chore: add Redirect from old icon endpoint [DHIS2-16042] #15802
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #15802 +/- ##
=============================================
+ Coverage 49.50% 66.34% +16.84%
- Complexity 23386 31441 +8055
=============================================
Files 3491 3491
Lines 130105 130106 +1
Branches 15192 15192
=============================================
+ Hits 64403 86322 +21919
+ Misses 59637 36705 -22932
- Partials 6065 7079 +1014
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1230 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
HttpServletResponse response, HttpServletRequest request, @PathVariable String iconKey) | ||
throws IOException { | ||
String location = response.encodeRedirectURL("/" + iconKey + "/icon"); | ||
response.sendRedirect(ContextUtils.getRootPath(request) + location); |
Check warning
Code scanning / CodeQL
URL redirection from remote source Medium
user-provided value
public void getIconData(HttpServletResponse response, @PathVariable String iconKey) | ||
throws IOException, NotFoundException { | ||
downloadDefaultIcon(iconKey, response); | ||
public void getIconData( |
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.
should we also mark the endpoint as deprecated? or is it not necessary?
Kudos, SonarCloud Quality Gate passed! |
DHIS2-16042