Project

General

Profile

Actions

Defect #2425

closed

Admin cannot edit EAV

Added by Vladimír Kotýnek over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Radek Tomiška
Category:
Cache
Target version:
Start date:
08/04/2020
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

Description

When I log in as administrator, I can see and edit all EAVs of identity and contract.
Then I log out and log in as user who only has right to read limited set of EAVs and open EAV tab of any user and any contract.
Then I log out and log back in as administrator. When I open any EAV form of identity or contract the attributes I could only read as the user I was logged in in previous step are read-only. The rest of them are accessible for write.
Then I log out and log back in as user who can read all EAVs of contract and identity, but can't edit any of them. I open EAV tab of any user and any contract.
Then I log out and log back in as administrator. When I open any EAV form of identity or contract all the EAV attributes are read-only. None of them is accessible for write.
This happens cross browser, cross computer.

When I clear core:form-definition-cache I can edit the attributes as administrator again. Until any user with lower permissions logs in and opens EAV tab.


Related issues

Related to IdStory Identity Manager - Task #2412: Eav: Add cache for read form definitionsClosedRadek Tomiška07/31/2020

Actions
Actions #1

Updated by Radek Tomiška over 3 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Radek Tomiška over 3 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Radek Tomiška to Ondřej Kopr
  • % Done changed from 0 to 90

When cache is used for different logged users, then form definition is modified by logged user permissions. I've added defensive copy of form attribute for cache usage to prevent this modifications.

Commit:
https://github.com/bcvsolutions/CzechIdMng/commit/818856174d01d2bd02f9ccf87d5b2818b82aeb27

Could you provide me a feedback, please?

Actions #3

Updated by Ondřej Kopr over 3 years ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Ondřej Kopr to Radek Tomiška
  • % Done changed from 90 to 100

We made together review and now cache works between more users correctly. Clone attributes helps. Clearing cache isn't needed anymore. Thank you :)

Actions #4

Updated by Radek Tomiška over 3 years ago

  • Status changed from Resolved to Closed
Actions #5

Updated by Radek Tomiška over 3 years ago

  • Related to Task #2412: Eav: Add cache for read form definitions added
Actions

Also available in: Atom PDF