-
Notifications
You must be signed in to change notification settings - Fork 176
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
TRUNK-6203: Global properties access should be privileged #190
Conversation
@dkayiwa I updated this PR. We also need this to run the reference application. |
Yes we need to. |
Strangely, it sometimes works without these changes 😅 |
Not a good sign. 😊 |
That happened only once, it was probably an issue on my side. |
@@ -81,8 +82,16 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response) | |||
// look up the allowed # of attempts per IP | |||
Integer allowedLockoutAttempts = 100; | |||
|
|||
String allowedLockoutAttemptsGP = Context.getAdministrationService().getGlobalProperty( | |||
GP_ALLOWED_LOGIN_ATTEMPTS_PER_IP, "100"); | |||
String allowedLockoutAttemptsGP = ""; |
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.
Why not initialise this with the default value?
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 updated the PR.
After TRUNK-6203, users must possess the 'Get Global Properties' privilege to access global properties. This addition and removal of the global property are necessary for accessing global properties before a user logs in.
Ticket: https://openmrs.atlassian.net/browse/TRUNK-6203