Following a file or folder link leads to the login screen instead of giving non-user access

I’ve been trying to work this out for a while but I can’t find anything.

If I share a Folder or a File for non users then the links lead to the login page.

Oddly, sharing an upload link works OK and no login is requested.

I’m using Seafile 6.3.4 with Apache and HTTPS. Any thoughts on what could be causing this?

Thanks

I’ve upgraded my Pi to 7.0.4 and I’m still get this problem with shares leading to the login page instead of straight to the folder of photos.

Is anybody able to help me work out where the problem is.

I had some extra share issues initially when I upgraded (like the share button not working) but between clearing caches and removing my old custom.css I got those resolved just to get back to my original problem.

Thanks

Well, I seem to have finally found the solution to this. Seahub_settings.py has …

# force user login when view file/folder share link (since version 6.3.6)
SHARE_LINK_LOGIN_REQUIRED = True

Which presumably wasn’t there when I couldn’t get this to work on my 7.0.4 upgrade. Changing it to

SHARE_LINK_LOGIN_REQUIRED = False

has however got this going. So I don’t know why it didn’t work pre the upgrade but that setting seems to require changing on newer versions.