Closed paulsputer closed 8 years ago
Currently investigating if this is caused by using a later version of Git-LFS (v1.1.0) or something else.
Not caused by later version of Git-LFS. LFS commands work fine on debug installation. Main difference is debug uses localAuth where as production uses LDAP auth. However, exception would imply that repositoryModel passed to userModel is null.
Production server runs via reverse proxy and reroutes URI traffic /git to gitblit. However the Regex to identify the repository is ^(.*?)/(r|git)/(.*?)/info/lfs/objects/(batch"
and therefore assumes the r/ is part of the repository path.
@gitblit I used both r
(Constants.R_PATH
) and git
(Constants.GIT_PATH
) in the regex as I noticed WebModule.java serves on both. Searching the code though it looks as though the git
path is a legacy value and all other places (FederationManager
, ServicesManager
,RpcServlet
, TicketNotifier
) use only r
. Is this correct? Either it looks like I am safe to remove the git
option from the regex so will push a PR to fix this.
/git/
is a legacy path but an important one to preserve.
Thanks, merged in https://github.com/gitblit/gitblit/pull/969
Git LFS failed to push and returned server error. Gitblit logs show exception occurs: