-
Notifications
You must be signed in to change notification settings - Fork 3
Convert FeeScheduleController to use FileLike #820
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
snprc_ehr/src/org/labkey/snprc_ehr/controllers/FeeScheduleController.java
Outdated
Show resolved
Hide resolved
…d(), and handlePost().
Sigmonia
left a comment
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.
I like the approach you took here.
| return new JspView<>("/org/labkey/snprc_ehr/pipeline/FeeScheduleImport.jsp", form, errors); | ||
| } | ||
|
|
||
| private File getVerifiedFile(String filePath) |
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.
@labkey-matthewb Would it be generally useful to have this a helper method on the Piperoot/PipelineService? Adding either the root or the container as a parameter makes this validation pretty generic for parsing incoming file paths.
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.
@labkey-ians I was wondering the same
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.
@labkey-ians Since @labkey-matthewb is out this week, we can table this discussion and come back to it. In the meantime, I'll merge the PR.
Rationale
Secure controller action/API endpoints that might allow unauthorized access to the files on the server by using FileLike instead of File (String) or File (String, String) patterns.
Related Pull Requests
Changes