Closed manuGil closed 1 month ago
Thank you @manuGil . Would you like to create/prepare a patch? :-)
Thank you @manuGil . Would you like to create/prepare a patch? :-)
I can make a patch for this particular function. But this probably needs to be check elsewhere as well to be consistent in the way paths are handled.
I can make a patch for this particular function.
That would be great!
Thank you @manuGil! The patch has been applied in b831668fff411db5ace4d8b83bd2e792210b0293
.
Over the next month I'll try to convert the other cases as well.
We noticed that is some parts of
wsgi.py
, paths are treated as strings. This may cause problems when some of the paths contain tailing '/' or not. for example, in___git_create_repository()
, the pathgit_directory
is form by combining two strings separated by a/
https://github.com/4TUResearchData/djehuty/blob/fffe895fa8bdf58e01ba865ae9f0fcfc6c6ab182/src/djehuty/web/wsgi.py#L8016-L8020
A better approach would be something like this: