How to add an inline-reviewable file to a review after it's started? Edited

Fisheye and Crucible 4.5.1 with BitBucket.

I'm trying to add a file from a repository to an existing review. I'm the review author. I'm able to EditDetails > AddContent and add the file. But when I click on the file, it's not reviewable. Instead it's download-only.

enter image description here

I want the file to be reviewable with inline comments for all reviewers, like the files that were originally added to the review.

Does anyone know how to make that happen?

2 answers

This widget could not be displayed.

Hi Erin,

Adding a file to a Crucible review after the review started, should behave the same way as if it were added when you start a review.

One reason why the file you added appears as download-only, and not allowing inline reviews could be due to the file type. Crucible recognizes specific file-extensions as text, where as files that don't conform to those extensions are treated as binary and those would appear as download only in the review.

The default supported extensions are:

asc ascx asmx asa asax ashx axd config txt java jsp asp aspx cs idl cpp cxx c h pl pod py sh awk sed sql jspf tag xaml frm vb browser master csproj vbproj sitemap

If this is the case with the file you are trying to add, you can tell Crucible to recognize it as text by following the steps below:

  1. Locate your Fisheye/Crucible installation directory: FISHEYE_INSTALL

  2. Locate the file FISHEYE_INSTALL/raw-mime.types file

  3. In the file, there is a field called "text/plain", followed by the recognized extensions
  4. Add the extension to your file in that list
  5. Restart fisheye/crucible.

Let me know if this solves your issue!

Best,

Themis

This widget could not be displayed.

Hi Themis, 

Thank you for your response - this sounds like just what we need, but we are working with .sql files.  I confirmed that the text/plain field in raw-mime.types contains the extension, but we're still seeing the diff issues.

We are using a trial version of Fisheye - is the functionality that uses raw-mime.types perhaps disabled or something?

Thanks,

Erin

Hi Erin,

The trial version has the exact same functionality as a licensed one, so that shouldn't be the problem in your case.

I tried adding .sql files to a review (for Fisheye v. 4.5) and it works for me both as a changeset addition, and as a direct upload of an attachment.

One other thing worth checking is the size of your file - does it happen to be > 100 kB? In that case, it may not be rendered inline. 

You can read some documentation on filesize limitation at https://confluence.atlassian.com/fisheye/text-file-size-limiting-298976914.html.

Let me know if this helps!

Best,

Themis

Thank you again, Themis.   One of the files that's only download-able is just 6KB, so it's not the file size.

Some of the added files are fine, others are not.  We think it's an encoding issue with Bitbucket Cloud.  New files that are saved as UTF-8 and added seem to diff OK.

However, even if I delete one of our trouble files from the review and the repo, then reopen one of our trouble files, save it as UTF-8, upload it to the repo, then re-add it to the review it *still* shows up as download only.

Do those details help at all?

Thanks, 
Erin

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

172 views 1 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you