You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to be broken by 44459bbtemplates/share_access_validation.html stops checking whether path is empty and always append a p= parameter, which becomes ?p= when the path is empty.
and it can probably also be fixed from the template as well. Should ?p= be supported? Sumitting a PR for this should be easy but I don't know which one is the proper fix.
P.S. Is there a way to print out the backtrace when an error happens like this? I end up throwing an error in server_error (500 handler) and got the backtrace in error.log. Is there a better way?
Tested on 7.1.1.
The text was updated successfully, but these errors were encountered:
yuyichao
added a commit
to yuyichao/seahub
that referenced
this issue
Feb 14, 2020
This seems to be broken by 44459bb templates/share_access_validation.html stops checking whether
path
is empty and always append ap=
parameter, which becomes?p=
when thepath
is empty.When the request is submitted.
seahub/seahub/views/repo.py
Lines 254 to 255 in 82f16b9
req_path
will be''
(not handled byget
) since it exists, and it caused a OOB error when trying to access the last character.I now fixed this locally by changing the request handler into
and it can probably also be fixed from the template as well. Should
?p=
be supported? Sumitting a PR for this should be easy but I don't know which one is the proper fix.P.S. Is there a way to print out the backtrace when an error happens like this? I end up throwing an error in
server_error
(500 handler) and got the backtrace inerror.log
. Is there a better way?Tested on 7.1.1.
The text was updated successfully, but these errors were encountered: