BugNET

Open source issue tracking & project management

Forums

HomeHomeSupportSupportGeneral SupportGeneral SupportBugNet 8 and SubversionBugNet 8 and Subversion
Previous
 
Next
New Post
12/7/2009 10:17 AM
 
admin wrote:
carlowahlstedt wrote:

The Regex shouldn't be the issue. It's finding it in the log file. Just not making it to BugNET. I might try to fire it up in debug mode and see what I can get to happen.

Directly after the INFO matches log line the code parses the match results to get the issue ids. If it gets past that you should see some more entries in the log file. Getting svn log message and then logging in to bugnet webservices.

This is the only other info it gets:

INFO - Finished IssueTrackerIntegration.UpdateIssueTrackerFromRevision

 
New Post
12/7/2009 10:23 AM
 
carlowahlstedt wrote:
admin wrote:
carlowahlstedt wrote:

The Regex shouldn't be the issue. It's finding it in the log file. Just not making it to BugNET. I might try to fire it up in debug mode and see what I can get to happen.

Directly after the INFO matches log line the code parses the match results to get the issue ids. If it gets past that you should see some more entries in the log file. Getting svn log message and then logging in to bugnet webservices.

This is the only other info it gets:

INFO - Finished IssueTrackerIntegration.UpdateIssueTrackerFromRevision

The issue id is not being parsed properly from the matched result then.

while (MatchResults.Success)
{
try
{
issueIds.Add(int.Parse(MatchResults.Groups[1].Value.Substring(MatchResults.Groups[1].Value.IndexOf("-") + 1)));
MatchResults = MatchResults.NextMatch();
}
catch(Exception ex)
{
logger.ErrorFormat("An error occurred parsing the issue id: {0} \n\n {1}", ex.Message, ex.StackTrace);
}
}

Probably best to run it in debug and try to find out why.


Davin Dubeau

follow us on twitter facebook users group google plus
 
New Post
12/7/2009 11:04 AM
 

Regex is wrong. It should be:

"\\[?([A-Za-z]{1,3}-\\d+)\\]?.+"

So that it will accept 1 to 3 characters as the short name for the project.

 
New Post
12/8/2009 5:47 AM
 
carlowahlstedt wrote:

Regex is wrong. It should be:

"\\[?([A-Za-z]{1,3}-\\d+)\\]?.+"

So that it will accept 1 to 3 characters as the short name for the project.

I will move it to the config file so that it can easily changed. Also it should allow for project codes of up to 50 characters I believe they can be now.


Davin Dubeau

follow us on twitter facebook users group google plus
 
New Post
12/8/2009 5:49 AM
 
admin wrote:
carlowahlstedt wrote:

Regex is wrong. It should be:

"\\[?([A-Za-z]{1,3}-\\d+)\\]?.+"

So that it will accept 1 to 3 characters as the short name for the project.

I will move it to the config file so that it can easily changed. Also it should allow for project codes of up to 50 characters I believe they can be now.

Cool. I didn't even know that had been changed to that. Once I found the issue, I just updated the Regex to suppored of the old of 1-3 characters.

 
Previous
 
Next
HomeHomeSupportSupportGeneral SupportGeneral SupportBugNet 8 and SubversionBugNet 8 and Subversion


Forum Policy

These Discussion Forums are dedicated to the discussion of the BugNET issue tracker.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:
1. No Advertising.
2. No Flaming or Trolling.
3. No Profanity, Racism, or Prejudice.
4. Site Moderators have the final word on approving/removing a thread or post or comment.
5. English language posting only, please.