I get “permission denied” when trying to upload via a password protected upload link. I get to the right page, press “Upload>”, choose a file and then the message “Permission denied” appears. Do you have an idea how I can debug this behavior?
Can confirm here as well.
Seafile 8.0.2 (upgraded fromm 7.1.5) - Debian 11, Python 3.9
XHR GET https://<url>/seafile/api/v2.1/upload-links/bcd901afd4d345c088d3/upload/
HTTP/2 403 Forbidden
error_msg "Upload link bcd901afd4d345c088d3 is encrypted."
Upload shares without password protection work fine.
An error is raised from seahub/api2/endpoints/upload_links.py: “Upload link […] is encrypted.”
The check in line 324 (uls.is_encrypted) seems to be wrong, because is_enrypted is true, if the upload link is protected by a password.
The comment on line 323 “currently not support encrypted upload link” implies, that “is_encrypted” should check an upload link for an encrypted repo.
# currently not support encrypted upload link
# if uls.is_encrypted():
# error_msg = 'Upload link %s is encrypted.' % token
# return api_error(status.HTTP_403_FORBIDDEN, error_msg)
Commenting out lines 324-326 leads to working upload links. I am not sure, if this has any side effects.
# currently not support encrypted upload link
# if uls.is_encrypted():
# error_msg = 'Upload link %s is encrypted.' % token
# return api_error(status.HTTP_403_FORBIDDEN, error_msg)
@daniel.pan above you wrote it will be fixed soon 3 days after 8.0.3 was published. Thats still the latest release, correct? Also above, Semmelbroesel24 stated it’s the same problem on 8.0.3
I can’t verify it myself currently as we’re waiting for that fix before upgrading