Skip to content

TRUNK-6203: Global properties access should be privileged#105

Open
wikumChamith wants to merge 1 commit into
openmrs:masterfrom
wikumChamith:TRUNK-6203
Open

TRUNK-6203: Global properties access should be privileged#105
wikumChamith wants to merge 1 commit into
openmrs:masterfrom
wikumChamith:TRUNK-6203

Conversation

@wikumChamith

Copy link
Copy Markdown
Member

After openmrs/openmrs-core#4601, users must possess the 'Get Global Properties' privilege to access global properties. This grants it as a proxy privilege so users can access essential pages, such as the login page.

Ticket: https://openmrs.atlassian.net/browse/TRUNK-6203

@wikumChamith wikumChamith changed the base branch from TRUNK-6203 to master June 19, 2024 16:19
.getGlobalProperty(ReferenceApplicationConstants.LOCATION_USER_PROPERTY_NAME);
String locationUserPropertyName;
try {
Context.addProxyPrivilege(PrivilegeConstants.GET_GLOBAL_PROPERTIES);

@dkayiwa dkayiwa Jun 19, 2024

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean that line 382 below results into a NPE for Context.getAuthenticatedUser().getUserProperty()?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dkayiwa I updated the PR.

@dkayiwa

dkayiwa commented May 1, 2025

Copy link
Copy Markdown
Member

@wikumChamith do you remember why we abandoned this pull request?

@wikumChamith

Copy link
Copy Markdown
Member Author

@wikumChamith do you remember why we abandoned this pull request?

@dkayiwa Sorry, I can’t quite remember why this was abandoned—most likely, we just forgot to merge it :)

@dkayiwa

dkayiwa commented May 2, 2025

Copy link
Copy Markdown
Member

@wikumChamith are you able to reproduce the problem that it was intended to solve?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants