FogBugz Technical Support

A forum for technical support discussion related to Fogbugz.
The current FogBugz Knowledge Base can be found at

Posts by Fog Creek Employees are marked:

Release Notes
Network Status

Cygwin Diff Tool - Permissons Required

Hey All,

I have installed WebSVN on a IIS & W2K3 implementation to provide diff & log viewing from FogBugz. I am able to view logs fine but am having permission issues with the diff tool.

I have done a heap of reading but can't find a definitive list of permissions required to use the diff tool through WebSVN. Here's what I have done currently:

- Allowed anonymous access to the websvn directory
- Anonymous user is a domain based fogbugz user
- Provided read & execute permissions to cmd.exe for the domain user
- Allowed full access to the C:\Windows\Temp Directory
- Allowed read & execute access to c:\cygwin

I still get the following error when trying a diff:

Error running this command: ""c:\cygwin\bin\diff" -w -U 5 C:\WINDOWS\Temp\A7.tmp C:\WINDOWS\Temp\A5.tmp"

/usr/bin/diff: C:\WINDOWS\Temp\A7.tmp: Permission denied
/usr/bin/diff: C:\WINDOWS\Temp\A5.tmp: Permission denied

Any ideas?
Matt Woodward Send private email
Thursday, October 9, 2008
Grant full permissions on windows temp to Everyone?  If that works, you may be able to restrict it down to the FogBugz user (or probably the IUSR_machinename user).
Michael H. Pryor Send private email
Thursday, October 9, 2008
For future reference the initial error was related to the path being used for the files being compared. WebSVN required an additional forward slash configuring in the site settings of FogBugz. For reference my file path in teh site settings now looks as follows:

http://<server name>/websvn/diff.php?repname=^REPO&path=/^FILE&rev=^R2&sc=1

I'm still not getting details back from the diff but at least it's a bit closer. I'll update this when I find out more :)
Matt Woodward Send private email
Wednesday, October 15, 2008
Ok I have been doing some further debugging and this issue is definately related to websvn's use of the enscript and sed tools when generating the files to diff.

Within the "Includes\svnlook.php" of websvn, there is a function called "getFileContents", which at the time of writing has a call to sed & enscript at line 536. This results in the following command to be interpreted by php:

""c:\program files\subversion\bin\svn" --non-interactive --config-dir /tmp cat "file:///E:/svn/Users/mwo/test-4.txt"@36 | "c:\cygwin\bin\enscript" --language=html -o - | "c:\cygwin\bin\sed" -n "1,/^<\/PRE.$/,/^ C:\Inetpub\wwwroot\websvn\temp\150.tmp"

I have checked the resulting files and they are blank. My thoughts at this point in time are leaning me towards an issue with the sed arguments, but am starting to go a little cross eyed...

..any help...pretty please!
Matt Woodward Send private email
Wednesday, October 15, 2008
Ps: I have tried the diff operation using both cygwin and gnuwin32 tools but to no avail.
Matt Woodward Send private email
Wednesday, October 15, 2008
Hey Guys,

Resided myself to hunting down this little beggar! Having done a fair few test through the svnlook.php file in WebSVN and doing equivalent manual tests on the command line, I ended up getting out process monitor to analyse if there were any problems I wasn't seeing. Sure enough there was a call to creating a file by the Network Service Account that was being denied.

I allowed everyone full permission on C:\Inetpub\wwwroot\websvn\Temp\ and now all is well in the world!
Matt Woodward Send private email
Tuesday, October 21, 2008

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
Powered by FogBugz Bug Tracking and Evidence-Based Scheduling.