canvas-lms icon indicating copy to clipboard operation
canvas-lms copied to clipboard

Page error after trying to read a previously deleted file

Open nkokkos opened this issue 12 years ago • 2 comments

I think I have found a bug(?) that produces a page error. How to reproduce this problem:

Log in as a teacher and upload a file for an assignment. Create an assignment and create a link to the file uploaded.

Log in as student, go to the assignment and read the linked file.

Log in as teacher and delete the file from the "Files"

Log in as student, go the assignment and try to read the file again:

That should get you the classic canvas page error:

I have included a stack trace from the production log when the student tried to read the deleted file (_How_to_Read_Scientific_Papers.pdf)

no_file_crasherror

nkokkos avatar Jul 17 '14 09:07 nkokkos

After restarting the server and redis server, I get a better message error: Perhaps, the error was based on cache invalidation. (It does not happen at once).

restart

Furthermore, do we have to restart redis after every admin change we make?

For example, for start a teacher may not create new courses. But the admin of the account may activate the option for teachers to create new courses. Now, if you login as teacher, that option is not available at once but if you restart the redis server, the teacher will eventually see the "Create a New Course" button being available.

Thanks for your help

nkokkos avatar Jul 17 '14 09:07 nkokkos

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 19 '18 19:07 stale[bot]