2008/05/08

[FIX]VSS 2005 與 PDF 不相容問題(2008-05-08 Updated)

最近將企劃美編人員與開發人員共用維護的網站,利用 VSS 2005 來做一個版本控管,以前用 VSS 6.0(a/b/c/d)都沒什麼事,想當然爾就是 OK 的,

就直接 check-in 後就可以用了,過了幾天,發現事情不妙了, PDF 的檔案格式 check-out 後有問題,而且是一定要再 Get Latest Version 才會出包。

看來一下 byte 數,check-in 前與 Get Latest Version後竟然差了1~2 bytes,-_-

後來發現檔案不太一樣,用二位進比對後發現會有折行發生,很像以前 ftp 時,沒有指定 Binary or ASCII 的狀況。

image

上網找了一下問題,結果發現是微軟的 BUG.... @%$#$^%$#!@#$@!%$^&%&%~

 

===============================================================================

底下是微軟 KB 的片段 http://support.microsoft.com/kb/923434/en-us/

===============================================================================

FIX: The PDF file becomes corrupted after you check in the PDF file in Visual SourceSafe 2005

SYMPTOMS

After you check in a Portable Document Format (PDF) file in Microsoft Visual SourceSafe 2005, the PDF file becomes corrupted. Additionally, you do not receive any error messages. You may experience this problem if the following conditions are true:


You select the Auto-detect encoding of local file check box on the General tab.
Note To access the General tab, click Properties on the File menu.


In the Options dialog box, you select Binary file on the File types tab.
Note To open the Options dialog box, click Options on the Tools menu.

 

CAUSE

This problem occurs when the autodetect feature switches the file from the binary format to the ANSI format.

 

RESOLUTION

Download information

The following file is available for download from the Microsoft Download Center:
DownloadDownload the 284443_ENU_i386_zip.exe package now. (https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=7257)
Release Date: 6/20/2007

 

 

 

 

2008-05-08 更新:

發現微軟有一個 FIX package : List of bugs that are fixed in the Visual SourceSafe 2005 Update (2007/12/13 v2.1)

http://support.microsoft.com/kb/943847/

===============================================================================

Bugs that are fixed in the Visual SourceSafe 2005 Update
For more information about the bugs that are fixed in this update, click the following article numbers to view the articles in the Microsoft Knowledge Base:

916688 (http://support.microsoft.com/kb/916688/) FIX: Error message when you try to use the Visual SourceSafe 2005 LAN booster service together with Visual Studio 2005 on a server that is running Windows 2000:"Unable to use SourceSafe LAN service"

917491 (http://support.microsoft.com/kb/917491/) FIX: The Analyze.exe utility may incorrectly remove files and projects in Visual SourceSafe 2005 when you run the utility by using the - d switch

923434 (http://support.microsoft.com/kb/923434/) FIX: The PDF file becomes corrupted after you check in the PDF file in Visual SourceSafe 2005

924702 (http://support.microsoft.com/kb/924702/) FIX: You cannot compare the latest version of a file to any earlier versions of that file after you change the file type to the UTF8 file type in Visual SourceSafe 2005

923842 (http://support.microsoft.com/kb/923842/) FIX: Error message in the Analyze.log file when you run the Analyze.exe utility in Visual SourceSafe 2005: "The file 0\DATA\\ is not a valid SourceSafe physical database file"

927004 (http://support.microsoft.com/kb/927004/) FIX: After you perform a merge operation on a file in Visual SourceSafe 2005, only three accounts can access the merged file

925234 (http://support.microsoft.com/kb/925234/) FIX: When you check out and then try to open a PDF file, the file may not open if the file was checked in by using Visual SourceSafe 2005

925275 (http://support.microsoft.com/kb/925275/) FIX: When you generate a report to show the history of a source file, Visual SourceSafe 2005 may stop unexpectedly

927887 (http://support.microsoft.com/kb/927887/) FIX: Error message when you use the Get Latest Version option in Visual SourceSafe 2005 to try to obtain the latest version of an XML file: "SourceSafe was unable to finish writing a file"

928392 (http://support.microsoft.com/kb/928392/) FIX: Error message when you try to check in a file that has a comment template and the comment template has more than three lines in Visual SourceSafe 6.0: "Error reading from file"

930573 (http://support.microsoft.com/kb/930573/) FIX: Visual SourceSafe 2005 may stop responding when you generate a report in the "Show History" dialog box

932058 (http://support.microsoft.com/kb/932058/) FIX: Error message when you try to set the value of the IVSSItem.AutoDetectEncoding property to "false" if the item is checked out in Visual SourceSafe 2005: "System.Runtime.InteropServices.COMException (0x8004D67F)"

934723 (http://support.microsoft.com/kb/934723/) FIX: You may receive an error message when you use Ole Automation to programmatically retrieve a specific version of a file from the history in Visual SourceSafe 2005

932874 (http://support.microsoft.com/kb/932874/) FIX: Visual SourceSafe 2005 may stop responding (hang) when you check in a large binary file

938607 (http://support.microsoft.com/kb/938607/) FIX: Error message when you try to add files to a Visual SourceSafe 2005 database or when you try to retrieve files from a Visual SourceSafe 2005 database by using Web access through HTTP: "Operation timed out"

 

How to obtain the Visual SourceSafe 2005 Update

The following file is available for download from the Microsoft Download Center:
DownloadDownload the VS80-KB943847-X86-INTL.exe package now.

(http://download.microsoft.com/download/7/1/f/71fdb660-4e69-471a-ad58-d984b45cc140/vs80-kb943847-x86-intl.exe)
Release Date: December 11, 2007

沒有留言: