Skip to content
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

O3-3002: Queue Module - REST endpoints can be accessed without authentication. #73

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

IamMujuziMoses
Copy link
Contributor

Issue I worked on

see https://issues.openmrs.org/browse/O3-3002

Checklist: I completed these to help reviewers :)

  • Added Authorized annotations to the service classes: QueueService, QueueEntryService, QueueRoomService and RoomProviderMapService.
  • Created PrivilegeConstants class to contain all privilege names and their descriptions.
  • Added liquibase changesets that will add the new privileges and do a default assignment of these privileges to roles.

@IamMujuziMoses IamMujuziMoses force-pushed the O3-3002-III branch 2 times, most recently from 818cdb7 to 26cd748 Compare May 7, 2024 16:53
<preConditions onFail="MARK_RAN">
<not>
<sqlCheck expectedResult="0">
SELECT count(*) FROM role_privilege WHERE privilege='Get Visits';
Copy link
Member

Choose a reason for hiding this comment

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

I would think the more appropriate check here, would be to execute this only if no one already has the "Get Queue Entries" privilege (which would imply it has already previously been assigned as desired). Then, this also allows you to get rid of the "AND NOT EXISTS..." clause from your insert statement below, right?

The same sort of logic would be applied to all of the changesets below. So:

  • If any role already has privilege A, then mark as RAN
  • Otherwise, assign privilege A to any role that already has privilege B.

</not>
</preConditions>
<comment>Add "Manage Queue Entries" privilege to the roles having "Edit Visits"</comment>
<sql>
INSERT INTO role_privilege (role, privilege)
SELECT role, 'Manage Queue Entries' from role_privilege rp
WHERE rp.privilege = 'Edit Visits'
Copy link
Member

Choose a reason for hiding this comment

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

If you are going to do this, I think you need to ensure you only insert the distict roles from both, so a single sql statement, something like:

INSERT INTO role_privilege (role, privilege)
            SELECT distinct role, 'Manage Queue Entries' from role_privilege rp
            WHERE rp.privilege in ('Add Visits', 'Edit Visits');

</not>
</preConditions>
<comment>Add "Manage Queue Rooms" privilege to the roles having "Edit Visits"</comment>
<sql>
Copy link
Member

Choose a reason for hiding this comment

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

Same comment as above, you need to use something like:

INSERT INTO role_privilege (role, privilege)
            SELECT distinct role, 'Manage Queue Rooms' from role_privilege rp
            WHERE rp.privilege in ('Add Visits', 'Edit Visits');

Copy link
Member

@mseaton mseaton left a comment

Choose a reason for hiding this comment

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

This looks ok to me now, thanks! Hopefully no further post-commit issues.

@mseaton mseaton merged commit dbbb44a into openmrs:main Jun 10, 2024
1 check passed
@mogoodrich
Copy link
Member

Unfortunately, after this changeset one of our CI servers (ci.pih-emr.org) is failing to start with this error:

