sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.17k stars 216 forks source link

if a user tries to open a project they don't have access to, point them at the share server. #6570

Open williamstein opened 1 year ago

williamstein commented 1 year ago

Long ago, we used to allow viewing public files directly in our frontend single page app via the same URL. That's long gone, and now you just get an error. However, there are cases where people published links to these files, e.g., I'm told that this paper has such links.

Fortunately, given a project, there is a canonical URL for "everything publicly shared from that project" and in the above case it is just this:

https://cocalc.com/share/projects/18c77389-a5c3-49de-946a-7593b53d3fb2

So... we can easily redirect a person to the public version of a project if they aren't a collaborator on a project but somehow end up there.

mattgoldrick commented 1 year ago

Thanks for doing this! Is there any way to recover the images subdirectory? I get an error when clicking on that.

williamstein commented 1 year ago

Thanks for doing this! Is there any way to recover the images subdirectory? I get an error when clicking on that.

There is no directory called "images". There was a directory "tutorial_images", but the author explicitly deleted that 6 years ago and it no longer exists.

williamstein commented 9 months ago

This is very much still an issue, and a confusing one. It's not easy to resolve so removing that tag.