Hi,
I've installed SVNNotify on windows server 2008, with VisualSVN.
I can't get any email to be sent, please see the log below (i've set it to debug as i hope it will help), I've also added below the relevant parts from the cfg file.
The log states: "Controlled Paths List: /trunk/Ant" yet it still states:
"Unable to locate matching ReproPathConfig -> ControlledPaths / ControlledRepros properties. No e-mail will be sent.
File Paths committed are:
/trunk/Ant
To send e-mail for these path(s), you must have a ControlledPaths attribute set to the folder name (including the leading "/") or one of its parents."
Thanks in advance for the help.
Dudi.
From the log:
[29/07/2008 10:20:01] *************************
[29/07/2008 10:20:01] Starting process for Revision 571-1 [E:/SVNRepositories/myCompany]
[29/07/2008 10:20:01] Configuration file deserialized. Logging level set to: DEBUG
[29/07/2008 10:20:01] SubversionNotify, Version=2.0.7.0, Culture=neutral, PublicKeyToken=null
[29/07/2008 10:20:01] No ItemTrackerRegistration entries found.
[29/07/2008 10:20:01] Processing type: pre-commit
[29/07/2008 10:20:01] Commit Paths: /trunk/Ant/
[29/07/2008 10:20:01] Controlled Paths List: /trunk/Ant
[29/07/2008 10:20:01] SetRepoPathPrecidence :: Incomming configs = 0 ; Returning configs = 0
[29/07/2008 10:20:01] SelectApplicableReproConfigs :: Returning 0 RepoPathConfig objects
[29/07/2008 10:20:01] LockedPaths :: No check elements found.
[29/07/2008 10:20:02] PreCommitProcessing :: Generating SvnLook directory file listing
[29/07/2008 10:20:02] PreCommitProcessing :: Checking for case-insensitive file match
[29/07/2008 10:20:02] Passed Folder Name Exclusion test.
[29/07/2008 10:20:02] Passed File Type Exclusion test.
[29/07/2008 10:20:02] Checking for FileTypeTag Requirements complete. Not Required.
[29/07/2008 10:20:02] Checking for LogMessageCheck Requirements. Configs to check: 0
[29/07/2008 10:20:02] LogMessageCheck checking log message:
[29/07/2008 10:20:02] LogMessageCheck file list: U trunk/Ant/readme.txt
[29/07/2008 10:20:02] LogMessageCheck complete and not required.
[29/07/2008 10:20:02] GleenItemNumbers :: Returning 0 ItemTrackingSet objects
[29/07/2008 10:20:02] All Pre-commit checks passed.
[29/07/2008 10:20:02] *************************
[29/07/2008 10:20:02] Starting process for Revision 572 [E:/SVNRepositories/myCompany]
[29/07/2008 10:20:02] Configuration file deserialized. Logging level set to: DEBUG
[29/07/2008 10:20:02] SubversionNotify, Version=2.0.7.0, Culture=neutral, PublicKeyToken=null
[29/07/2008 10:20:02] No ItemTrackerRegistration entries found.
[29/07/2008 10:20:03] Processing type: post-commit
[29/07/2008 10:20:03] SelectApplicableReproConfigs :: ChangedFiles list: U trunk/Ant/readme.txt
[29/07/2008 10:20:03] SelectApplicableReproConfigs :: Modified file name: trunk/Ant/readme.txt
[29/07/2008 10:20:03] Controlled Paths List: /trunk/Ant
[29/07/2008 10:20:03] SetRepoPathPrecidence :: Incomming configs = 0 ; Returning configs = 0
[29/07/2008 10:20:03] SelectApplicableReproConfigs :: Returning 0 RepoPathConfig objects
[29/07/2008 10:20:03] GleenItemNumbers :: Returning 0 ItemTrackingSet objects
[29/07/2008 10:20:03] InfoHeader :: Raw Header message -
dudi
2008-07-29 10:20:02 +0300 (ΘσφáΓ, 29 Θσ∞ 2008)
0
[29/07/2008 10:20:03] Controlled Paths List: /trunk/Ant
[29/07/2008 10:20:03] SetRepoPathPrecidence :: Incomming configs = 0 ; Returning configs = 0
[29/07/2008 10:20:03] SelectApplicableReproConfigs :: Returning 0 RepoPathConfig objects
[29/07/2008 10:20:03] HTML file written to C:\Program Files (x86)\SubversionNotify\log\Revision 572.html
[29/07/2008 10:20:03] HTML Message Generated
[29/07/2008 10:20:03] Generating e-mail message
[29/07/2008 10:20:03]
Unable to locate matching ReproPathConfig -> ControlledPaths / ControlledRepros properties. No e-mail will be sent.
File Paths committed are:
/trunk/Ant
To send e-mail for these path(s), you must have a ControlledPaths attribute set to the folder name (including the leading "/") or one of its parents.
Also, be sure the ControlledPaths is set to a repro URL path and not a physical drive path.
To control your entire repository, use the setting: controlledPaths="/"
For further details, see the manual at http://www.SubversionNotify.com
[29/07/2008 10:20:03] Finished e-mail processing.
[29/07/2008 10:20:03] Finished processing Revision 572
from the cfg:
<RepoPathConfig ControlledPaths="/trunk/Ant" ControlledRepos="E:\SVNRepositories\myCompany">
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dudi,
Took me a second to notice this once, but the error is pretty simple: When the tool is looking for RepoPathConfigs to apply to a commit, it does a string compare on the ControlledRepos atribute value (if one is supplied in the cfg file).
In your case, you have "E:\SVNRepositories\myCompany", however, your repository path is being reported as "E:/SVNRepositories/myCompany" (with forward slashes). I'm not certain why is is showing up like this, on my machine, it is reported with the back slashes. In any case, they aren't matching up in the string compare.
Try changing your ControlledRepos value to use forward slashes and that should fix it. Alternatively, if you are only controlling one repository, you can omit the attribute all together.
I hope this helps.
Thanks,
Mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I've installed SVNNotify on windows server 2008, with VisualSVN.
I can't get any email to be sent, please see the log below (i've set it to debug as i hope it will help), I've also added below the relevant parts from the cfg file.
The log states: "Controlled Paths List: /trunk/Ant" yet it still states:
"Unable to locate matching ReproPathConfig -> ControlledPaths / ControlledRepros properties. No e-mail will be sent.
File Paths committed are:
/trunk/Ant
To send e-mail for these path(s), you must have a ControlledPaths attribute set to the folder name (including the leading "/") or one of its parents."
Thanks in advance for the help.
Dudi.
From the log:
[29/07/2008 10:20:01] *************************
[29/07/2008 10:20:01] Starting process for Revision 571-1 [E:/SVNRepositories/myCompany]
[29/07/2008 10:20:01] Configuration file deserialized. Logging level set to: DEBUG
[29/07/2008 10:20:01] SubversionNotify, Version=2.0.7.0, Culture=neutral, PublicKeyToken=null
[29/07/2008 10:20:01] No ItemTrackerRegistration entries found.
[29/07/2008 10:20:01] Processing type: pre-commit
[29/07/2008 10:20:01] Commit Paths: /trunk/Ant/
[29/07/2008 10:20:01] Controlled Paths List: /trunk/Ant
[29/07/2008 10:20:01] SetRepoPathPrecidence :: Incomming configs = 0 ; Returning configs = 0
[29/07/2008 10:20:01] SelectApplicableReproConfigs :: Returning 0 RepoPathConfig objects
[29/07/2008 10:20:01] LockedPaths :: No check elements found.
[29/07/2008 10:20:02] PreCommitProcessing :: Generating SvnLook directory file listing
[29/07/2008 10:20:02] PreCommitProcessing :: Checking for case-insensitive file match
[29/07/2008 10:20:02] Passed Folder Name Exclusion test.
[29/07/2008 10:20:02] Passed File Type Exclusion test.
[29/07/2008 10:20:02] Checking for FileTypeTag Requirements complete. Not Required.
[29/07/2008 10:20:02] Checking for LogMessageCheck Requirements. Configs to check: 0
[29/07/2008 10:20:02] LogMessageCheck checking log message:
[29/07/2008 10:20:02] LogMessageCheck file list: U trunk/Ant/readme.txt
[29/07/2008 10:20:02] LogMessageCheck complete and not required.
[29/07/2008 10:20:02] GleenItemNumbers :: Returning 0 ItemTrackingSet objects
[29/07/2008 10:20:02] All Pre-commit checks passed.
[29/07/2008 10:20:02] *************************
[29/07/2008 10:20:02] Starting process for Revision 572 [E:/SVNRepositories/myCompany]
[29/07/2008 10:20:02] Configuration file deserialized. Logging level set to: DEBUG
[29/07/2008 10:20:02] SubversionNotify, Version=2.0.7.0, Culture=neutral, PublicKeyToken=null
[29/07/2008 10:20:02] No ItemTrackerRegistration entries found.
[29/07/2008 10:20:03] Processing type: post-commit
[29/07/2008 10:20:03] SelectApplicableReproConfigs :: ChangedFiles list: U trunk/Ant/readme.txt
[29/07/2008 10:20:03] SelectApplicableReproConfigs :: Modified file name: trunk/Ant/readme.txt
[29/07/2008 10:20:03] Controlled Paths List: /trunk/Ant
[29/07/2008 10:20:03] SetRepoPathPrecidence :: Incomming configs = 0 ; Returning configs = 0
[29/07/2008 10:20:03] SelectApplicableReproConfigs :: Returning 0 RepoPathConfig objects
[29/07/2008 10:20:03] GleenItemNumbers :: Returning 0 ItemTrackingSet objects
[29/07/2008 10:20:03] InfoHeader :: Raw Header message -
dudi
2008-07-29 10:20:02 +0300 (ΘσφáΓ, 29 Θσ∞ 2008)
0
[29/07/2008 10:20:03] Controlled Paths List: /trunk/Ant
[29/07/2008 10:20:03] SetRepoPathPrecidence :: Incomming configs = 0 ; Returning configs = 0
[29/07/2008 10:20:03] SelectApplicableReproConfigs :: Returning 0 RepoPathConfig objects
[29/07/2008 10:20:03] HTML file written to C:\Program Files (x86)\SubversionNotify\log\Revision 572.html
[29/07/2008 10:20:03] HTML Message Generated
[29/07/2008 10:20:03] Generating e-mail message
[29/07/2008 10:20:03]
Unable to locate matching ReproPathConfig -> ControlledPaths / ControlledRepros properties. No e-mail will be sent.
File Paths committed are:
/trunk/Ant
To send e-mail for these path(s), you must have a ControlledPaths attribute set to the folder name (including the leading "/") or one of its parents.
Also, be sure the ControlledPaths is set to a repro URL path and not a physical drive path.
To control your entire repository, use the setting: controlledPaths="/"
For further details, see the manual at http://www.SubversionNotify.com
[29/07/2008 10:20:03] Finished e-mail processing.
[29/07/2008 10:20:03] Finished processing Revision 572
from the cfg:
<RepoPathConfig ControlledPaths="/trunk/Ant" ControlledRepos="E:\SVNRepositories\myCompany">
I forgot to mention that i've also tried setting ControlledPaths="/" but i got the same problem.
Thanks.
Dudi,
Took me a second to notice this once, but the error is pretty simple: When the tool is looking for RepoPathConfigs to apply to a commit, it does a string compare on the ControlledRepos atribute value (if one is supplied in the cfg file).
In your case, you have "E:\SVNRepositories\myCompany", however, your repository path is being reported as "E:/SVNRepositories/myCompany" (with forward slashes). I'm not certain why is is showing up like this, on my machine, it is reported with the back slashes. In any case, they aren't matching up in the string compare.
Try changing your ControlledRepos value to use forward slashes and that should fix it. Alternatively, if you are only controlling one repository, you can omit the attribute all together.
I hope this helps.
Thanks,
Mike
Thanks for the quick response.
Changing to forward slashes did the trick :)