-
Notifications
You must be signed in to change notification settings - Fork 779
repository credentials should be per-project tunable #1946
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Most likely the |
I think it has something to do with authentication.
When I tried to access the URL through my browser it asked for my credentials. But I have already set the Environmental variables as you mentioned before. In the OpenGrok logs it's using them.
Should I do something else to let Tomcat Access the SVN too? |
BTW I was able to download Previous revisions of a particular repo using this command
But I didn't use any authentication parameters (E.g --username, --password) with that. |
Yeah, the webapp needs to be able to access these environment variables in order to authenticate and fetch the history, otherwise it will just run the |
Actually, this could be a dup of #1601. |
Anyhow, the way how the authentication is implemented for SVN repos is wrong. Relying on environment variables makes the setup more complicated (as demonstrated above) and also prevents anyone from using distinct credentials for different SVN repos. They should really be stored as per-project tunable. |
Also, it might be possible to store SVN configuration in configuration directory (http://svnbook.red-bean.com/en/1.7/svn.advanced.confarea.html) along with the username/password however #531 might be needed for that. |
As for setting the environment variables in Tomcat, this is usually done via the |
Lastly, this should be documented somewhere. |
The basis for per-project configuration was delivered in #1693. This is assuming that all repositories in a project share the same authentication. |
@vladak How should I declare the user pass combination inside the setenv.bat file I created the setenv.bat file. |
Dunno, my Windows experience is close to 0. |
@vladak Ohh ok. I'll keep digging. |
Also, it would not hurt if you got the changes for #1950. Or just wait for the next RC. |
@vladak For some reason History and Annotate functions are working properly when you use the Zipped version of Tomcat. (By executing startup.bat) |
No idea. Pls leave this issue only to track the enhancement. Feel free to create new issues for unrelated questions. |
Uh oh!
There was an error while loading. Please reload this page.
Whenever I try to check the revisions of a particular file (Using the History option) It says "Error reading file" (Except for the final Commit/Revision).
I guess it's unable to get those files and because of that I'm unable to use the Annotate option as well. (By unable I mean it literally does nothing.)
This happened with both v1.0 and v1.1-rc17
But when I indexed this repo: https://svn.apache.org/repos/asf/excalibur/trunk/components/datasource/
It worked perfectly fine. Even the Annotate option works.
What can be the cause of this?
Thanks.
The text was updated successfully, but these errors were encountered: