core-geonetwork icon indicating copy to clipboard operation
core-geonetwork copied to clipboard

Create metadata error when using subportals

Open josegar74 opened this issue 7 months ago • 1 comments

Describe the bug

When creating metadata from a subportals an error can be reported depending on the portal filter:

create-metadata-subportal

To Reproduce Steps to reproduce the behavior:

  1. Create groups: groupA, groupB
  2. Create users: editorA (Editor in the groupA), editorB (Editor in the groupB)
  3. Create subportals: portalA with filter: groupPublishedId:100 (use the ID of the groupA), portalB with filter: groupPublishedId:101 (use the ID of the groupB)
  4. Load the iso19139 templates and assign them the view privilege to groupA and groupB
  5. With editorA, go to portalA and create a metadata --> OK
  6. With editorA, go to portalB and create a metadata --> An error is displayed. As userA is editor in groupA, the metadata is published to groupA, but the portalB is filtering metadata published to groupB only, causing the error.

Expected behavior

Subportals probably should be disabled for the Editor / Administration modules.

josegar74 avatar Jul 10 '24 06:07 josegar74