dataverse-frontend
dataverse-frontend copied to clipboard
Dataset Page and File Page: restricted file(.tab format) cannot be accessed
What steps does it take to reproduce the issue?
When user access to a restricted file
http://localhost:8000/api/v1/files/4/dataTables leads an error {"status":"ERROR","message":"Insufficient permissions to access the requested information."}
http://localhost:8000/api/v1/files/4 is still ok to be fetched
Also, a 404 error is shown fetching http://localhost:8000/spa/files?id=4 due to the error from dataTables, we may need to exclude dataTables api from the file metadata once it's restricted
-
When does this issue occur? When user access to a restricted file without permission
-
Which page(s) does it occur on? Dataset Page, File Page
-
What did you expect to happen?