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

Filterable column hidden by security produces exception #3079

Closed
Flaurite opened this issue Apr 2, 2024 · 1 comment
Closed

Filterable column hidden by security produces exception #3079

Flaurite opened this issue Apr 2, 2024 · 1 comment
Assignees
Labels
in: flowui size: S state: can't reproduce Cannot reproduce the problem type: bug Something isn't working

Comments

@Flaurite
Copy link
Contributor

Flaurite commented Apr 2, 2024

Environment

Jmix version: 2.2.1

Bug Description

See support forum: topic.

Steps To Reproduce

  1. In user-list-view.xml make lastName column filterable:
<column property="lastName" filterable="true"/>
  1. Create role with User read access and enable all properties excluding lastName
  2. Assign role to an user and log in.
  3. Open Users view

Current Behavior

java.lang.IllegalArgumentException: Cannot find a cell from this row that would correspond to the given column
	at com.vaadin.flow.component.grid.AbstractRow.lambda$getCellFor$4(AbstractRow.java:201)
	at java.base/java.util.Optional.orElseGet(Optional.java:364)
	at com.vaadin.flow.component.grid.AbstractRow.getCellFor(AbstractRow.java:195)
	at com.vaadin.flow.component.grid.AbstractRow.getCell(AbstractRow.java:190)
	at com.vaadin.flow.component.grid.HeaderRow.getCell(HeaderRow.java:34)
	at com.vaadin.flow.component.grid.Grid$Column.setHeader(Grid.java:942)
	at io.jmix.flowui.component.grid.DataGridColumn.setFilterable(DataGridColumn.java:65)
	at io.jmix.flowui.xml.layout.loader.component.AbstractGridLoader.lambda$loadData$1(AbstractGridLoader.java:161)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at io.jmix.flowui.xml.layout.loader.component.AbstractGridLoader.loadData(AbstractGridLoader.java:161)
	at io.jmix.flowui.xml.layout.loader.component.AbstractGridLoader.loadComponent(AbstractGridLoader.java:126)
	at io.jmix.flowui.xml.layout.loader.container.AbstractContainerLoader.loadSubComponents(AbstractContainerLoader.java:37)
	at io.jmix.flowui.xml.layout.loader.container.AbstractContainerLoader.loadSubComponentsAndExpand(AbstractContainerLoader.java:74)
	at io.jmix.flowui.xml.layout.loader.ViewLoader.loadComponent(ViewLoader.java:75)
	at io.jmix.flowui.sys.ViewSupport.loadWindowFromXml(ViewSupport.java:447)
	at io.jmix.flowui.sys.ViewSupport.initView(ViewSupport.java:122)
	at io.jmix.flowui.sys.vaadin.JmixSpringInstantiator.init(JmixSpringInstantiator.java:65)
	at io.jmix.flowui.sys.vaadin.JmixSpringInstantiator.getOrCreate(JmixSpringInstantiator.java:58)
@Flaurite Flaurite added type: bug Something isn't working triage Issue is waiting for triage labels Apr 2, 2024
@gorbunkov gorbunkov added in: flowui size: S and removed triage Issue is waiting for triage labels Apr 5, 2024
@KremnevDmitry
Copy link
Contributor

Can't be reproduced on 2.2.999-SNAPSHOT

Should be fixed with #3038

@KremnevDmitry KremnevDmitry added the state: can't reproduce Cannot reproduce the problem label Apr 16, 2024
@KremnevDmitry KremnevDmitry closed this as not planned Won't fix, can't repro, duplicate, stale Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: flowui size: S state: can't reproduce Cannot reproduce the problem type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants