Crucible review doesn't show the diff but a link to download the file is available

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

In a review, can not view the text contents or the diff is not available. Crucible requests the reviewer to download the source code instead.

Cause

SVN treats the file as binary if there are any non-UTF-8 characters. For more details please see how Svn identifies the binary file.

If SVN identifies the file as binary then it will set mime type as application/octet-stream, by setting a property svn:mime-type which causes Fisheye not show the diff.

For example:

1 PT$ svn proplist -vv testfile.sql Properties on 'testfile.sql': svn:mime-type application/octet-stream

To identify the binary content

1 PT$ grep -axv '.*' testfile.sql ??/**************************************************************************************************************** PT$

Resolution

svn:mime-type is a versioned property, so if the file is already committed then that should be removed and committed again as a new version. If you are adding a new file either remove these characters or remove the property svn:mime-type after adding the file.

A versioned property from svn can be delete as below.

1 2 3 4 5 6 7 PT$ svn propdel svn:mime-type testfile.sql property 'svn:mime-type' deleted from 'testfile.sql '. PT$ svn commit -m "deleting the prop" testfile.sql Adding testfile.sql Transmitting file data .done Committing transaction... Committed revision 10.
Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.