2024-06-11 09:34:50] [info] org.openmrs.module.ModuleException: Unable to update data model using liquibase.xml. Module: Queue
[2024-06-11 09:34:50] [info] #011at org.openmrs.module.ModuleFactory.runLiquibase(ModuleFactory.java:1002) ~[openmrs-api-2.6.5.jar:?]
[2024-06-11 09:34:50] [info] #011at org.openmrs.module.ModuleFactory.startModuleInternal(ModuleFactory.java:723) ~[openmrs-api-2.6.5.jar:?]
[2024-06-11 09:34:50] [info] #011at org.openmrs.api.context.Daemon$1.run(Daemon.java:86) ~[openmrs-api-2.6.5.jar:?]
[2024-06-11 09:34:50] [info] Caused by: liquibase.exception.LiquibaseException: liquibase.exception.LiquibaseException: Unable to execute change set: liquibase.xml::rest_endpoints_accessed_without_authentication_2024050701::mujuzi
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:124) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:238) ~[openmrs-api-2.6.5.jar:?]
[2024-06-11 09:34:50] [info] #011at org.openmrs.module.ModuleFactory.runLiquibase(ModuleFactory.java:994) ~[openmrs-api-2.6.5.jar:?]
[2024-06-11 09:34:50] [info] #011... 2 more
[2024-06-11 09:34:50] [info] Caused by: liquibase.exception.LiquibaseException: Unable to execute change set: liquibase.xml::rest_endpoints_accessed_without_authentication_2024050701::mujuzi
[2024-06-11 09:34:50] [info] #011at org.openmrs.util.DatabaseUpdater$OpenmrsUpdateVisitor.visit(DatabaseUpdater.java:859) ~[openmrs-api-2.6.5.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.ChangeLogIterator$2.lambda$null$0(ChangeLogIterator.java:111) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.lambda$child$0(Scope.java:166) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:175) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:165) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:144) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.ChangeLogIterator$2.lambda$run$1(ChangeLogIterator.java:110) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.lambda$child$0(Scope.java:166) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:175) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:165) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:144) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:228) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.ChangeLogIterator$2.run(ChangeLogIterator.java:94) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.lambda$child$0(Scope.java:166) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:175) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:165) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:144) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:228) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:232) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:66) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:238) ~[openmrs-api-2.6.5.jar:?]
[2024-06-11 09:34:50] [info] #011at org.openmrs.module.ModuleFactory.runLiquibase(ModuleFactory.java:994) ~[openmrs-api-2.6.5.jar:?]
[2024-06-11 09:34:50] [info] #011... 2 more
[2024-06-11 09:34:50] [info] Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase.xml::rest_endpoints_accessed_without_authentication_2024050701::mujuzi:
[2024-06-11 09:34:50] [info]      Reason: liquibase.exception.DatabaseException: Duplicate entry '4e7bdbc8-3975-11e6-899a-a4d646d86a8a' for key 'privilege_uuid_index' [Failed SQL: (1062) INSERT INTO openmrs.privilege (privilege, `description`, uuid) VALUES ('Get Queues', 'Able to get/view queues', '4e7bdbc8-3975-11e6-899a-a4d646d86a8a')]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.ChangeSet.execute(ChangeSet.java:695) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:49) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at org.openmrs.util.DatabaseUpdater$OpenmrsUpdateVisitor.visit(DatabaseUpdater.java:856) ~[openmrs-api-2.6.5.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.ChangeLogIterator$2.lambda$null$0(ChangeLogIterator.java:111) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.lambda$child$0(Scope.java:166) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:175) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:165) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:144) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.ChangeLogIterator$2.lambda$run$1(ChangeLogIterator.java:110) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.lambda$child$0(Scope.java:166) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:175) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:165) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:144) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:228) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.ChangeLogIterator$2.run(ChangeLogIterator.java:94) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.lambda$child$0(Scope.java:166) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:175) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:165) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:144) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:228) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:232) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:66) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:238) ~[openmrs-api-2.6.5.jar:?]
[2024-06-11 09:34:50] [info] #011at org.openmrs.module.ModuleFactory.runLiquibase(ModuleFactory.java:994) ~[openmrs-api-2.6.5.jar:?]
[2024-06-11 09:34:50] [info] #011... 2 more
[2024-06-11 09:34:50] [info] Caused by: liquibase.exception.DatabaseException: Duplicate entry '4e7bdbc8-3975-11e6-899a-a4d646d86a8a' for key 'privilege_uuid_index' [Failed SQL: (1062) INSERT INTO openmrs.privilege (privilege, `description`, uuid) VALUES ('Get Queues', 'Able to get/view queues', '4e7bdbc8-3975-11e6-899a-a4d646d86a8a')]
[2024-06-11 09:34:50] [info] #011at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:393) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:82) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:150) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.database.AbstractJdbcDatabase.execute(AbstractJdbcDatabase.java:1279) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.database.AbstractJdbcDatabase.executeStatements(AbstractJdbcDatabase.java:1261) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.ChangeSet.execute(ChangeSet.java:660) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:49) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at org.openmrs.util.DatabaseUpdater$OpenmrsUpdateVisitor.visit(DatabaseUpdater.java:856) ~[openmrs-api-2.6.5.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.ChangeLogIterator$2.lambda$null$0(ChangeLogIterator.java:111) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.lambda$child$0(Scope.java:166) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:175) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:165) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:144) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.ChangeLogIterator$2.lambda$run$1(ChangeLogIterator.java:110) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.lambda$child$0(Scope.java:166) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:175) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:165) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:144) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:228) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.ChangeLogIterator$2.run(ChangeLogIterator.java:94) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.lambda$child$0(Scope.java:166) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:175) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:165) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:144) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:228) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:232) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:66) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:238) ~[openmrs-api-2.6.5.jar:?]
[2024-06-11 09:34:50] [info] #011at org.openmrs.module.ModuleFactory.runLiquibase(ModuleFactory.java:994) ~[openmrs-api-2.6.5.jar:?]
[2024-06-11 09:34:50] [info] #011... 2 more
[2024-06-11 09:34:50] [info] Caused by: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '4e7bdbc8-3975-11e6-899a-a4d646d86a8a' for key 'privilege_uuid_index'
[2024-06-11 09:34:50] [info] #011at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:117) ~[mysql-connector-java-8.0.30.jar:8.0.30]
[2024-06-11 09:34:50] [info] #011at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) ~[mysql-connector-java-8.0.30.jar:8.0.30]
[2024-06-11 09:34:50] [info] #011at com.mysql.cj.jdbc.StatementImpl.executeInternal(StatementImpl.java:763) ~[mysql-connector-java-8.0.30.jar:8.0.30]
[2024-06-11 09:34:50] [info] #011at com.mysql.cj.jdbc.StatementImpl.execute(StatementImpl.java:648) ~[mysql-connector-java-8.0.30.jar:8.0.30]
[2024-06-11 09:34:50] [info] #011at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:389) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:82) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:150) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.database.AbstractJdbcDatabase.execute(AbstractJdbcDatabase.java:1279) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.database.AbstractJdbcDatabase.executeStatements(AbstractJdbcDatabase.java:1261) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.ChangeSet.execute(ChangeSet.java:660) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:49) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at org.openmrs.util.DatabaseUpdater$OpenmrsUpdateVisitor.visit(DatabaseUpdater.java:856) ~[openmrs-api-2.6.5.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.ChangeLogIterator$2.lambda$null$0(ChangeLogIterator.java:111) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.lambda$child$0(Scope.java:166) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:175) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:165) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:144) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.ChangeLogIterator$2.lambda$run$1(ChangeLogIterator.java:110) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.lambda$child$0(Scope.java:166) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:175) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:165) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:144) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:228) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.ChangeLogIterator$2.run(ChangeLogIterator.java:94) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.lambda$child$0(Scope.java:166) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:175) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:165) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:144) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:228) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.Scope.child(Scope.java:232) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:66) ~[liquibase-core-4.4.3.jar:?]
[2024-06-11 09:34:50] [info] #011at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:238) ~[openmrs-api-2.6.5.jar:?]
[2024-06-11 09:34:50] [info] #011at org.openmrs.module.ModuleFactory.runLiquibase(ModuleFactory.java:994) ~[openmrs-api-2.6.5.jar:?]
[2024-06-11 09:34:50] [info] #011... 2 more

@mseaton @IamMujuziMoses

@mogoodrich
Copy link
Member

So, bizarre @mseaton @IamMujuziMoses , on ci.pih-enr.org another privilege does indeed appear to have this same uuid:

mysql> select * from privilege where uuid='4e7bdbc8-3975-11e6-899a-a4d646d86a8a';
+-------------+---------------------+--------------------------------------+
| privilege   | description         | uuid                                 |
+-------------+---------------------+--------------------------------------+
| View Visits | Able to view visits | 4e7bdbc8-3975-11e6-899a-a4d646d86a8a |
+-------------+---------------------+--------------------------------------+
1 row in set (0.00 sec)

... but this doesn't appear to be the case on at least on other of our CI servers that I checked. Do we know where this uuid came from?

@mseaton
Copy link
Member

mseaton commented Jun 11, 2024

@mogoodrich
Copy link
Member

Assumingly it wasn't created randomly, so I wonder if there are other duplicates?

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.

3 participants