Follow-up:
with Elexis 3.10, from here:
http://download.elexis.info/elexis/3.10/products/Elexis3-linux.gtk.x86_64.zip
access is ok.
The log of my 3.12 maven build says:
-----------
09:47:01.287 [Start Level: Equinox Container:
0445fe75-675f-4800-9767-bc3f2b163a70] INFO
c.e.core.services.LocalConfigService - LocalConfig persisted to
[/home/gerry/elexis/localCfg_default.xml]
09:47:01.289 [Start Level: Equinox Container:
0445fe75-675f-4800-9767-bc3f2b163a70] INFO
c.elexis.core.data.activator.CoreHub - Basepath:
bundleentry://11.fwk226544897/
09:47:01.969 [main] INFO c.e.c.u.s.internal.ContextService - ACTIVATE
09:47:02.822 [pool-6-thread-1] INFO c.e.c.j.l.LiquibaseDBInitializer -
Synchronize liquibase log of database [PoolGuardConnectionWrapper
[429009538,
URL=jdbc:mysql://192.168.0.36:3312/elexiscopy?autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Europe/Zurich,
MySQL Connector/J]]
09:47:03.316 [pool-7-thread-1] INFO c.e.c.j.liquibase.LiquibaseDBUpdater
- Updating database [PoolGuardConnectionWrapper [598536193,
URL=jdbc:mysql://192.168.0.36:3312/elexiscopy?autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Europe/Zurich,
MySQL Connector/J]] with liquibase
09:47:04.092 [main] INFO c.e.c.s.h.StockCommissioningServiceHolder -
Setting ch.elexis.core.services.StockCommissioningSystemService@1a7cb3a4
09:47:04.243 [main] INFO c.e.c.t.i.service.TaskServiceImpl - Binding
ch.elexis.core.importer.div.tasks.internal.HL7ImporterIdentifiedRunnableFactory
09:47:04.252 [main] INFO c.e.c.t.i.service.TaskServiceImpl - Binding
ch.elexis.core.mail.internal.MailClientRunnableFactory
09:47:04.258 [main] INFO c.e.c.t.i.service.TaskServiceImpl - Binding
ch.elexis.core.tasks.internal.service.IdentifiedRunnableFactoryImpl
09:47:04.268 [main] INFO ch.elexis.core.utils.OsgiServiceUtil - Release
not active service
[ch.elexis.core.jpa.datasource.internal.ElexisDataSourceService@1549bba7]
from 1 active references
09:47:04.287 [main] INFO c.e.core.services.LocalConfigService -
LocalConfig persisted to [/home/gerry/elexis/localCfg_default.xml]
09:47:04.287 [main] INFO ch.elexis.core.utils.OsgiServiceUtil - Release
active service [ch.elexis.core.services.ConfigService@6826b70f] from 1
active references
09:47:04.287 [main] INFO ch.elexis.core.utils.OsgiServiceUtil - Release
active service
[ch.elexis.core.services.internal.RoleBasedAccessControlService@5e65afb6]
from 0 active references
09:47:04.287 [main] INFO ch.elexis.core.utils.OsgiServiceUtil - Release
not active service
[ch.elexis.data.PersistentObjectDataSourceActivator@50f4b83d] from 0
active references
09:47:08.665 [main] WARN c.e.c.s.i.RoleBasedAccessControlService - No
role acl [executive_doctor] file
09:47:08.665 [main] WARN c.e.c.s.i.RoleBasedAccessControlService - No
role acl [user_external] file
09:47:08.665 [main] WARN c.e.c.s.i.RoleBasedAccessControlService - No
role acl [doctor] file
09:47:08.671 [main] INFO c.e.c.s.i.RoleBasedAccessControlService - ACE
User=[gerry] Roles=[[user]]
09:47:08.958 [Equinox Log Thread - Equinox Container:
0445fe75-675f-4800-9767-bc3f2b163a70] ERROR OSGI -
[org.eclipse.e4.ui.workbench] Fragment from
platform:/plugin/ch.elexis.core.ui.tasks of ch.elexis.core.ui.tasks
could not be validated and was not merged:
org.eclipse.e4.ui.model.fragment.impl.StringModelFragmentImpl@3eee08f5
(featurename: snippets, parentElementId: xpath:/, positionInList: null)
09:47:09.065 [main] WARN PLATFORM - [org.eclipse.core.runtime] Warnings
while processing command images from persisted state
09:47:09.065 [Equinox Log Thread - Equinox Container:
0445fe75-675f-4800-9767-bc3f2b163a70] WARN OSGI -
[org.eclipse.ui.workbench] Warnings while processing command images from
persisted state
09:47:09.531 [main] INFO c.e.c.model.service.CoreModelService - (ACL
1721461629531) User has no right [READ] for class
[ch.elexis.core.model.IStock]
09:47:10.249 [EventAdmin Async Event Dispatcher Thread] INFO
c.e.c.u.c.UiStartupHandler - APPLICATION STARTUP COMPLETE
09:47:10.252 [EventAdmin Async Event Dispatcher Thread] INFO
ch.elexis.core.ui.e4.util.CoreUiUtil - APPLICATION STARTUP COMPLETE
09:47:10.254 [EventAdmin Async Event Dispatcher Thread] INFO
c.e.core.ui.startup.StartupHandler - APPLICATION STARTUP COMPLETE
09:47:10.255 [EventAdmin Async Event Dispatcher Thread] INFO
c.e.c.u.s.internal.ContextService - APPLICATION STARTUP COMPLETE
org.eclipse.e4.legacy.ide.application=org.eclipse.e4.ui.model.application.impl.ApplicationImpl@d85b399
(tags: [activeSchemeId:ch.elexis.ui.keybindingScheme], contributorURI:
platform:/plugin/org.eclipse.ui.workbench) (widget: null, renderer:
null, toBeRendered: true, onTop: false, visible: true, containerData:
null, accessibilityPhrase: null) (context: WorkbenchContext, variables:
null)
09:47:10.256 [EventAdmin Async Event Dispatcher Thread] INFO
c.e.c.u.s.internal.ContextService - SET APPLICATION CONTEXT WorkbenchContext
09:47:10.629 [main] INFO c.e.c.u.p.AccessControlUiEventHandler - UPDATE
MODEL
org.eclipse.e4.legacy.ide.application=org.eclipse.e4.ui.model.application.impl.ApplicationImpl@d85b399
(tags: [activeSchemeId:ch.elexis.ui.keybindingScheme], contributorURI:
platform:/plugin/org.eclipse.ui.workbench) (widget: null, renderer:
null, toBeRendered: true, onTop: false, visible: true, containerData:
null, accessibilityPhrase: null) (context: WorkbenchContext, variables:
null) / org.eclipse.e4.ui.internal.workbench.ModelServiceImpl@1410d645
09:47:20.226 [Framework stop - Equinox Container:
0445fe75-675f-4800-9767-bc3f2b163a70] INFO
c.e.c.s.h.StockCommissioningServiceHolder - Unsetting
ch.elexis.core.services.StockCommissioningSystemService@1a7cb3a4
09:47:20.227 [Framework stop - Equinox Container:
0445fe75-675f-4800-9767-bc3f2b163a70] INFO
c.e.c.s.ReferenceDataImporterService - Removed IReferenceDataImporter
[ch.elexis.core.findings.util.importer.FhirBundleReferenceDataImporter@64aa3ecc]
09:47:20.241 [Framework stop - Equinox Container:
0445fe75-675f-4800-9767-bc3f2b163a70] INFO
c.e.c.u.s.internal.ContextService - DEACTIVATE
09:47:20.251 [Framework stop - Equinox Container:
0445fe75-675f-4800-9767-bc3f2b163a70] INFO
c.e.c.u.s.internal.ContextService - ACTIVATE
09:47:20.286 [Framework stop - Equinox Container:
0445fe75-675f-4800-9767-bc3f2b163a70] INFO
c.e.c.j.l.LiquibaseDBInitializer - Synchronize liquibase log of database
[PoolGuardConnectionWrapper [373806750,
URL=jdbc:mysql://192.168.0.36:3312/elexiscopy?autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Europe/Zurich,
MySQL Connector/J]]
09:47:20.383 [Framework stop - Equinox Container:
0445fe75-675f-4800-9767-bc3f2b163a70] INFO
c.e.c.j.liquibase.LiquibaseDBUpdater - Updating database
[PoolGuardConnectionWrapper [1614028996,
URL=jdbc:mysql://192.168.0.36:3312/elexiscopy?autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Europe/Zurich,
MySQL Connector/J]] with liquibase
09:47:20.774 [Framework stop - Equinox Container:
0445fe75-675f-4800-9767-bc3f2b163a70] INFO
c.e.c.s.h.StockCommissioningServiceHolder - Setting
ch.elexis.core.services.StockCommissioningSystemService@2e30423d
09:47:20.785 [Framework stop - Equinox Container:
0445fe75-675f-4800-9767-bc3f2b163a70] INFO
c.e.c.t.i.service.TaskServiceImpl - Binding
ch.elexis.core.importer.div.tasks.internal.HL7ImporterIdentifiedRunnableFactory
09:47:20.789 [Framework stop - Equinox Container:
0445fe75-675f-4800-9767-bc3f2b163a70] INFO
c.e.c.t.i.service.TaskServiceImpl - Binding
ch.elexis.core.mail.internal.MailClientRunnableFactory
09:47:20.793 [Framework stop - Equinox Container:
0445fe75-675f-4800-9767-bc3f2b163a70] INFO
c.e.c.t.i.service.TaskServiceImpl - Binding
ch.elexis.core.tasks.internal.service.IdentifiedRunnableFactoryImpl
09:47:20.809 [Framework stop - Equinox Container:
0445fe75-675f-4800-9767-bc3f2b163a70] INFO
c.e.c.s.h.StockCommissioningServiceHolder - Unsetting
ch.elexis.core.services.StockCommissioningSystemService@2e30423d
09:47:20.810 [Framework stop - Equinox Container:
0445fe75-675f-4800-9767-bc3f2b163a70] INFO
c.e.c.s.ReferenceDataImporterService - Removed IReferenceDataImporter
[ch.elexis.core.findings.util.importer.FhirBundleReferenceDataImporter@70aa6121]
09:47:20.817 [Framework stop - Equinox Container:
0445fe75-675f-4800-9767-bc3f2b163a70] INFO
c.e.c.u.s.internal.ContextService - DEACTIVATE
09:47:20.820 [Framework stop - Equinox Container:
0445fe75-675f-4800-9767-bc3f2b163a70] INFO XID - Disconnected
------------
So it doesn't seem to find the acl files. But where should they be?
Probably, something goes wrong with the database update (On every launch
it gives an "updating" message). Is there somewhere a log file where the
database updater writes its results?
have a nice weekend,
Gerry
On 19.07.24 16:33, Gerry Weirich wrote:
> Hi all
>
> I'm trying to follow this post:
>
> https://sourceforge.net/p/elexis/mailman/message/37883402/
>
> In earlier versions of my database, I had admin access (and the roles
> executive_doctor, doctor and user). After updating to elexis 3.12, I
> am without any rights to see anything.
>
> By hacking RoleBasedAccess#isPrivileged() into returning true, I am
> able to open the "Gruppen und Rechte -> Benutzerverwaltung" page.
>
> But what then? Whatever role I attribute for myself, I have never any
> rights to see anything when isPrivileged() is returned to its original
> state.
>
> So how can I connect my user account to one of the json files here
> https://github.com/elexis/elexis-3-core/tree/master/bundles/ch.elexis.core/rsc/acl
> ?
>
> BTW: How can I set System.property TEST_ MODE to true? setting
> -DTEST_MODE=true in the launch configuration doesn't seem to do that.
>
> Thanks for help
>
> Gerry
>
>
|