ORNL / DataFed

A Federated Scientific Data Management System
https://ornl.github.io/DataFed/
Other
18 stars 14 forks source link

Web - Folder page does not reset on close/reopen #690

Closed dvstans closed 3 years ago

dvstans commented 3 years ago

After paging an open allocation folder, closing it should reset the page offset to 0; however, it doesn't. This caused invalid (empty) pages to be shown after records were transferred to another owner.

dvstans commented 3 years ago

This applies to all folders that can page - if a folder is closed/reopened or refreshed, the page number doesn't change and may exceed the length of items in the folder. The fix for this may be for the DB to return the last valid page if the offset isn't valid.

dvstans commented 3 years ago

Closing this issue to open a new one - folders should not reset on close, instead DB should prevent paging past end.