Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Permission problem with SVN Post-Commit Hook and CreateComment

web-app

Gemini 3.0.4:

I've set up a separate "Subversion" user for the SVN Hook. I want that user to have as little permissions as neccessary. When I log into Gemini interactively I can create comments and add source control files.

When I now use that user with the SVN Hook, I get the following error message:

[668] CounterSoft Gemini: Program. Server was unable to process request. ---> You do not have the privileges to create issues for this project :: System.Web.Services ::    bei System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

It works when I make the user Administrator.

My best guess would be, that this has to do with the PostCommitHandler passing 0 as the ProjectID and the WebService checking permissions before looking up the actual project.

BTW: Constructing a Service Manager takes around 20 seconds on our machines. Is that normal?

Michael Poettgen
· 1
Michael Poettgen
Replies (5)
helpful
0
not helpful

Please make sure that the SVN user can create comments and link source control files.

As for the construction of the service manager, 20 seconds seems too much to us. Does it happen for every creation or just the first time?


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

He has 'Project Administration' permission on the project I was testing with. As I said, it works interactively. Have you looked at the ProjectID=0 thing?

It's around 20 seconds every time. Plus or minus maybe three seconds.


Michael Poettgen
· 1
Michael Poettgen
helpful
0
not helpful

Ok, sorry you are right!

It is an issue with the project id being 0, which will be fixed for 3.1.

You can create a workaround this in the SVN solution by adding the following line to assign the  correct project id:

sourceControlComment.ProjectID = Program.GeminiServiceManager.IssueServices.GetIssue(0, issueID).ProjectID

After setting the issueid.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Was this fixed in version 3.1? I'm running 3.1.0 and experience the same 20 sec delay on the ServiceManager creation.

Thanks,

Chris


ChrisJ
· 1
ChrisJ
helpful
0
not helpful

The issue with the project id should be fixed. As for the sevice manager delay, we couldn't reproduce this. Is your site exposed to the net?


Saar Cohen
· 5000
Saar Cohen