nih-cfde / cfde-deriva

Collaboration point for miscellaneous CFDE-deriva scripts
Other
2 stars 3 forks source link

Caching bug when group memberships change #393

Closed karlcz closed 1 year ago

karlcz commented 1 year ago

We detected a bug in the ermrest service (see https://github.com/informatics-isi-edu/ermrest/issues/250) which can cause inconsistent results in the portal UI when a user has visited restricted pages and then changes their Globus group memberships. Their browser may cache some earlier server responses and not properly reflect their latest privileges.

A specific case we saw was when a user joined their DCC's approvers group, but the UI still did not show the expected edit controls for their DCC's submissions. Visiting in a private browser session and/or clearing their browser cache is a workaround to get the expected UI response.

A proper fix in ermrest should cause the browser to invalidate the stale cached response values and update with the latest from the server.

karlcz commented 1 year ago

This change has been committed in the latest ermrest. It is deployed in the dev environment and expected to be included in the next portal software release.