FlowUI 1.5.0: sessionAttribute read error by specific user

What is the user access required to let user read session attribute?

I am getting the following exception when the user doesn’t have full-access.

java.lang.IllegalStateException: No results
	at io.jmix.core.FluentLoader$ById.one(FluentLoader.java:284)
	at com.myapp.crm.view.salesopportunity.SalesOpportunityDetailView.onBeforeShow(SalesOpportunityDetailView.java:67)
	at com.vaadin.flow.component.ComponentEventBus.fireEventForListener(ComponentEventBus.java:233)
	at com.vaadin.flow.component.ComponentEventBus.fireEvent(ComponentEventBus.java:222)
	at com.vaadin.flow.component.Component.fireEvent(Component.java:394)
	at io.jmix.flowui.view.View.beforeEnter(View.java:101)
	at io.jmix.flowui.view.StandardDetailView.beforeEnter(StandardDetailView.java:157)

Here is where the above exception is coming from:

 UUID id = (UUID) sessionData.getAttribute("companyId");

Apart from access to the view/entity roles, this user has access to “flowui-minimal”, “flowui-filter”. “datatools-entity-info” roles. What role is missing so it is unable to read session data?

HI,

I face no problem accessing Session attributes with flowui-minimal role. If something doesn’t work, please attach a small demo project that reproduces the problem.

Regards,
Gleb

Thank you Gleb. I am trying this in a composite FlowUI project, did you try that?

If something doesn’t work, especially with specific cases, please attach a small demo project that reproduces the problem.

Regards,
Gleb