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.




SVN SC 3.5 Error

add-ons

we have been testing gemini 3.1 and I setup SVN integration on this with no problem.

I upgraded gemini to 3.5 (upgrade went well, no problems) when I performed documented steps to integrate the new svn control (3.5) and do a commit I get this error in debug view:

00000000 0.00000000 [3544] CounterSoft Gemini: Main 00000001 0.00009107 [3544] CounterSoft Gemini: Argument: pre-commit 00000002 0.00151695 [3544] CounterSoft Gemini: Argument: C:\Repositories\R 00000003 0.00160384 [3544] CounterSoft Gemini: Argument: 28-t
00000004 0.00163261 [3544] CounterSoft Gemini: Constructing Service Manager.
00000005 0.01999891 [3544] CounterSoft Gemini: Constructed Service Manager. 00000006 0.02040120 [3544] CounterSoft Gemini: Gemini Username: manager 00000007 0.78465307 [3544] CounterSoft Gemini: Gemini Logged in user: Manager
00000008 0.78786802 [3544] CounterSoft Gemini: PreCommitHandler.Handle Started. 00000009 0.78792387 [3544] CounterSoft Gemini: PreCommitHandler.Handle Path: C:\Repositories\R 00000010 0.78795350 [3544] CounterSoft Gemini: PreCommitHandler.Handle Transaction: 28-t
00000011 0.78820354 [3544] CounterSoft Gemini: End Main 00000012 0.97544575 [1212] CounterSoft Gemini: Main 00000013 0.97628355 [1212] CounterSoft Gemini: Argument: post-commit
00000014 0.97728568 [1212] CounterSoft Gemini: Argument: C:\Repositories\R 00000015 0.97737002 [1212] CounterSoft Gemini: Argument: 29 00000016 0.97762144 [1212] CounterSoft Gemini: Constructing Service Manager.
00000017 0.99610090 [1212] CounterSoft Gemini: Constructed Service Manager. 00000018 0.99618500 [1212] CounterSoft Gemini: Gemini Username: manager 00000019 1.63721895 [1212] CounterSoft Gemini: Gemini Logged in user: Manager
00000020 1.68508649 [1212] CounterSoft Gemini: Issue ID: 113
00000021 1.68513346 [1212] CounterSoft Gemini: Commit Comment: - test commit gemini
00000022 1.68513346 [1212] GEM:113
00000023 1.68535614 [1212] CounterSoft Gemini: Gemini User ID: Manager
00000024 1.76770258 [1212] CounterSoft Gemini: SVN check-in Author: tg 00000025 1.76774561 [1212] CounterSoft Gemini: SVN check-in Repository Path: C:\Repositories\R 00000026 1.76798844 [1212] CounterSoft Gemini: SVN check-in Revision Number: 29 00000027 1.76802194 [1212] CounterSoft Gemini: SVN check-in Committed Files: U ATD/AG/WebRAR/trunk/src/Administrator/Default.aspx
00000028 1.81004906 [1212] CounterSoft Gemini: Empty committed file data?
00000029 2.60605025 [1212] CounterSoft Gemini: Gemini PostCommitHandler.Handle. Exception of type 'CounterSoft.Gemini.Commons.Rest.GeminiRestException' was thrown. :: CounterSoft.Gemini.WebServices :: at CounterSoft.Gemini.WebServices.BaseService.ThrowResponseException(WebResponse response)
00000030 2.60605025 [1212] at CounterSoft.Gemini.WebServices.BaseService.ProcessResponse[T](String url, Object obj, RequestType requestType)
00000031 2.60605025 [1212] at CounterSoft.Gemini.WebServices.IssuesService.CreateComment(Int32 issueId, IssueCommentEN comment)
00000032 2.60605025 [1212] at CounterSoft.Gemini.SourceControl.SVN.PostCommitHandler.Handle(String repositoryPath, Int32 revisionNumber) 00000033 2.60612488 [1212] CounterSoft Gemini: End Main

your help is appreciated.

dnndev
· 1
dnndev
Replies (7)
helpful
0
not helpful

Please make sure that you have configured IIS to accept all verbs as per the installation guide page 18 (section 9.5): http://www.countersoft.com/downloads/v35/docs/GeminiInstallationGuide.pdf


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Saar, Yes, I already have configured IIS to accept all verbs.

Other addons such as desktop client are working just fine.


dnndev
· 1
dnndev
helpful
0
not helpful

Are you commiting an emtpy file? Does the path contain spaces?

Please make sure you download the latest source for the source control adaptors and if you can amend the PostCommitHandler.cs file and change the catch at the end to:

catch (GeminiRestException ex)

{

DiagnosticsManager.TraceException(string.Format("Gemini PostCommitHandler.Handle:{0}\n{1}", ex.Error.Message, ex.Error.Exception.InnerStack), ex);

}


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

1) File is not empty 2) Path does not contain spaces

pending: 3) implementing the trace exception


dnndev
· 1
dnndev
helpful
0
not helpful

Ok, we have found a few issues with the latest release of Gemini and the SVN integration.

To rectify these (until a patch is released):

Add the highlighted after line 144 of the PostCommitHandler:

   sourceControlComment.IssueID = issueID;

   sourceControlComment.ProjectID = Program.GeminiServiceManager.IssuesService.GetIssue(issueID).ProjectID;

   Program.GeminiServiceManager.IssuesService.CreateComment(issueID, sourceControlComment);

Add a try catch block around the create source control file call, line 205:

try

{   

Program.GeminiServiceManager.IssuesService.CreateSourceControlFile(issueID, sourceControlFileLink);

}

catch

{

}


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

[2548] CounterSoft Gemini: SVN check-in Repository Path: C:\Repository
[2548] CounterSoft Gemini: SVN check-in Revision Number: 2423
[2548] CounterSoft Gemini: SVN check-in Committed Files: U   Weldon/Code/PC/VDR/VDRViewer/trunk/com.weldoninc.PC.VDR.Viewer/view/Constants.cs
[2548] CounterSoft Gemini: Empty committed file data?
[2548] CounterSoft Gemini: Empty committed file data?
[2548] CounterSoft Gemini: End Main


After applying the changes Saar suggested, still getting the above "Empty committed file data?" message in the debugging, but it seems to work otherwise.

thanks!
-rj


horatio
· 1
horatio
helpful
0
not helpful

Hi,

[quote user="horatio"]
After applying the changes Saar suggested, still getting the above "Empty committed file data?" message in the debugging, but it seems to work otherwise.
[/quote]

Just add a '.TimEnd()' to line 201 in SvnLookCaller.cs:

string toReturn = svnLook.StandardOutput.ReadToEnd().TrimEnd();

--
Kind regards,
Mathias


tolot27
· 1
tolot27