tables icon indicating copy to clipboard operation
tables copied to clipboard

Shared view from empty table does not show for sharees

Open enjeck opened this issue 6 months ago • 2 comments

Steps to reproduce

  1. Create a table and add columns
  2. Do not add any rows
  3. Create a view from the table. While creating the view, add a new filter with setting: Creator -> Is equal -> Me (user ID)
  4. Share the view

Expected behavior

The shared view is not visible in the list of views for the sharee

Actual behavior

The view should show

Tables app version

No response

Browser

No response

Client operating system

No response

Operating system

No response

Web server

None

PHP engine version

None

Database

None

Additional info

No response

enjeck avatar Aug 11 '25 04:08 enjeck

Hi @enjeck, I think filters on meta-columns (IDs -1 to -5) are currently causing issues.

This could be related to the change in line 316 in this recent commit: https://github.com/nextcloud/tables/pull/1866/commits/12638a8054aba27a3d8f1e0763636dd26ddc2fac#diff-4cfcdf93ee32c8ecd9188d2b8cb6e58fd1089c1dbe0d0f4c41ad324ec42e18bcR316

The function replacePlaceholderValues() now also calls $this->columnMapper->find() on the negative meta-column IDs, triggering a ā€œdid expect one result but found noneā€ query error in my quick test, causing tables and views not to load.

benjaminfrueh avatar Aug 11 '25 14:08 benjaminfrueh

Hi @enjeck, I think filters on meta-columns (IDs -1 to -5) are currently causing issues.

This could be related to the change in line 316 in this recent commit: 12638a8#diff-4cfcdf93ee32c8ecd9188d2b8cb6e58fd1089c1dbe0d0f4c41ad324ec42e18bcR316

The function replacePlaceholderValues() now also calls $this->columnMapper->find() on the negative meta-column IDs, triggering a ā€œdid expect one result but found noneā€ query error in my quick test, causing tables and views not to load.

Thanks for checking!

enjeck avatar Aug 12 '25 04:08 enjeck