engine-deprecated icon indicating copy to clipboard operation
engine-deprecated copied to clipboard

Gitbase does not load repositories for a workdir with unauthorized sub-dirs

Open smacker opened this issue 7 years ago • 3 comments

If I use path C:\Users\Windows10\Documents for keeping my repositories engine always returns 0 results for any sql query.

Please check details here: https://github.com/src-d/empathy-sessions/issues/35

smacker avatar Mar 04 '19 16:03 smacker

Copying here relevant screenshots and comments from https://github.com/src-d/empathy-sessions/issues/35:

@smacker I did some very quick tests. I remembered that I tried with a repo in C:\Users\Windows10\go\src\github.com\src-d\engine. And by initializing engine C:\Users\Windows10\go it actually works as expected (both CLI and web), but it doesn't if engine is initialized with C:\Users\Windows:

screenshot 2019-03-04 at 13 18 14

Similarly happens by initializing engine with C:\Users\Windows\Documents. So it seems that it misbehaves depending on the workdir. At a glance, I don't see any particular pattern though.

In both cases the directory is correctly mounted. Shouldn't gitbase be able to find it anyway?

screenshot 2019-03-04 at 14 02 46

se7entyse7en avatar Mar 05 '19 11:03 se7entyse7en

This is what happened on gitbase. The path seems to be correctly mounted as it is possible to see the repo in the mounted path, but then the path cannot be inspected.

screenshot 2019-03-05 at 13 10 33

se7entyse7en avatar Mar 05 '19 12:03 se7entyse7en

This should be fixed once https://github.com/src-d/gitbase/issues/718 is closed.

se7entyse7en avatar Mar 05 '19 16:03 se7entyse7en