Check Out gets Wrong Version

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

Moderator: SourceGear

Post Reply
csargent@aerisinc.com
Posts: 5
Joined: Thu Aug 24, 2006 6:44 pm

Check Out gets Wrong Version

Post by csargent@aerisinc.com » Thu Aug 24, 2006 6:55 pm

We are having a problem with Check Out that seems like a bug to me. Here is the scenario:

- User 1 has SoS open and is viewing the contents of a project.
- User 2 navigates to same project and checks out a file.
- User 2 modified and checks the file back in.
- User 1 now checks out the same file

The result of this is that User 1 now has the file locked but does NOT have the latest version -- he has the version that was on the server prior to User 2's changes.

This behavior has resulted in several lost changes so far and is a real problem for us.

Please advise

Chris

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Thu Aug 24, 2006 8:35 pm

We could use more information so that we can try to reproduce this.

What version of SOS are you using?

What version of VSS is installed on the SOS Server machine?

Are users using the SOS GUI client or Visual Studio when this behavior occurs?

If using the GUI Client, what is the file status for the file that User 1 has checked out?

Does the user refresh the file list prior to the checkout?
Linda Bauer
SourceGear
Technical Support Manager

csargent@aerisinc.com
Posts: 5
Joined: Thu Aug 24, 2006 6:44 pm

Post by csargent@aerisinc.com » Thu Aug 24, 2006 10:12 pm

Thanks for the quick reply -- here are answers to your questions:

>> What version of SOS are you using?

4.1.2 on both the client and the server

>>What version of VSS is installed on the SOS Server machine?

4.1.2

>>Are users using the SOS GUI client or Visual Studio when this
>>behavior occurs?

All users are using the SOS GUI only.

>>If using the GUI Client, what is the file status for the file that
>>User 1 has checked out?

Once the checkout is complete the file status changes to "Old" -- the user still has the previous (now out of date) version of the file but it is locked at that point.

>>Does the user refresh the file list prior to the checkout?

No.

Thanks in advance for your help.

Chris

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Fri Aug 25, 2006 6:39 am

csargent@aerisinc.com wrote:Thanks for the quick reply -- here are answers to your questions:

>>What version of VSS is installed on the SOS Server machine?

4.1.2
This is the SOS version. We need the version of the VSS Explorer client installed on the SOS Server machine, specifically the version of the ssapi.dll file in the VSS Client\Win32 directory. Here's a link with details:

http://support.sourcegear.com/viewtopic.php?t=1510
Linda Bauer
SourceGear
Technical Support Manager

csargent@aerisinc.com
Posts: 5
Joined: Thu Aug 24, 2006 6:44 pm

VSS Version

Post by csargent@aerisinc.com » Fri Aug 25, 2006 9:04 am

Sorry -- didn't read carefully.

The version of the ssapi.dll is: 6.0.96.4.

csargent@aerisinc.com
Posts: 5
Joined: Thu Aug 24, 2006 6:44 pm

Post by csargent@aerisinc.com » Tue Aug 29, 2006 9:51 am

Any update on this issue?

Thanks

Chris

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Tue Aug 29, 2006 12:30 pm

I wasn't able to reproduce this, so it could be a configuration or network problem.

A few more questions.

Before the User 1 checks out the file edited by User 2, what is the file status of that file? Old? Needs Merge? Blank?

For the user who doesn't get the newer file on checkout: Check in the SOS GUI Client under Tools->Options->Files. Is "Never replace local copy during Check Out" enabled.

Are there any errors in the SOS Server log (log.txt in the SOS Server directory) that correspond to the checkout by User 1? Anything that might indicate a problem getting the file?
Linda Bauer
SourceGear
Technical Support Manager

csargent@aerisinc.com
Posts: 5
Joined: Thu Aug 24, 2006 6:44 pm

Post by csargent@aerisinc.com » Tue Aug 29, 2006 1:31 pm

lbauer wrote: Before the User 1 checks out the file edited by User 2, what is the file status of that file? Old? Needs Merge? Blank?
It's blank -- If user 1 refreshes the list it switches to "Old" and in that case a subsequent Check Out operation works as you would expect (gets latest version and locks it). It seems as though no refresh of the status is being done prior to the lock.
lbauer wrote: For the user who doesn't get the newer file on checkout: Check in the SOS GUI Client under Tools->Options->Files. Is "Never replace local copy during Check Out" enabled.
No -- that option is unchecked (for all users as far as that goes).
lbauer wrote: Are there any errors in the SOS Server log (log.txt in the SOS Server directory) that correspond to the checkout by User 1? Anything that might indicate a problem getting the file?
No -- I just reproduced the problem again and there are no new log entries at all.

Thanks Chris

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Tue Aug 29, 2006 6:19 pm

When I tested this, I did not refresh the file list first, and it worked as expected.

Not sure why yours is not refreshing. You might consider setting an automatic refresh in the SOS GUI Client to periodically refresh the file list. This is in Tools->Options->View.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply