Parameter passed to cvsSubmit.asp

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
kkchan
Posts: 54
Joined: Wed Jun 30, 2010 12:45 am

Parameter passed to cvsSubmit.asp

Post by kkchan » Mon Jun 04, 2012 8:38 pm

Hi
I have a prototype ASP page - cvsSubmit.asp, which will log the parameters passed from VaultService. I found that, the parameters passed are not as expected. What that is "5" at the sFile? I think "5" is repository id, but is doesn't appear in sRepo, but sFile.

Beside, what is the value represented in sPrev?

Thank you
Below is the code in cvsSubmit.aspx

<%
Dim ixBug, sFile, sPrev, sNew, sRepo
Response.Write("abc")
ixBug = Request.QueryString("ixBug")
sFile = Request.QueryString("sFile")
sPrev = Request.QueryString("sPrev")
sNew = Request.QueryString("sNew")
sRepo = Request.QueryString("sRepo")

dim fs,tfile
set fs=Server.CreateObject("Scripting.FileSystemObject")
set tfile=fs.OpenTextFile("C:\Windows\Temp\somefile.txt", 8)

url = "http://localhost:1804/rndbug/cvsSubmit.aspx?ixBug=" & ixBug & "&sFile=" & sFile & "&sPrev=" & sPrev & "&sNew=" & sNew & "&sRepo=" & sRepo


tfile.WriteLine(url)
tfile.close
set tfile=nothing
set fs=nothing

%>

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Parameter passed to cvsSubmit.asp

Post by Beth » Tue Jun 05, 2012 3:00 pm

I'm still performing some research into your questions and will post when I know a little more. This may take until tomorrow afternoon.
Beth Kieler
SourceGear Technical Support

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Parameter passed to cvsSubmit.asp

Post by Beth » Thu Jun 07, 2012 10:56 am

It looks like you were already talking about this to another support person offline.
sFile=5$/test.txt
sPrev= is the Vault file ID (in the database) and sNew= is the Version of the file created by the checkin
Prev=460305&sNew=32&sRepo=
There is additional information on the FogBugz page as well: http://www.fogcreek.com/fogbugz/docs/70 ... d/api.html.
Beth Kieler
SourceGear Technical Support

kkchan
Posts: 54
Joined: Wed Jun 30, 2010 12:45 am

Re: Parameter passed to cvsSubmit.asp

Post by kkchan » Thu Jun 07, 2012 6:15 pm

Hi
Yes, I have reported this to your offline support, but I yet receive any reply from them, that why I post to forum.
sFile=5$/test.txt
I know that sFile is the file name being checked in, but why that is "5" over there? Is it the repository id? If so, why not under querystring sRepo? Now, the sRepo is always empty

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Parameter passed to cvsSubmit.asp

Post by Beth » Fri Jun 08, 2012 8:29 am

You might need to check your spam filters. I'm going to have the email sent out to you again in just a couple of minutes to see if it reaches you. Then I'll respond to your question in the next post.
Beth Kieler
SourceGear Technical Support

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Parameter passed to cvsSubmit.asp

Post by Beth » Fri Jun 08, 2012 10:04 am

It looks like anything you may be reading from the FogBugz site is different from when we originally wrote the plug-in. I don't believe we used sRepo at all. The 5 used with sFile is the repository the file is in.
Beth Kieler
SourceGear Technical Support

Post Reply