The application does not send mails, in the log contained the following, which can be?
[15/01/2008 14:20:06] *************************
[15/01/2008 14:20:06] Staring process for Revision 28 [E:/SVNRepositories/FiscalNET]
[15/01/2008 14:20:06] Configuration file deserialized
[15/01/2008 14:20:07] Commit Paths: FuentesNET/MPF/
[15/01/2008 14:20:07] Passed Folder Name Exclusion test.
[15/01/2008 14:20:07] Passed File Type Exclusion test.
[15/01/2008 14:20:07] Checking for FileType Requirements complete. Not Required.
[15/01/2008 14:20:07] *************************
[15/01/2008 14:20:07] Staring process for Revision 71 [E:/SVNRepositories/FiscalNET]
[15/01/2008 14:20:08] Configuration file deserialized
[15/01/2008 14:20:08] Getting e-mail address for lperalta@mpf.gov.ar from mpf.gov.ar
[15/01/2008 14:20:08] Found e-mail address for lperalta@mpf.gov.ar:
[15/01/2008 14:20:08] HTML Message Generated
[15/01/2008 14:20:08] Getting e-mail address for lperalta@mpf.gov.ar from mpf.gov.ar
[15/01/2008 14:20:08] Found e-mail address for lperalta@mpf.gov.ar:
[15/01/2008 14:20:08] Generating e-mail message
[15/01/2008 14:20:08] Write to log...
[15/01/2008 14:20:08] HTML file written to E:\SVNRepositories\FiscalNET\hooks\log\Revision 71.html
[15/01/2008 14:20:08] Finished processing Revision 71
=====================================================================================
The configuration file is:
==========================
<?xml version="1.0" standalone="yes"?>
<subversionNotifyConfig xmlns="http://www.mckechney.com/SubversionNotifyConfig.xsd">
<SVNConfig ExePath="E:\Subversion\bin\svnlook.exe"/>
<MailServer Name="tango.mpf.gov.ar" Username="lperalta" Password="xxxxxxx" ADGlobalCatalog="mpf.gov.ar" FromAddress="lperalta@mpf.gov.ar"/>
<ReproPathConfig controlledPaths="E:\SVNRepositories\FiscalNET\">
<MailTo EMailAddress="leandroperalta@gmail.com" EMailType="HTML" EMailSuppressionChar="~"/>
<DefaultLogMessage Text="#user# has decided not to add a log message. Don't worry, severe punishment will be administered in short order."/>
<CommitRequirements FailureMessage="A Bug/Enhancement number was not specified.\nPlease add [Bug ###] or other required tag to the commit message">
<CommitRequirement Description="Bug Number" Regex="\[b?u?g? ?#?([0-9]+(?:\s*,?\s*[0-9]+)*)\]"/>
<!-- Use the secondary Regex to further enforce commit message requirements-->
<CommitRequirement Description="Merge" Regex="\[merge\]" SecondaryRegex="(http://|svn://|https://).+r\d+.to.r\d+" SecondaryRegexFailureMsg="A merge requires both the source path and revision numbers specified\n(ex: " [merge] Merging http://myserver.com/repro/branch from r30 to r31 ")"/>
<CommitRequirement Description="Retiring Branch" Regex="\[Retiring Branch\]"/>
<CommitRequirement Description="Renaming Branch" Regex="\[Renaming Branch\]"/>
<CommitRequirement Description="New Branch" Regex="\[New Branch\]"/>
<!-- Use as a check so that certain file types can't be "accidentally" committed-->
<FileTypeTagCheck Description="Resx Files" Regex="\[Add Resx File\]" FailureMessage="When committing .resx files, you must specify a [Add Resx File] tag.\nIf no meaningful changes we made, please Revert the file." FileExtension=".resx"/>
<!-- Set values to exclude file types. Rexex setting takes precedence over FileExtension-->
<FileTypeExclusion Description="User Files" FileExtension=".user"/>
<FileTypeExclusion Description="Personal Solution Files" FileExtension=".suo"/>
<FileTypeExclusion Description="Source Safe ControlFiles" FileExtension=".scc"/>
<FileTypeExclusion Description="Temporary Files" FileNameRegex="\w*\.~\w*" FailureMessage="Commits of history/backup files of the format 'name.~ext' are not allowed."/>
<!-- If you want to make sure certain folders are not added to the repository...-->
<FolderNameExclusion Description="History folder" FolderName="bin"/>
<FolderNameExclusion Description="History folder" FolderName="obj"/>
</CommitRequirements>
<Bugzilla XmlReturnURL="http://mydomain.com/bugzilla/show_bug.cgi?id={0}&ctype=xml" BugLinkURL="http://mydomain.com/bugzilla/show_bug.cgi?id={0}" BugRegex="\[b?u?g? ?#?([0-9]+(?:\s*,?\s*[0-9]+)*)\]">
<AllowedProducts>
<AllowedProduct Name="ProductOne"/>
</AllowedProducts>
<DisallowedStatuses>
<DisallowedStatus Name="CLOSED" ReproPathException="Test"/>
<DisallowedStatus Name="RESOLVED" ReproPathException=""/>
</DisallowedStatuses>
<LockedBugs>
<Bug BugId="1000"/>
<Bug BugId="1002"/>
<Bug BugId="1002"/>
</LockedBugs>
</Bugzilla>
</ReproPathConfig>
<ReproPathConfig controlledPaths="/PathTwo">
<Execute Application="PathTwo.bat" CommandLine="#revision# #name# #controlledpaths#"/>
</ReproPathConfig>
<LockedPaths>
<LockedPath ReproPath="ProductTwo"/>
</LockedPaths>
<PrePropChangeRequirements FailureMessage="A revision comment may only be changed if it includes a Bug/Enhancement number. Please add [Bug ###] to the changed message.">
<PrePropChangeRequirement Description="Bug Number" Regex="\[b?u?g? ?#?([0-9]+(?:\s*,?\s*[0-9]+)*)\]" IsBugMatch="true"/>
</PrePropChangeRequirements>
<!-- Use when your Subversion IDs to not match your AD ID's so that you can retrieve e-mail address from AD-->
<UserMappings>
<UserMapping ActiveDirectoryID="lperalta@mpf.gov.ar" SvnID="MPF\lperalta"/>
</UserMappings>
</subversionNotifyConfig>
Best Regard.
Leandro Peralta
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Leandro,
While I'm not entirely certain, it would guess it's because of the ActiveDirectoryID attribute value in the UserMapping element. This setting should only have the ID "lperalta" and not the fully qualified address with the "@" as you have designated it. Try making that change and let me know if it works for you.
Thanks,
Mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Now the .Cfg well but I am still not send the mail, the message log remains the same, look at whether there may be something wrong with it .Cfg, I am using the same mail server from another application in asp.net and mails well sends.
<?xml version="1.0" standalone="yes"?>
<subversionNotifyConfig xmlns="http://www.mckechney.com/SubversionNotifyConfig.xsd">
<SVNConfig ExePath="E:\Subversion\bin\svnlook.exe"/>
<MailServer Name="polca.mpf.gov.ar" Username="lperalta" Password="bql34312" ADGlobalCatalog="mpf.gov.ar" FromAddress="lperalta@mpf.gov.ar"/>
<ReproPathConfig controlledPaths="/FiscalNET">
<MailTo EMailAddress="leandroperalta@gmail.com" EMailType="HTML" EMailSuppressionChar="~"/>
<DefaultLogMessage Text="#user# has decided not to add a log message. Don't worry, severe punishment will be administered in short order."/>
<CommitRequirements FailureMessage="A Bug/Enhancement number was not specified.\nPlease add [Bug ###] or other required tag to the commit message">
<!-- CommitRequirement Description="Bug Number" Regex="\[b?u?g? ?#?([0-9]+(?:\s*,?\s*[0-9]+)*)\]"/ -->
<!-- Use the secondary Regex to further enforce commit message requirements-->
<!-- CommitRequirement Description="Merge" Regex="\[merge\]" SecondaryRegex="(http://|svn://|https://).+r\d+.to.r\d+" SecondaryRegexFailureMsg="A merge requires both the source path and revision numbers specified\n(ex: " [merge] Merging http://myserver.com/repro/branch from r30 to r31 ")"/-->
<!-- CommitRequirement Description="Retiring Branch" Regex="\[Retiring Branch\]"/-->
<!-- CommitRequirement Description="Renaming Branch" Regex="\[Renaming Branch\]"/-->
<!-- CommitRequirement Description="New Branch" Regex="\[New Branch\]"/-->
<!-- Use as a check so that certain file types can't be "accidentally" committed-->
<FileTypeTagCheck Description="Resx Files" Regex="\[Add Resx File\]" FailureMessage="When committing .resx files, you must specify a [Add Resx File] tag.\nIf no meaningful changes we made, please Revert the file." FileExtension=".resx"/>
<!-- Set values to exclude file types. Rexex setting takes precedence over FileExtension-->
<FileTypeExclusion Description="User Files" FileExtension=".user"/>
<FileTypeExclusion Description="Personal Solution Files" FileExtension=".suo"/>
<FileTypeExclusion Description="Source Safe ControlFiles" FileExtension=".scc"/>
<FileTypeExclusion Description="Temporary Files" FileNameRegex="\w*\.~\w*" FailureMessage="Commits of history/backup files of the format 'name.~ext' are not allowed."/>
<!-- If you want to make sure certain folders are not added to the repository...-->
<FolderNameExclusion Description="History folder" FolderName="bin"/>
<FolderNameExclusion Description="History folder" FolderName="obj"/>
</CommitRequirements>
<Bugzilla XmlReturnURL="http://mydomain.com/bugzilla/show_bug.cgi?id={0}&ctype=xml" BugLinkURL="http://mydomain.com/bugzilla/show_bug.cgi?id={0}" BugRegex="\[b?u?g? ?#?([0-9]+(?:\s*,?\s*[0-9]+)*)\]">
<AllowedProducts>
<AllowedProduct Name="ProductOne"/>
</AllowedProducts>
<DisallowedStatuses>
<DisallowedStatus Name="CLOSED" ReproPathException="Test"/>
<DisallowedStatus Name="RESOLVED" ReproPathException=""/>
</DisallowedStatuses>
<LockedBugs>
<Bug BugId="1000"/>
<Bug BugId="1002"/>
<Bug BugId="1002"/>
</LockedBugs>
</Bugzilla>
</ReproPathConfig>
<ReproPathConfig controlledPaths="/PathTwo">
<Execute Application="PathTwo.bat" CommandLine="#revision# #name# #controlledpaths#"/>
</ReproPathConfig>
<LockedPaths>
<LockedPath ReproPath="ProductTwo"/>
</LockedPaths>
<PrePropChangeRequirements FailureMessage="A revision comment may only be changed if it includes a Bug/Enhancement number. Please add [Bug ###] to the changed message.">
<PrePropChangeRequirement Description="Bug Number" Regex="\[b?u?g? ?#?([0-9]+(?:\s*,?\s*[0-9]+)*)\]" IsBugMatch="true"/>
</PrePropChangeRequirements>
<!-- Use when your Subversion IDs to not match your AD ID's so that you can retrieve e-mail address from AD-->
<UserMappings>
<UserMapping ActiveDirectoryID="lperalta" SvnID="MPF\lperalta"/>
</UserMappings>
</subversionNotifyConfig>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Leandro,
There is one additional configuration problem I found. In your ReproPathConfig element, try setting the controlledPaths attribute to just be the root:
<ReproPathConfig controlledPaths="/">
I believe the issue may be that the e-mail generator isn't finding a matching path. The path should map to the portion of the Repro path that you want to control, not the physical path of the repository.
For example, your current setting <ReproPathConfig controlledPaths="/FiscalNET"> means that you are looking to control the /FiscalNET path in your repository that you might access via sample a URL of svn://myrepro.com/FiscalNET. However, when I look at your commit paths in the log message, it is "FuentesNET/MPF/". This path is not "controlled" by the configuration you have set. If you use the root "/", it will control your entire repository.
If this still does not help, please let me know.
(I am working on a newer version that will generate a meaningful log message so it is clearly stated that a controlled path was not found and that is why no e-mail message is getting sent.)
Thanks,
Mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The application does not send mails, in the log contained the following, which can be?
[15/01/2008 14:20:06] *************************
[15/01/2008 14:20:06] Staring process for Revision 28 [E:/SVNRepositories/FiscalNET]
[15/01/2008 14:20:06] Configuration file deserialized
[15/01/2008 14:20:07] Commit Paths: FuentesNET/MPF/
[15/01/2008 14:20:07] Passed Folder Name Exclusion test.
[15/01/2008 14:20:07] Passed File Type Exclusion test.
[15/01/2008 14:20:07] Checking for FileType Requirements complete. Not Required.
[15/01/2008 14:20:07] *************************
[15/01/2008 14:20:07] Staring process for Revision 71 [E:/SVNRepositories/FiscalNET]
[15/01/2008 14:20:08] Configuration file deserialized
[15/01/2008 14:20:08] Getting e-mail address for lperalta@mpf.gov.ar from mpf.gov.ar
[15/01/2008 14:20:08] Found e-mail address for lperalta@mpf.gov.ar:
[15/01/2008 14:20:08] HTML Message Generated
[15/01/2008 14:20:08] Getting e-mail address for lperalta@mpf.gov.ar from mpf.gov.ar
[15/01/2008 14:20:08] Found e-mail address for lperalta@mpf.gov.ar:
[15/01/2008 14:20:08] Generating e-mail message
[15/01/2008 14:20:08] Write to log...
[15/01/2008 14:20:08] HTML file written to E:\SVNRepositories\FiscalNET\hooks\log\Revision 71.html
[15/01/2008 14:20:08] Finished processing Revision 71
=====================================================================================
The configuration file is:
==========================
<?xml version="1.0" standalone="yes"?>
<subversionNotifyConfig xmlns="http://www.mckechney.com/SubversionNotifyConfig.xsd">
<SVNConfig ExePath="E:\Subversion\bin\svnlook.exe"/>
<MailServer Name="tango.mpf.gov.ar" Username="lperalta" Password="xxxxxxx" ADGlobalCatalog="mpf.gov.ar" FromAddress="lperalta@mpf.gov.ar"/>
<ReproPathConfig controlledPaths="E:\SVNRepositories\FiscalNET\">
<MailTo EMailAddress="leandroperalta@gmail.com" EMailType="HTML" EMailSuppressionChar="~"/>
<DefaultLogMessage Text="#user# has decided not to add a log message. Don't worry, severe punishment will be administered in short order."/>
<CommitRequirements FailureMessage="A Bug/Enhancement number was not specified.\nPlease add [Bug ###] or other required tag to the commit message">
<CommitRequirement Description="Bug Number" Regex="\[b?u?g? ?#?([0-9]+(?:\s*,?\s*[0-9]+)*)\]"/>
<!-- Use the secondary Regex to further enforce commit message requirements-->
<CommitRequirement Description="Merge" Regex="\[merge\]" SecondaryRegex="(http://|svn://|https://).+r\d+.to.r\d+" SecondaryRegexFailureMsg="A merge requires both the source path and revision numbers specified\n(ex: " [merge] Merging http://myserver.com/repro/branch from r30 to r31 ")"/>
<CommitRequirement Description="Retiring Branch" Regex="\[Retiring Branch\]"/>
<CommitRequirement Description="Renaming Branch" Regex="\[Renaming Branch\]"/>
<CommitRequirement Description="New Branch" Regex="\[New Branch\]"/>
<!-- Use as a check so that certain file types can't be "accidentally" committed-->
<FileTypeTagCheck Description="Resx Files" Regex="\[Add Resx File\]" FailureMessage="When committing .resx files, you must specify a [Add Resx File] tag.\nIf no meaningful changes we made, please Revert the file." FileExtension=".resx"/>
<!-- Set values to exclude file types. Rexex setting takes precedence over FileExtension-->
<FileTypeExclusion Description="User Files" FileExtension=".user"/>
<FileTypeExclusion Description="Personal Solution Files" FileExtension=".suo"/>
<FileTypeExclusion Description="Source Safe ControlFiles" FileExtension=".scc"/>
<FileTypeExclusion Description="Temporary Files" FileNameRegex="\w*\.~\w*" FailureMessage="Commits of history/backup files of the format 'name.~ext' are not allowed."/>
<!-- If you want to make sure certain folders are not added to the repository...-->
<FolderNameExclusion Description="History folder" FolderName="bin"/>
<FolderNameExclusion Description="History folder" FolderName="obj"/>
</CommitRequirements>
<Bugzilla XmlReturnURL="http://mydomain.com/bugzilla/show_bug.cgi?id={0}&ctype=xml" BugLinkURL="http://mydomain.com/bugzilla/show_bug.cgi?id={0}" BugRegex="\[b?u?g? ?#?([0-9]+(?:\s*,?\s*[0-9]+)*)\]">
<AllowedProducts>
<AllowedProduct Name="ProductOne"/>
</AllowedProducts>
<DisallowedStatuses>
<DisallowedStatus Name="CLOSED" ReproPathException="Test"/>
<DisallowedStatus Name="RESOLVED" ReproPathException=""/>
</DisallowedStatuses>
<LockedBugs>
<Bug BugId="1000"/>
<Bug BugId="1002"/>
<Bug BugId="1002"/>
</LockedBugs>
</Bugzilla>
</ReproPathConfig>
<ReproPathConfig controlledPaths="/PathTwo">
<Execute Application="PathTwo.bat" CommandLine="#revision# #name# #controlledpaths#"/>
</ReproPathConfig>
<LockedPaths>
<LockedPath ReproPath="ProductTwo"/>
</LockedPaths>
<PrePropChangeRequirements FailureMessage="A revision comment may only be changed if it includes a Bug/Enhancement number. Please add [Bug ###] to the changed message.">
<PrePropChangeRequirement Description="Bug Number" Regex="\[b?u?g? ?#?([0-9]+(?:\s*,?\s*[0-9]+)*)\]" IsBugMatch="true"/>
</PrePropChangeRequirements>
<!-- Use when your Subversion IDs to not match your AD ID's so that you can retrieve e-mail address from AD-->
<UserMappings>
<UserMapping ActiveDirectoryID="lperalta@mpf.gov.ar" SvnID="MPF\lperalta"/>
</UserMappings>
</subversionNotifyConfig>
Best Regard.
Leandro Peralta
Leandro,
While I'm not entirely certain, it would guess it's because of the ActiveDirectoryID attribute value in the UserMapping element. This setting should only have the ID "lperalta" and not the fully qualified address with the "@" as you have designated it. Try making that change and let me know if it works for you.
Thanks,
Mike
Now the .Cfg well but I am still not send the mail, the message log remains the same, look at whether there may be something wrong with it .Cfg, I am using the same mail server from another application in asp.net and mails well sends.
<?xml version="1.0" standalone="yes"?>
<subversionNotifyConfig xmlns="http://www.mckechney.com/SubversionNotifyConfig.xsd">
<SVNConfig ExePath="E:\Subversion\bin\svnlook.exe"/>
<MailServer Name="polca.mpf.gov.ar" Username="lperalta" Password="bql34312" ADGlobalCatalog="mpf.gov.ar" FromAddress="lperalta@mpf.gov.ar"/>
<ReproPathConfig controlledPaths="/FiscalNET">
<MailTo EMailAddress="leandroperalta@gmail.com" EMailType="HTML" EMailSuppressionChar="~"/>
<DefaultLogMessage Text="#user# has decided not to add a log message. Don't worry, severe punishment will be administered in short order."/>
<CommitRequirements FailureMessage="A Bug/Enhancement number was not specified.\nPlease add [Bug ###] or other required tag to the commit message">
<!-- CommitRequirement Description="Bug Number" Regex="\[b?u?g? ?#?([0-9]+(?:\s*,?\s*[0-9]+)*)\]"/ -->
<!-- Use the secondary Regex to further enforce commit message requirements-->
<!-- CommitRequirement Description="Merge" Regex="\[merge\]" SecondaryRegex="(http://|svn://|https://).+r\d+.to.r\d+" SecondaryRegexFailureMsg="A merge requires both the source path and revision numbers specified\n(ex: " [merge] Merging http://myserver.com/repro/branch from r30 to r31 ")"/-->
<!-- CommitRequirement Description="Retiring Branch" Regex="\[Retiring Branch\]"/-->
<!-- CommitRequirement Description="Renaming Branch" Regex="\[Renaming Branch\]"/-->
<!-- CommitRequirement Description="New Branch" Regex="\[New Branch\]"/-->
<!-- Use as a check so that certain file types can't be "accidentally" committed-->
<FileTypeTagCheck Description="Resx Files" Regex="\[Add Resx File\]" FailureMessage="When committing .resx files, you must specify a [Add Resx File] tag.\nIf no meaningful changes we made, please Revert the file." FileExtension=".resx"/>
<!-- Set values to exclude file types. Rexex setting takes precedence over FileExtension-->
<FileTypeExclusion Description="User Files" FileExtension=".user"/>
<FileTypeExclusion Description="Personal Solution Files" FileExtension=".suo"/>
<FileTypeExclusion Description="Source Safe ControlFiles" FileExtension=".scc"/>
<FileTypeExclusion Description="Temporary Files" FileNameRegex="\w*\.~\w*" FailureMessage="Commits of history/backup files of the format 'name.~ext' are not allowed."/>
<!-- If you want to make sure certain folders are not added to the repository...-->
<FolderNameExclusion Description="History folder" FolderName="bin"/>
<FolderNameExclusion Description="History folder" FolderName="obj"/>
</CommitRequirements>
<Bugzilla XmlReturnURL="http://mydomain.com/bugzilla/show_bug.cgi?id={0}&ctype=xml" BugLinkURL="http://mydomain.com/bugzilla/show_bug.cgi?id={0}" BugRegex="\[b?u?g? ?#?([0-9]+(?:\s*,?\s*[0-9]+)*)\]">
<AllowedProducts>
<AllowedProduct Name="ProductOne"/>
</AllowedProducts>
<DisallowedStatuses>
<DisallowedStatus Name="CLOSED" ReproPathException="Test"/>
<DisallowedStatus Name="RESOLVED" ReproPathException=""/>
</DisallowedStatuses>
<LockedBugs>
<Bug BugId="1000"/>
<Bug BugId="1002"/>
<Bug BugId="1002"/>
</LockedBugs>
</Bugzilla>
</ReproPathConfig>
<ReproPathConfig controlledPaths="/PathTwo">
<Execute Application="PathTwo.bat" CommandLine="#revision# #name# #controlledpaths#"/>
</ReproPathConfig>
<LockedPaths>
<LockedPath ReproPath="ProductTwo"/>
</LockedPaths>
<PrePropChangeRequirements FailureMessage="A revision comment may only be changed if it includes a Bug/Enhancement number. Please add [Bug ###] to the changed message.">
<PrePropChangeRequirement Description="Bug Number" Regex="\[b?u?g? ?#?([0-9]+(?:\s*,?\s*[0-9]+)*)\]" IsBugMatch="true"/>
</PrePropChangeRequirements>
<!-- Use when your Subversion IDs to not match your AD ID's so that you can retrieve e-mail address from AD-->
<UserMappings>
<UserMapping ActiveDirectoryID="lperalta" SvnID="MPF\lperalta"/>
</UserMappings>
</subversionNotifyConfig>
Leandro,
There is one additional configuration problem I found. In your ReproPathConfig element, try setting the controlledPaths attribute to just be the root:
<ReproPathConfig controlledPaths="/">
I believe the issue may be that the e-mail generator isn't finding a matching path. The path should map to the portion of the Repro path that you want to control, not the physical path of the repository.
For example, your current setting <ReproPathConfig controlledPaths="/FiscalNET"> means that you are looking to control the /FiscalNET path in your repository that you might access via sample a URL of svn://myrepro.com/FiscalNET. However, when I look at your commit paths in the log message, it is "FuentesNET/MPF/". This path is not "controlled" by the configuration you have set. If you use the root "/", it will control your entire repository.
If this still does not help, please let me know.
(I am working on a newer version that will generate a meaningful log message so it is clearly stated that a controlled path was not found and that is why no e-mail message is getting sent.)
Thanks,
Mike
Mike thank!!
the application is running the people of my work is very happy so very good product.
Again, thank you for the help.
Sincerely Leandro.